Anti Con Worked But Not Good Help Me + Rep
#1

Hi All. i FInd Anti Con Script And Worked But Not Good. If Player Join To Server With Con Nickname Got Banned. But If Player Join To Server As Con NickName Whith Part Of His NAme Not Banned... Example Player Join With This Nickname To Server: con.John OR Example con.Sina And MY Server SHut down... Any One Can Fix My Script I Realy Need It + Rep
This Is My Script Code :
Код HTML:
#include <a_samp>
#if defined FILTERSCRIPT

public OnFilterScriptInit()
{
    return 1;
}

#endif
new Name[MAX_PLAYER_NAME];

new NicksProibidos[54][MAX_PLAYER_NAME] ={  // 54 ant nick se for aumenta a cada 1 aumentado aumente ali tanbem!
"com1","com2","com3","com4","com5","com6","com7","com8","com9","COM1","COM2","COM3",
"COM4","COM5","COM6","COM7","COM8","COM9","lpt1","lpt2","lpt3","lpt4","lpt5","lpt6",
"lpt7","lpt8","lpt9","prn1","prn2","prn3","prn4","prn5","prn6","prn7","prn8","prn9",
"aux1","aux2","aux3","aux4","aux5","aux6","aux7","aux8""aux9","clock$","nul","con",
"CON","con","con1","aux","aux1","PRN","AUX"
};

public OnPlayerConnect(playerid) {
  for (new i; i < sizeof(NicksProibidos); i++) {
    new nickproibido[40];
    GetPlayerName(playerid, nickproibido, 40);
    if (strfind(NicksProibidos[i], nickproibido, true) == 0) {
      SendClientMessage(playerid, 0xFFFF00AA, "English: You Have been Banned Noob! Persian: Hanoo Zoode ;)");
      SendClientMessage(playerid, 0xFFFF00AA, "Bye Bye");
      GameTextForPlayer(playerid, "~n~~n~~n~~n~~n~~n~~r~Best Of Zombie Servers!!", 3000, 3); //ira aparecer na tela eu acho massa se usar se quizer!
      Ban(playerid);
    }
  }
}
Reply


Messages In This Thread
Anti Con Worked But Not Good Help Me + Rep - by alishvasis - 17.12.2014, 14:42
Re: Anti Con Worked But Not Good Help Me + Rep - by M4D - 17.12.2014, 15:28
Re: Anti Con Worked But Not Good Help Me + Rep - by alishvasis - 17.12.2014, 16:19
Re: Anti Con Worked But Not Good Help Me + Rep - by M4D - 17.12.2014, 16:49
Re: Anti Con Worked But Not Good Help Me + Rep - by alishvasis - 17.12.2014, 17:03
Re: Anti Con Worked But Not Good Help Me + Rep - by alishvasis - 17.12.2014, 17:37
Re: Anti Con Worked But Not Good Help Me + Rep - by alishvasis - 17.12.2014, 18:22

Forum Jump:


Users browsing this thread: 2 Guest(s)