08.09.2012, 17:09
pawn Код:
CMD:procurar(playerid, params[]) {
if(isnull(params))
return false;
new id = strval(params);
if(!IsPlayerConnected(id))
return false;
new Float:p[4], s[100], n[24], zones[MAX_ZONE_NAME];
GetPlayerName(id, n, 24);
GetPlayerPos(id, p[0], p[1], p[2]);
GetPlayer2DZone(id, zones, MAX_ZONE_NAME);
p[3] = GetPlayerDistanceFromPoint(playerid, p[0], p[1], p[2]);
format(s, 100, "%s estб a %f metros de vocк [localidade: %s]", n, p[3], zones);
SendClientMessage(playerid, -1, s);
return true;
}