Command
#1

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??
Reply
#2

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?
Reply
#3

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.
Reply
#4

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)