Making an admin command which saves new coords in .pwn - 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: Making an admin command which saves new coords in .pwn (
/showthread.php?tid=648564)
Making an admin command which saves new coords in .pwn -
Zeus666 - 24.01.2018
Hi. I want to create objects straight from in game and being saved inside of script / being not deleted when i restart the server.
Do you know Fusez's Map Editor ? i want something like that.
How can i make that?
Re: Making an admin command which saves new coords in .pwn -
Zeus666 - 27.01.2018
up bump
Re: Making an admin command which saves new coords in .pwn -
Inn0cent - 27.01.2018
This is more like request, You should post it here:
https://sampforum.blast.hk/showthread.php?tid=447813
Re: Making an admin command which saves new coords in .pwn -
Unkovic - 27.01.2018
Here it is
pawn Код:
#define FILE "Coordinates.cfg"
CMD:coords(playerid, params[])
{
new pos[3], str[96];
GetPlayerPos(playerid, pos[0], pos[1], pos[2]);
format(str, sizeof(str), "%f %f %f", pos[0], pos[1], pos[2]);
if(fexist(FILE))
{
fopen(FILE, io_write);
fwrite(FILE, str);
fclose(FILE);
}
return 1;
}
You can also do this with yini or dini
Re: Making an admin command which saves new coords in .pwn -
Dayrion - 27.01.2018
You can simply use /save and find them in you GTA User Files/SAMP folder.
Re: Making an admin command which saves new coords in .pwn -
Sew_Sumi - 27.01.2018
Objects guys, not playerpos or vehiclepos... Read the thread.
Inn0cent got it.