Unnamed
public text v1 · immutablestock FindUser(pname[])
{
for(new s=0; s<strlen(pname); s++)
for(new i=0; i<MAX_PLAYERS; i++) if(IsPlayerConnected(i))
{
new name[24];
GetPlayerName(i,name,24);
if(name[s] == pname[s]) return i;
}
return -1;
}