SA-MP Forums Archive
Question about disableplayercheckpoint - 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: Question about disableplayercheckpoint (/showthread.php?tid=372894)



Question about disableplayercheckpoint - CoDeZ - 28.08.2012

hello guys , a small question about this code (Taken directly from samp wiki )
pawn Код:
public OnPlayerSpawn(playerid)
{
    SetPlayerCheckpoint(playerid, 1982.6150, -220.6680, -0.2432, 3.0);
    return 1;
}
 
public OnPlayerEnterCheckpoint(playerid)
{
    GivePlayerMoney(playerid, 1000);
    DisablePlayerCheckpoint(playerid);
    return 1;
}
When the checkpoint is disabled , it will stay disabled until the player relog?
or if the player moved it will appear again?


Re: Question about disableplayercheckpoint - Jstylezzz - 28.08.2012

It should stay off


Re: Question about disableplayercheckpoint - CoDeZ - 28.08.2012

What if i want it to appear again?


Re: Question about disableplayercheckpoint - Jstylezzz - 28.08.2012

0_0 there you got me :P
i think you should use SetPlayerCheckpoint again..
I use a streamer since i began scripting, so i'm not sure.
On the other hand, i cannot find anything like EnablePlayerCheckPoint, neither something to delete it.
I think DisablePlayerCheckpoint, is the same as DestroyDynamicCheckpoint in streamers.. (correct me if i'm wrong).
i think you should use SetPlayerCheckPoint to "show" a checkpoint, and DisablePlayerCheckpoint to "delete" it.

Please correct me if i'm wrong