28.08.2012, 17:55
first
add this include to your gamemode
https://sampforum.blast.hk/showthread.php?tid=27598
then add this command (zcmd and sscanf)
add this include to your gamemode
https://sampforum.blast.hk/showthread.php?tid=27598
then add this command (zcmd and sscanf)
pawn Код:
CMD:area(playerid,params[])
{
new target;
if(sscanf(params,"u",target)) return SendClientMessage(playerid,0xFFFFFFFF,"USAGE: /locate <playerid>");
new string[200], Name[MAX_PLAYER_NAME], zone[MAX_ZONE_NAME];
GetPlayerName(target, Name, MAX_PLAYER_NAME);
GetPlayer2DZone(target, zone, MAX_ZONE_NAME);
format(string, sizeof(string), "%s is in %s.", Name, zone);
SendClientMessage(playerid,0xFFFFFFFF,string);
return 1;
}