Onplayerentercheckpoint dosen't disable checkpoint
#1

I made a system that if player close to somewhere it shows him a checkpoint, and when he enters it he gets a message. The problem is that he pick up the checkpoint he gets it again because it works on timers, how do I make the checkpoint unpickable, like he's getting the message but the checkpoint stays.
Reply
#2

I'm not sure what were you trying to say but if want from checkpoint to disapper on OnPlayerEnterCheckpoint use this: https://sampwiki.blast.hk/wiki/DisablePlayerCheckpoint
Reply
#3

OnTop
pawn Код:
new cppicked[MAX_PLAYERS];
pawn Код:
public OnPlayerEnterCheckpoint(playerid)
{
    if(cppicked[playerid] == 0)
    {
    SendClientMessage(playerid,-1,"you have picked a checkpoint.");
    DisablePlayerCheckpoint(playerid);
    cppicked[playerid] = 1;
    }
    return 1;
}
Reply
#4

Thanks guys.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)