02.01.2012, 18:28
Check this out:
pawn Код:
stock ReturnPlayerID(plname[])
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
if(strfind(pName(i),plname,true)!=-1)
return i;
}
}
return INVALID_PLAYER_ID;
}