Raised This Month: $ Target: $400
 0% 

reviw of a plugin


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
StormZone
BANNED
Join Date: Nov 2008
Location: [RO]Hunedoara/Petrosani
Old 09-05-2009 , 04:16   reviw of a plugin
Reply With Quote #1

Code:
#include <amxmodx>

#define PLUGIN "Restrict_Names_Advanced"
#define VERSION "1.0"
#define AUTHOR "Alka & Jim"
public plugin_init()
{
        register_plugin(PLUGIN, VERSION, AUTHOR)
}
public kick(id)
{
        server_cmd("kick #%d ^"Change Your Name!You have a restrict name!^"", get_user_userid(id))
}
public client_connect(id)
{
        new name[32]
        get_user_name(id, name, 31)
        if(containi(name, "player") != -1 || containi(name, "unnamed") != -1 || containi(name, "hack") != -1 || containi(name, "admin") != -1 || containi(name, "`") != -1 || containi(name, "~") != -1)
        {
                kick(id)
                return
        }
        new i, c
        while((c = name[i++]))
        {
                switch(c)
                {
                        case 31, 32, 33, 34, 35, 36, 37, 38, 40, 41, 42, 64, 94, 123, 125:
                        {
                                kick(id)
                                return
                        }
                }
        }
}
Y found this plugin but it kick players with other characters like ( ) - etc and y dont want to.
How can y set it to kick only players with this characters # $ ' ` ~ and y dont want to kick the players for their name.
Y would realy apreciate y someone could help me.
StormZone is offline
Send a message via Yahoo to StormZone Send a message via Skype™ to StormZone
StormZone
BANNED
Join Date: Nov 2008
Location: [RO]Hunedoara/Petrosani
Old 09-05-2009 , 09:03   Re: reviw of a plugin
Reply With Quote #2

no help at all?
StormZone is offline
Send a message via Yahoo to StormZone Send a message via Skype™ to StormZone
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 09-05-2009 , 12:45   Re: reviw of a plugin
Reply With Quote #3

In 5 hours? No. This is how forums work. You post. You wait (more than 5 hours; don't expect an answer for at least a few days).
__________________
fysiks is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 09-05-2009 , 12:54   Re: reviw of a plugin
Reply With Quote #4

Don't bump until 2 weeks have passed since last post.
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
Brad
AMX Mod X Team Member
Join Date: Jun 2004
Old 09-05-2009 , 15:30   Re: reviw of a plugin
Reply With Quote #5

But please do enjoy all the free bumping we are doing for you.
Brad is offline
StormZone
BANNED
Join Date: Nov 2008
Location: [RO]Hunedoara/Petrosani
Old 09-05-2009 , 17:03   Re: reviw of a plugin
Reply With Quote #6

a lot of cheap talck but no help
StormZone is offline
Send a message via Yahoo to StormZone Send a message via Skype™ to StormZone
Brad
AMX Mod X Team Member
Join Date: Jun 2004
Old 09-05-2009 , 22:48   Re: reviw of a plugin
Reply With Quote #7

http://www.cppreference.com/wiki/ascii
__________________
Brad is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 09-06-2009 , 00:53   Re: reviw of a plugin
Reply With Quote #8

Or just use single quotes aroung the character in your case statement (but you can't do that with the ' (single quote) character). It's much easier to comprehend that way. You can include the characters in:

Code:
containi(name, "`") != -1 || containi(name, "~") != -1
in your switch statement.

BTW, Y -> I. Go and translate the english word "I". I think I might have actually read your post had you not bumped it lol .
__________________

Last edited by fysiks; 09-06-2009 at 01:03.
fysiks is offline
StormZone
BANNED
Join Date: Nov 2008
Location: [RO]Hunedoara/Petrosani
Old 09-09-2009 , 03:03   Re: reviw of a plugin
Reply With Quote #9

after y connect with an restricted name it wont let me enter again just a an simple name.
no other char
StormZone is offline
Send a message via Yahoo to StormZone Send a message via Skype™ to StormZone
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 09-09-2009 , 03:11   Re: reviw of a plugin
Reply With Quote #10

http://translate.google.com/translat...tate0=#en|ro|I
__________________
fysiks is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 14:59.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode