SA-MP Forums Archive
How to create a checkpoint on the playerpos? - 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: How to create a checkpoint on the playerpos? (/showthread.php?tid=103753)



How to create a checkpoint on the playerpos? - dirkblok - 21.10.2009

Hey,
I have a small question...

Код:
if (strcmp("/dirk", cmdtext, true, 4) == 0)
	{
  		new Float:x, Float:y, Float:z;
  		GetPlayerPos(playerid, x, y, z);
 		printf("The player left when he was at %f,%f,%f.", x, y, z);
 		SetPlayerCheckpoint(playerid,Float:x, Float:y, Float:z, 3.0);
		return 1;
	}
I have this code but why doesn't it work? can someone make a working code for me?

Thanks






Re: How to create a checkpoint on the playerpos? - cristab - 21.10.2009

Код:
if (strcmp("/dirk", cmdtext, true, 4) == 0)
	{
  		new Float:x, Float:y, Float:z;
  		GetPlayerPos(playerid, x, y, z);
 		printf("The player left when he was at %f,%f,%f.", x, y, z);
 		SetPlayerCheckpoint(playerid,x, y,z, 3.0);
		return 1;
	}



Re: How to create a checkpoint on the playerpos? - dirkblok - 21.10.2009

thanks