29.11.2012, 14:18
Hi,
So I made a very simple command which enables a race checkpoint and disables when a player enters it. But when a player enters it, it doesn't get disabled. Here it is:
I'm sure that I'm doing something wrong there. Can someone help me out?
So I made a very simple command which enables a race checkpoint and disables when a player enters it. But when a player enters it, it doesn't get disabled. Here it is:
pawn Код:
CMD:approchls(playerid,params[])
{
new Name[24], Msg[200];
GetPlayerName(playerid, Name, sizeof(Name));
SetPlayerRaceCheckpoint(playerid, 2, 1455.1359,-2593.3552,13.5469, 0, 0, 0, 12);
SendClientMessage(playerid, red, "Bla bla shit");
if(IsPlayerInRaceCheckpoint(playerid))
DisablePlayerRaceCheckpoint(playerid);
return 1;
}