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: Checkpoints (
/showthread.php?tid=439141)
Checkpoints -
Mr.Valdez - 24.05.2013
i have made a command where it puts a checkpoint on the map but when i enter it, it doesnt disappear even though i have this
Код:
public OnPlayerEnterCheckpoint(playerid)
{
if(IsPlayerInRangeOfPoint(playerid,6,-104.69,72.71,3.72))
{
DisablePlayerCheckpoint(playerid);
SetPlayerCheckpoint(playerid,-153.2811,152.6073,4.9356,6);
}
return 1;
}
Doesnt even set the next checkpoint either. any ideas?
Re: Checkpoints -
jakejohnsonusa - 24.05.2013
Make sure it's the RIGHT TYPE fo checkpoint, meaning there is a difference between checkpoint and racecheckpoint.
Try to show the checkpoint line of when it set's it.
Re: Checkpoints -
Mr.Valdez - 24.05.2013
Код:
CMD:fertilize(playerid,params[])
{
if(IsPlayerInRangeOfPoint(playerid,2,-104.69,72.71,3.72))
{
SetPlayerCheckpoint(playerid,-128.4113,108.7230,3.1172,5);
}
return 1;
}
Re: Checkpoints -
Pottus - 24.05.2013
You need to set this
if(IsPlayerInRangeOfPoint(playerid,6,-104.69,72.71,3.72))
To the values here
SetPlayerCheckpoint(playerid,-128.4113,108.7230,3.1172,5);
if(IsPlayerInRangeOfPoint(playerid,6,-128.4113,108.7230,3.1172))
Re: Checkpoints -
Mr.Valdez - 24.05.2013
-.- oh thanks, didnt see that lol +rep