Raised This Month: $ Target: $400
 0% 

reviw of a plugin


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
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
 



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 15:00.


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