Raised This Month: $ Target: $400
 0% 

name/kick


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
s p l i t
Senior Member
Join Date: May 2006
Location: US, NC
Old 01-28-2007 , 19:05   Re: name/kick
Reply With Quote #1

aha, thanks emp

pamaliska, it should work fine. Post your whole code.
s p l i t is offline
Send a message via AIM to s p l i t Send a message via MSN to s p l i t
Pamaliska
Senior Member
Join Date: Apr 2006
Location: Edinburgh, UK
Old 01-29-2007 , 13:25   Re: name/kick
Reply With Quote #2

Code:
public plugin_init()
{
        register_plugin(PLUGIN, VERSION, AUTHOR)
}
public kick(id)
{
        server_cmd("kick #%d ^"MY MESSAGE^"", get_user_userid(id))
}
public client_infochanged(id)
    {
        new name[32]
        get_user_name(id, name, 31)
        if(name[0]=='[' && name[1]=='C' && name[2]=='h' && name[3]=='e' && name[4]=='a' && name[5]=='t' && name[6]=='e' && name[7]=='r' && name[8]==']' )
        {

            kick(id)
            return
        }
    }
}
        new i, c
        while((c = name[i++]))
        {
                switch(c)
                {
                        case 33, 35, 36, 37, 38, 40, 41, 42, 64, 94, 123, 125:
                        {
                                kick(id)
                                return
                        }
                }
        }
}
Pamaliska is offline
Hunter-Digital
Veteran Member
Join Date: Aug 2006
Location: In the Game [ro]
Old 01-29-2007 , 13:47   Re: name/kick
Reply With Quote #3

if the topic is already open > how can I kick players that have a prefix and are NOT listed in the users.ini file ? like a clan tag protection sistem but just the action, the print chat and stuff I can manage
__________________
Hunter-Digital is offline
Reply



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 22:21.


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