SA-MP Forums Archive
Command - 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: Command (/showthread.php?tid=616477)



Command - Micko123 - 05.09.2016

Hey guys. So i want to make command that will save positions of player like this
PHP код:
 SetPlayerCheckpoint(playeridXYZ10.0); 
How can I make stock for saving that??


Re: Command - saffierr - 05.09.2016

First of all, if you want to save a player's position you don't use SetPlayerRaceCheckpoint();
You'll have to use GetPlayerPos(); instead.
Secondly, what saving system do you use?


Re: Command - Micko123 - 05.09.2016

Dude i want to make simple job with checkpoint. And i am to lazy to take coords from /save command. I want to make cmd that will export coords in .txt file with SetPlayerCheckpoint prefix. Get it?

PS:I just don't know how to make stock for it.


Re: Command - Stinged - 05.09.2016

Sometimes I wonder if anyone actually tries to learn stuff, and not just copy paste.
Which is why, I'll post what you need and in what order you should use them.

https://sampwiki.blast.hk/wiki/GetPlayerPos
https://sampwiki.blast.hk/wiki/Format
https://sampwiki.blast.hk/wiki/Fopen
https://sampwiki.blast.hk/wiki/Fwrite
https://sampwiki.blast.hk/wiki/Fclose