[Tutorial] [TUT] Nicks Proibidos
#1

No topo do GameMode:
Код:
//Nicks Proibidos
new NicksProibidos[][MAX_PLAYER_NAME] ={
"[ViP Labrik","[MT Lavis","[XXX Whatever","com1","com2","com3","com4","com5","com6",
"com7","com8","com9","lpt1","lpt2","lpt3","lpt4","lpt5","lpt6","lpt7","lpt8","lpt9",
"Carl","Rocky","Sony","clock$","prn","nul","con","Pepe","Arnoldo","SgtPepper","Pepsi",
"Azucar","CON","con","con1","Zoquete","Pacman","Batman",,"Manfrey","Papirola",
"Sopapeala","aux","oi","aux1","prn","PRN","AUX"
};
Ainda no Topo Coloque Isto:
Код:
new Security = 0;
No OnPlayerConnect:
Код:
  new fulano_entrou[256];
	GetPlayerName(playerid,fulano_entrou,256);
 	if(Security != 0)
	{
	  SendClientMessage(playerid, COLOR_YELLOW, "Para jogar aqui, voce tem que cumprir as regras.");
	  Kick(playerid);
	  return 1;
	}
	for(new i; i<sizeof(NicksProibidos); i++)
	{
		if(strcmp(NicksProibidos[i],fulano_entrou,true)==0)
		{
			SendClientMessage(playerid,COLOR_YELLOW,"Vocк foi pego pelo The_DarK VAZA MLK :]!");
			Ban(playerid);
		}
	}
Reply


Messages In This Thread
[TUT] Nicks Proibidos - by Joao Ziicka - 27.02.2010, 11:57
Re: [TUT] Nicks Proibidos - by SlashPT - 27.02.2010, 12:38
Re: [TUT] Nicks Proibidos - by Joao Ziicka - 27.02.2010, 13:02
Re: [TUT] Nicks Proibidos - by Ambrуsio - 27.02.2010, 13:11
Re: [TUT] Nicks Proibidos - by Joao Ziicka - 27.02.2010, 13:23
Re: [TUT] Nicks Proibidos - by Ambrуsio - 27.02.2010, 14:26
Re: [TUT] Nicks Proibidos - by Joao Ziicka - 27.02.2010, 15:16

Forum Jump:


Users browsing this thread: 1 Guest(s)