pawn Код:
#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","con."
};
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);
break;
}
}
}