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
#2

I suggest you to use streamer, because you can create only one checkpoint using OnPlayerEnterCheckpoint.
Link for streamer is : https://sampforum.blast.hk/showthread.php?tid=102865
Reply
#3

The player will only have one checkpoint at a time. It's just for a small server for a faction to practice on.
Reply
#4

Tell everything about Checkpoint[MAX_PLAYERS] variable
Reply
#5

Well, you enter the checkpoint just one time, so it will just send one message.
Reply
#6

EDITED
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)