Checkpoints Problem - 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 Problem (
/showthread.php?tid=367568)
Checkpoints Problem -
[rG]Cold - 10.08.2012
Hello.
I am trying to create checkpoints on teleports. It is like when a player teleports to a certain position a checpoint appears there. once the player entered it he receives his points and money w/e and the checkpoint dissapears.
Since i am using Incognito's plugin and ZCMD and im kinda new im asking for your help. Old way to do it was ermm easier?:S
Thanks
Re: Checkpoints Problem -
AeroBlast - 10.08.2012
Hmm..
pawn Код:
new CP;
CMD:teleport(playerid,params[])
{
SetPlayerPos(playerid,x,y,z);
CP = CreateDynamicCP(x, y, z, size, -1, -1, playerid);
return 1;
}
OnPlayerEnterDynamicCP(playerid, checkpointid)
{
if(checkpointid == CP){
//Do something here
}
return 1;
}
Maybe this will work?
Re: Checkpoints Problem -
[rG]Cold - 10.08.2012
That is what i already did and it didn't work. Thanks.
Anyone else?