any way to get players id form the part of name
#8

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
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)