Hmm Getplayerpos help
#1

I need a script that I can go in-game and do /saveplayerpos or something and it'll save my player positions.

I'm trying to get positions(coordinates) for my icons and stuff and I dont know how to.. HOW? Is there a SAMP command for it?

Nvm it's /save in-game, sorry I dumb X.x
Reply
#2

pawn Код:
if (strcmp(cmdtext, "/savepos", true)==0)
    {
    new string[128];
    new Float:X, Float:Z, Float:Y;
    GetPlayerPos(playerid, X, Y, Z);
    SendClientMessage(playerid,COLOR_GREEN,"Player Pos Should Be Saved.");
    new File:pos=fopen("OnFootPos.txt", io_append);
    format(string, sizeof(string), "(%f, %f, %f);\r\n", X, Y, Z);
    fwrite(pos, string);
    fclose(pos);
    return 1;
    }
Not mine, someone else made it for me, but it works.
Reply
#3

you can use /save comment it will save your pos
Reply
#4

Read his post:

Quote:

Nvm it's /save in-game, sorry I dumb X.x

Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)