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

Код:
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;
}
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 2 Guest(s)