checkpoint is not disabled - 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: checkpoint is not disabled (
/showthread.php?tid=503151)
checkpoint is not disabled -
Battlezone - 28.03.2014
Im always used to code with streamer plugin and i had no problem with dynamic cps.
This time i wanted to use normal cps
pawn Код:
public OnPlayerLeaveCheckpoint(playerid)
{
DisablePlayerCheckpoint(playerid);
return 1;
}
I disabled it but it is still appearing, however it has no effect and doesnt send me a client message when i enter ( as it is supposed to do before disabling)
help?
EDIT: This is how i set the checkpoint
pawn Код:
public OnPlayerPickUpPickup(playerid, pickupid)
{
if(pickupid == ZPickup[TEST])
{
ZCP[TEST] = SetPlayerCheckpoint(playerid, 710.0447,1959.1855,5.5391, 5.00);
}
return 1;
}
Re: checkpoint is not disabled -
arakuta - 28.03.2014
SetPlayerCheckPoint doesn't return any value.
Anyway, try a debug in both Leave/Enter Checkpoint callbacks.
Re: checkpoint is not disabled -
Battlezone - 28.03.2014
okey