help with 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: help with checkpoints (
/showthread.php?tid=261905)
help with checkpoints -
ajwar - 15.06.2011
I have a coupple of checkpoint's which repeats. So when i enable first checkpoint everything work's perfect:
I can see it from long distance and it dissapears when i pickup it withaut enabling itself again when i leave checkpoint.
First checkpoint:
pawn Код:
vmcheckpoints[abcategory][playerid][0] = CreateDynamicCP(-2049.9878,-127.3140,35.2879, 5, 0, 0, playerid,300.0); //1
When picked up:
pawn Код:
if(checkpointid == vmcheckpoints[abcategory][playerid][0])
{
vmcheckpoints[abcategory][playerid][0] = 0;
if(IsValidDynamicCP(vmcheckpoints[abcategory][playerid][0]))
{
DestroyDynamicCP(vmcheckpoints[abcategory][playerid][0]);
}
vmcheckpoints[abcategory][playerid][1] = CreateDynamicCP(-2019.8148,-145.6181,35.3203, 3, 0, 0, playerid,300.0);
GameTextForPlayer(playerid, "Done", 3000, 3);
return 1;
}
When it creates antoher checkpoint i can't see it from long distance. I can see it just when i am very near it. And it shows up again withaut enabling it.
Anybody see the problem?
Re: help with checkpoints -
ajwar - 15.06.2011
anyone can help?