12.01.2015, 12:21
Try this
Sorry for loose indentation warning I'm on my phone
pawn Код:
if(text[0] == '$loc')
{
new string[128];
new pName[MAX_PLAYER_NAME];
GetPlayerName(playerid, pName, sizeof(pName));
new zone[MAX_ZONE_NAME];
GetPlayer2DZone(playerid, zone, MAX_ZONE_NAME);
format(string, sizeof(string), "{FFFFFF}%s: {FFFFFF}%s",pName,zone);
SendClientMessageToAll(COLOR_WHITE, string);
}