[Ajuda]Nicks
#4

Код:
#define ADMIN_LAST_NAME_ONLY "admin"
enum names
{
	"souadmin",
	"administrador",
	"Mradmin"
};
new allow[names];

onplayerconnect

for(i=0;i<=2;i++;)
{
	if(GetPlayerLastName(playerid) == ADMIN_LAST_NAME_ONLY && !GetPlayerFirstName(playerid) == allow[i])
	{
		kick(playerid);
	}
}
stock GetPlayerFirstName(playerid)
{
	new namestring[2][MAX_PLAYER_NAME];
	new name[MAX_PLAYER_NAME];
	GetPlayerName(playerid,name,MAX_PLAYER_NAME);
	split(name, namestring, '_');
	return namestring[0];
}
stock GetPlayerLastName(playerid)
{
	new namestring[2][MAX_PLAYER_NAME];
	new name[MAX_PLAYER_NAME];
	GetPlayerName(playerid,name,MAX_PLAYER_NAME);
	split(name, namestring, '_');
	return namestring[1];
}
acho q deve ser +/- assim aperfeiзoб mais.
Reply


Messages In This Thread
[Ajuda]Nicks - by keller012 - 30.12.2010, 15:43
Re: [Ajuda]Nicks - by vinewood - 30.12.2010, 15:46
Re: [Ajuda]Nicks - by Macintosh - 30.12.2010, 15:56
Re: [Ajuda]Nicks - by vinewood - 30.12.2010, 16:05
Re: [Ajuda]Nicks - by Katros - 30.12.2010, 16:07
Re: [Ajuda]Nicks - by Black Sσldiєя - 30.12.2010, 16:58
Respuesta: [Ajuda]Nicks - by ipsBruno - 30.12.2010, 18:02

Forum Jump:


Users browsing this thread: 1 Guest(s)