Quote:
Originally Posted by ball
Код:
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;
}
|
i don't want the i mean that if we enter the part of name the command get's executed and i think ****** got what i meant