Creating Checkpoint - 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: Creating Checkpoint (
/showthread.php?tid=402353)
Creating Checkpoint -
Kittylol - 26.12.2012
HI,can you please say how to make code,like i want this .In game i type /(command) and it creates checkpoint at current position.
Re: Creating Checkpoint -
rbush12 - 26.12.2012
Have you looked at this tutorial
https://sampforum.blast.hk/showthread.php?tid=399922
Re: Creating Checkpoint -
DaRk_RaiN - 26.12.2012
pawn Код:
if (strcmp("/test", cmdtext, true, 10) == 0)
{
new Float:x, Float:y, Float:z;
GetPlayerPos(playerid,x,y,z);
SetPlayerCheckpoint(playerid,x,y,z,3);
return 1;
}