03.03.2011, 13:07
Код:
CMD:loc(playerid, params[]) { new id; if(otype[playerid] != 1) return SendClientMessage(playerid, red, "You cannot use this command."); if(sscanf(params,"u",id)) return SendClientMessage(playerid, red, "USAGE:/loc [id]"); new r[64],zone[128],t[128]; format(t,32,"%s",GetPlayer2DZone(id, zone, sizeof(zone))); format(r,128,"Suspect is in %s",t); SendClientMessage(playerid, COLOR_ORANGE, r); return 1; }
eg:
i type "hello" in the chat or smthn and use /loc, it says "Suspect is in hello".
so help anyone?