13.01.2013, 19:19
(
Последний раз редактировалось Mr.Anonymous; 13.01.2013 в 20:57.
)
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;
}