04.01.2015, 11:34
I've got a problem with the a checkpoint, when I enter it I have set it so it sends a message so I can test it, though when I enter the checkpoint it spams my chat until I leave it?
pawn Код:
public OnPlayerEnterCheckpoint(playerid)
{
if(Checkpoint[playerid] == 1)
{
DisablePlayerCheckpoint(playerid);
Checkpoint[playerid] = 0;
SendClientMessage(playerid,red,"You've entered a checkpoint");
}
if(Checkpoint[playerid] == 0)
{
DisablePlayerCheckpoint(playerid);
}
return 1;
}