Player Position ( With GPS ) help
#2

It is done using GetPlayer2DZone. I'll give it to you from my script. Modify as you want:

pawn Код:
CMD:location(playerid, params[])
{
    new Message[200], Message1[200], zone[MAX_ZONE_NAME], Float:x, Float:y, Float:z;
    GetPlayer2DZone(playerid, zone, MAX_ZONE_NAME);
    GetPlayerPos(playerid, x, y, z);
    format(Message, sizeof(Message), "{00FF00}Your Location: {FFFFFF}X={00FF00}%4.2f{FFFFFF}, Y={00FF00}%4.2f{FFFFFF}, Z={00FF00}%4.2f{00FF00}", x, y, z);
    format(Message1, sizeof(Message1), "At {00FF00}%s", zone);
    SendClientMessage(playerid, 0xFF0000AA, Message);
    SendClientMessage(playerid, 0xFFFFFFFF, Message1);
    return 1;
}
Reply


Messages In This Thread
Player Position ( With GPS ) help - by Private200 - 13.01.2013, 19:15
Re: Player Position ( With GPS ) help - by Mr.Anonymous - 13.01.2013, 19:19
Re: Player Position ( With GPS ) help - by Private200 - 13.01.2013, 19:58
Re: Player Position ( With GPS ) help - by CmZxC - 13.01.2013, 20:01
Re: Player Position ( With GPS ) help - by Mr.Anonymous - 13.01.2013, 20:57

Forum Jump:


Users browsing this thread: 3 Guest(s)