[FilterScript] [FS]Bad_Name/Famous_Name blocker by KeyWay [UPDATED]
#1

You have a RolePlay server, and tired of kicking/banning out James_Bond's, Micheal_Jackson's and Fuck_You's ?
Then its your lucky moment right now when you are reading this. This FilterScript kick's most popular Bad/Famous names. Why not ban? Because where is the fun then? I think that its fun to see how stupid/silly people are, and laugh with friends to different silly/stupid names. (I can release Ban version too if anyone needs.)


I Made this looong time, over 5hour. This is my first FilterScript ever! And first FS release also.
You can do with the FilterScript whatever you want to do, but just dont remove the credits and dont claim it yours.
Credits goes to KeyWay(That will be me ), Douglas_Tolman, Staffan_Dee, Brendan_Thomson and for tiding Thomas_Conroy!
Since i have been asked so many times help from forums and IRC, i feeled to do something to others, something that is very useful and simple. (Since i know only basic scripting, well allmost.)

There is different directoryes of blocked names:

Famous: Singers/Actors/Others
Sopranos: Characters (Since alot people makes Sopranos accounts.)
SmackDown: Wrestlers ((Actually "actors")YES! IVE SEEN PEOPLE WITH SMACKDOWN ACCOUNT NAMES! )
Vice City: Characters (Since ALOT people makes for example "Tommy_Vercetti" accounts)
GTA III: Characters
GTA:SA Storyline: Characters
The Godfather: Characters
Ugly bad names for example Fuck_You
+ It block ALL names for example "Spiderman", so everyone MUST have Firstname_Lastname or firstname_lastname. (I have no idea how to block capitalized names like first_last, sorry. If someone knows, please share.)

Allmost 600 names! Yes i know i made bad names twice like Fuck_You and fuck_you, but i realised it when all was done that its not necessary




Screen example:

Vinewood: You belong in Hollywood. GTFO!

UPDATED: It's more simple and takes less CPU i quess. Thanks Thomas_Conroy!
http://pastebin.com/f2afea72f><PASTEBIN><
http://rapidshare.com/files/238240488/sensor.pwn.html><RAPIDSHARE .PWN><
http://rapidshare.com/files/235372618/sensor.amx.html><RAPIDSHARE .AMX><
Reply
#2

nice
Reply
#3

Nice job, easy, simple, effective.
Reply
#4

Thanks
Reply
#5

I find this quite funny, yet useful.
Reply
#6

Quote:
Originally Posted by Slice
I find this quite funny, yet useful.
Well at start it was mentioned to be funny.

I was going to plan to make every single First_Last name kick text. For example: SERVER: kicked, Lance_Vance Reason: Likes to Dance? etc
But then i didnt feel to make 600different text so...
Reply
#7

Simple but useful.
Reply
#8

why use this:

GetPlayerName(playerid,pName,sizeof(pName));

for(blahblah)

?


One time just GetPlayerName at all... then work with the for operations.... also i guess there are much proccess when player connect... well for it i guess exist cool plugin... here it is

http://samp-developing.ru/TIS.rar


just use CreateThread(playername,which being getted, or playerid in string);
and
public OnThreadWork(same parameters, as in threadcreate){
here are operations with nickname.... so it will set some free to mode (sorry for english )
}
in this
Reply
#9

Quote:
Originally Posted by [RD
Chez ]
why use this:

GetPlayerName(playerid,pName,sizeof(pName));

for(blahblah)

?


One time just GetPlayerName at all... then work with the for operations.... also i guess there are much proccess when player connect... well for it i guess exist cool plugin... here it is

http://samp-developing.ru/TIS.rar


just use CreateThread(playername,which being getted, or playerid in string);
and
public OnThreadWork(same parameters, as in threadcreate){
here are operations with nickname.... so it will set some free to mode (sorry for english )
}
in this
I have really simple answer for your text... BECAUSE THIS IS MY FIRST FILTERSCRIPT! Thank you.
Reply
#10

Pretty cool.
Reply
#11

nice done
Reply
#12

Kinda cool, good job.
Reply
#13

Good job with the tv shows/movies/famous names, though this was useless:
#
"Black_Pussies",
#
"black_pussies",
#
"Black_Pussys",
#
"black_Pussys",
#
"Black_Nigger",
#
"black_nigger",
#
"Black_Niggers",
#
"black_niggers",
You could've done it with strfind, less job - less lines.
Reply
#14

but i can type;

joe_bullet and i will still get ingame... you didnt look for capitals anywhere.. look at mine code in useful snippets(or even faster based on mine down of mine post)...
Reply
#15

Quote:
Originally Posted by MenaceX^
Good job with the tv shows/movies/famous names, though this was useless:
#
"Black_Pussies",
#
"black_pussies",
#
"Black_Pussys",
#
"black_Pussys",
#
"Black_Nigger",
#
"black_nigger",
#
"Black_Niggers",
#
"black_niggers",
You could've done it with strfind, less job - less lines.
Thanks, but you should read more carefully:
Quote:

Allmost 600 names! Yes i know i made bad names twice like Fuck_You and fuck_you, but i realised it when all was done that its not necessary

Reply
#16

This is gonna be pretty CPU intensive? Comparing 600 the name 600 times one after another.. I'ma run some tests..

EDIT: Also why the hell do you redefine them every time? That's a hell of a lot of declaring! My bad :P didn't see a bracket

Ok on further inspection.. How many times do you get the player name!?!!?!?!?!?!?!111//!?1?!? Wasn't once enough?

I can see many many places where you could have used fewer lines, and alot of the time less memory/cpu. You declare alot of strings and don't recycle them, and in places there's no indentation.

And what's KickPlayer? You use it in 2 places.

You define it, and then set it to 0 if they don't get kicked.. It's not used anywhere else, so what does it do?
Reply
#17

lol what if Brittany Spears wants to play on your server? lol
Reply
#18

I managed to shave 200 lines off the script without removing any of the names. (Around 10 of these lines were GetPlayerName ).

If you want to see the tidier version, PM me and I'll get it to you somehow. As you use "true" in the strcmp's you don't need to worry about having capitals and non-capitals, but I think you already realised that. Unfortunately no matter how many names you put in you'll never catch everyone without an admin on hand.
Reply
#19

Quote:
Originally Posted by Weirdosport
I managed to shave 200 lines off the script without removing any of the names. (Around 10 of these lines were GetPlayerName ).

If you want to see the tidier version, PM me and I'll get it to you somehow. As you use "true" in the strcmp's you don't need to worry about having capitals and non-capitals, but I think you already realised that. Unfortunately no matter how many names you put in you'll never catch everyone without an admin on hand.
What the f**k is wrong with you?!

Didnt i just sayd that its my first Filterscript/Release?? You could help or suggest instead of flaming and f**king here..
Wow you like to argouge with newbie, thats lame.
Reply
#20

I think he was just trying to help
Reply


Forum Jump:


Users browsing this thread: 4 Guest(s)