06.04.2012, 04:59
Код:
CMD:loc(playerid, params[]) { if(isnull(params)) return SendClientMessage(playerid, COLOR_RED, "Usage: /loc [id]"); new pID = strval(params), zName[64] = "Unknown Location", iStr[128]; if(!IsPlayerConnected(pID)) return SendClientMessage(playerid, COLOR_RED, "Invalid ID or the User is Not Online."); GetPlayerInZone(pID, zName, 64); format(iStr, sizeof(iStr), "Location of %s(%d): %s", pName(pID), pID, zName); SendClientMessage(playerid, G, iStr); return 1; }