Making an admin command which saves new coords in .pwn
#1

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

up bump
Reply
#3

This is more like request, You should post it here:
https://sampforum.blast.hk/showthread.php?tid=447813
Reply
#4

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
Reply
#5

You can simply use /save and find them in you GTA User Files/SAMP folder.
Reply
#6

Objects guys, not playerpos or vehiclepos... Read the thread.

Inn0cent got it.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)