Moze neko da mi kaze sta nije sa komandom ok? :(
if(strcmp(cmd, "/kartals", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(PlayerToPoint(3.0,playerid,822.0129,2.3086,1004.1797))
{
if(GetPlayerMoney(playerid) < 170)
{
SendClientMessage(playerid, COLOR_GREY, "Karta košta 170$.");
SendClientMessage(playerid, COLOR_GREY, "Nemate dovoljno novca za kartu.");
return 1;
}
else
{
SendClientMessage(playerid, COLOR_LIGHTBLUE, "Kupili ste kartu za Los Santos i koštalo vas je 170$");
SafeGivePlayerMoney(playerid, - 170);
SetPlayerPos(playerid, 1641.5591,-2332.6265,13.5469);
}
}
else
{
SendClientMessage(playerid, COLOR_LIGHTBLUE, " Nažalost nema više karti.");
return 1;
}
}
}
return 1;
}
a da postas error xD
skonto sam sta nije ok moze lock :D