GetPlayerID(string[]);  string[] - ник 
 
Code
stock GetPlayerID(string[]) 
 { 
   for(new i = 0; i <= MAX_PLAYERS; i++) 
   { 
    if(IsPlayerConnected(i) == 1) 
    { 
     new testname[MAX_PLAYER_NAME]; 
     GetPlayerName(i, testname, sizeof(testname)); 
      if(strcmp(testname, string, true, strlen(string)) == 0) 
      { 
      return i; 
      } 
     } 
    } 
 return INVALID_PLAYER_ID; 
 }
   Автор: Неизвестен.