Zaloguj się by uzyskać pełen dostęp. Nie masz jeszcze konta? Założ je już teraz w kilka sekund.
GTAONLINE.PL
Tematy otagowane jako: onplayercoomandtext
1. [INNE] OnPlayerCoomandText
Witam mam problem robi? granice z szlabanami i wyskakuje mi b??d prosz? o piln? pomoc.



O To ca?y kod.
[code]
#include <a_samp>


#define COLOR_WHITE 0xFFFFFFAA
//Tu New Tyczy si? szlabanu

new lslv;
new lvls;


//Forwardy

forward lslvclose();
forward lvlsclose();

//Ppzycje Bramy : Przyk?ad lslv = CreateObject(968, 1739.3994140625, 512.3994140625, 28.200000762939, 0, 89.747314453125, 339.99938964844);

public OnGameModeInit()
{

lvls = CreateObject(968, 1731.5, 514.90002441406, 28.10000038147, 0, 270, 340.00012207031);
lslv = CreateObject(968, 1739.3994140625, 512.3994140625, 28.200000762939, 0, 89.747314453125, 339.99938964844);


return 1;
}

//CMD Do Szlabanu
//===============LV-LS=================
public OnPlayerCommandText(playerid, cmdtext[])
{
if(strcmp(cmdtext, "/kt-gd", true) == 0)
{
MoveObject(lvls, 1731.5, 514.90002441406, 27.200000762939, 3);
SetTimer("lvlsclose",5000,0);
GivePlayerMoney(playerid, -70);
SendClientMessage(playerid, COLOR_WHITE, "{FF0000}[Stra? Graniczna] {FFFFFF}Szlaban {00FF00}- w trakcie otwierania");
return 1;
}
return 0;
}


//===============LS-LV=================
public OnPlayerCommandText(playerid, cmdtext[])
{
if(strcmp(cmdtext, "/gd-kt", true) == 0)
{
MoveObject(lslv, 1739.4000244141, 512.40002441406, 27.200000762939, 3);
SetTimer("lslvclose",500...