Permanant checkpoints - 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: Permanant checkpoints (
/showthread.php?tid=578324)
Permanant checkpoints -
DavidSparks - 18.06.2015
Hello.
I am currently working on a system where its a red small checkpoint infront of an ATM and if you enter the ATM a dialog pops up and you can do withdraw, deposit etc.
But the problem is I dont know how to make a permanent checkpoint, could anyone help me with this?
Thanks.
Re: Permanant checkpoints -
McGuiness - 18.06.2015
Place this on under OnPlayerEnterCheckpoint:
DisablePlayerCheckpoint(playerid);
Re: Permanant checkpoints -
MattTucker - 18.06.2015
Checkpoints are permanent they don't disappear, sometimes you just have to be close enough for the checkpoint to appear.
Pickups can be either permanent or disappear after they get picked up - until player dies/every few seconds/once/etc -
If you're using streamer plugin:
pawn Код:
native CreateDynamicCP(Float:x, Float:y, Float:z, Float:size, worldid = -1, interiorid = -1, playerid = -1, Float:streamdistance = 100.0);
If not:
https://sampwiki.blast.hk/wiki/Function:SetPlayerCheckpoint
But I strongly suggest that you use the streamer plugin.
Re: Permanant checkpoints -
DavidSparks - 18.06.2015
Quote:
Originally Posted by MattTucker
Checkpoints are permanent. Pickups can be either permanent or until player dies/every few seconds/once/etc.
If you're using streamer plugin:
pawn Код:
native CreateDynamicCP(Float:x, Float:y, Float:z, Float:size, worldid = -1, interiorid = -1, playerid = -1, Float:streamdistance = 100.0);
If not: https://sampwiki.blast.hk/wiki/Function:SetPlayerCheckpoint
But I strongly suggest that you use the streamer plugin.
|
My checkpoints dissapears the second someone enters them?
Re: Permanant checkpoints -
MattTucker - 18.06.2015
Can you show us the code of the checkpoint that disappears and your OnPlayerEnterCheckpoint for that specific checkpoint?