SA-MP Forums Archive
[FilterScript] Celebrity Name Checker v1.0 - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Filterscripts (https://sampforum.blast.hk/forumdisplay.php?fid=17)
+--- Thread: [FilterScript] Celebrity Name Checker v1.0 (/showthread.php?tid=282386)



Celebrity Name Checker v1.0 - Luis- - 10.09.2011

Celebrity Name Checker
Version 1.0

Hello and welcome to my latest filterscript, this filterscript will kick those who enter your server with a celebrity name, obviously you will need to add some more but I have added some for you.

I don't think there is any need for any screens because the name basically tells you what it does.

You can add new celebrity names by adding them here:
pawn Код:
new CelebNames[][] = {
    "David_Beckham",
    "Wayne_Rooney",
    "Harry_Potter",
    "Johnny_Knoxville",
    "Bam_Margera",
    "Celeb_Name_Here"
};
Good luck with your scripting future and thanks for looking / using this!

Downloads
celebname.pwn.
celebname.amx.

Credits
Daniel-92.
FireCat.




Re: Celebrity Name Checker v1.0 - PrawkC - 10.09.2011

Give credits, you asked how to do this in scripting discussion.


Re: Celebrity Name Checker v1.0 - payl - 10.09.2011

Why Justin_Bieber isn't on list? :O


Re: Celebrity Name Checker v1.0 - FireCat - 10.09.2011

Nice :b
EDIT:
pawn Код:
public OnPlayerConnect(playerid)
{
    new
        pName[MAX_PLAYER_NAME]
    ;
    GetPlayerName( playerid, pName, sizeof(pName) );
    if(strcmp("JustinBieber",pName) == 0)
    {
        BanEx( playerid, "JUSTINBIEBER HAX :OOO" );
        SendClientMessage( playerid, red, "Welcome to my server!" );
    }
    return 1;
}



Re: Celebrity Name Checker v1.0 - iMonk3y - 10.09.2011

Apparently you love football and Jackass...


Re: Celebrity Name Checker v1.0 - Luis- - 10.09.2011

Well, I do actually but those names just came to my head while making it xD, and thanks everyone! And I couldn't add Justin Bieber because it'd break my Pawno.


Re: Celebrity Name Checker v1.0 - FireCat - 10.09.2011

Quote:
Originally Posted by -Luis
Посмотреть сообщение
Well, I do actually but those names just came to my head while making it xD, and thanks everyone! And I couldn't add Justin Bieber because it'd break my Pawno.
LOL.
Suggestions:
-Make this as an include
-Add a function AddCelebName(const celebname[]);


Re: Celebrity Name Checker v1.0 - Luis- - 10.09.2011

I might do that later on, I am planning to open a piloting server soon.


Re : Celebrity Name Checker v1.0 - Naruto_Emilio - 11.09.2011

I find this Useless.....that's my opinion....


Re: Celebrity Name Checker v1.0 - Kaperstone - 11.09.2011

Quote:
Originally Posted by FireCat
Посмотреть сообщение
Nice :b
EDIT:
pawn Код:
public OnPlayerConnect(playerid)
{
    new
        pName[MAX_PLAYER_NAME]
    ;
    GetPlayerName( playerid, pName, sizeof(pName) );
    if(strcmp("JustinBieber",pName) == 0)
    {
        BanEx( playerid, "JUSTINBIEBER HAX :OOO" );
        SendClientMessage( playerid, red, "Welcome to my server!" );
    }
    return 1;
}
:O
evil!
you ban him only because he is justin bieber? well i would ban him to >


anyway nice script Luis