Onplayerentercheckpoint dosen't disable checkpoint - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Onplayerentercheckpoint dosen't disable checkpoint (
/showthread.php?tid=554963)
Onplayerentercheckpoint dosen't disable checkpoint -
maiky1499 - 05.01.2015
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.
Re: Onplayerentercheckpoint dosen't disable checkpoint -
RockyGamer - 05.01.2015
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
Re: Onplayerentercheckpoint dosen't disable checkpoint -
danish007 - 06.01.2015
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;
}
Re: Onplayerentercheckpoint dosen't disable checkpoint -
maiky1499 - 06.01.2015
Thanks guys.