15.05.2014, 14:55
Код:
stock getID(pName[]) { new name[25]; for(new playerid; playerid != MAX_PLAYERS; playerid++) { if(IsPlayerConnected(playerid)) { GetPlayerName(playerid, name, 25); if(strfind(name, pName) != -1) return playerid; } } return INVALID_PLAYER_ID; }