OnPlayerEnterCheckpoint(playerid)
#1

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;
}
Reply


Messages In This Thread
OnPlayerEnterCheckpoint(playerid) - by acade - 04.01.2015, 11:34
Re: OnPlayerEnterCheckpoint(playerid) - by ATGOggy - 04.01.2015, 11:36
Re: OnPlayerEnterCheckpoint(playerid) - by acade - 04.01.2015, 11:37
Re: OnPlayerEnterCheckpoint(playerid) - by ATGOggy - 04.01.2015, 11:44
AW: OnPlayerEnterCheckpoint(playerid) - by Flori - 04.01.2015, 11:48
Re: AW: OnPlayerEnterCheckpoint(playerid) - by ATGOggy - 04.01.2015, 11:50

Forum Jump:


Users browsing this thread: 2 Guest(s)