[FilterScript] IP Ban by Name System
#1

Hello guys , i made a ban system .

It see the name and then it IP Ban that player , if that name is not allowed .

Easy to use . Just change the name .
The names i used are Lol , lul and lolz , because they can hack your server if someone joins with that names

You can add new names using these lines under OnPlayerConnect :

pawn Код:
else if(!strcmp(pName, "//name not allowed here", true))
     {
       SendClientMessage(playerid, COLOR_PINK,"This name is not allowed");
       Ban(playerid);
     }
Hope you like it . Download link :

Mediafire : http://www.mediafire.com/?b4yoafddhoj1lnl
Pastebin : http://pastebin.com/G3rtJ09Q

Now for the people who don't like the ban system , can use the kick system.
It is same , but this one just will kick them !
Download links :

Mediafire : http://www.mediafire.com/?eux5j9gmf6ctbgs
Pastebin : http://pastebin.com/AjjwYNtJ

Screens of kicking system :



Feel free to rep+ .

No mirrors please .
Use it for changes , but don't remove credits .
If wanna share it , get permission please.

Thanks
Reply
#2

Nice And Simple !
Reply
#3

simple and fantastic!
Reply
#4

Quote:
Originally Posted by Christian7073
Посмотреть сообщение
simple and fantastic!
Thanks

Quote:
Originally Posted by pds2012
Nice and Simply !
Thanks you too
Reply
#5

Really?
Reply
#6

Quote:
Originally Posted by tyler12
Посмотреть сообщение
Really?
What you mean with really ?
If you mean about the lol, lolz , and lul . i was not sure , but it is one of these , so i putted them all .

If someone connect with that name , others cannot join , because that words are proibiden by windows , and everything that uses that name get's broken :P

I found it on ****** search
Reply
#7

Quote:
Originally Posted by Private200
Посмотреть сообщение
What you mean with really ?
If you mean about the lol, lolz , and lul . i was not sure , but it is one of these , so i putted them all .

If someone connect with that name , others cannot join , because that words are proibiden by windows , and everything that uses that name get's broken :P

I found it on ****** search
No. Your showing member's how to use a function documented at the wiki already.
Reply
#8

Ahh , newbie scripters doesen't even know what wiki means , so i pasted it here , and you will not search on ****** to add it ..
Reply
#9

Quote:
Originally Posted by Private200
Посмотреть сообщение
Ahh , newbie scripters doesen't even know what wiki means , so i pasted it here , and you will not search on ****** to add it ..
Could do something like this.

PHP код:
new BadNames[] =
{
    
"Lol",
    
"Lul",
    
"Haxor"
};
stock IsNameInvalid(playerid)
{
    new 
pName[MAX_PLAYER_NAME];
    
GetPlayerName(playerid,pName,sizeof(pName));
    if(!
strcmp(pName,BadNames,true))
    {
        
SendClientMessage(playerid,-1,"ERROR:Name is not allowed.");
        return 
1;
    }
    return 
0;

Reply
#10

Quote:
Originally Posted by Christian7073
Посмотреть сообщение
simple and fantastic!
What is "fantastic" at this filterscript?

Why is not better a ban system ? With loading banned names/IPs from a file, or from a database ( MySQL, SQLite ) ... it's much btter like your code:
pawn Код:
else if(!strcmp(pName, "//name not allowed here", true))
     {
       SendClientMessage(playerid, COLOR_PINK,"This name is not allowed");
       Kick(playerid);
     }
And for what is "else" there? can you explain me?
Reply


Forum Jump:


Users browsing this thread: 5 Guest(s)