Raised This Month: $ Target: $400
 0% 

Help with "kick reasons"


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
AfteR.
Veteran Member
Join Date: Dec 2008
Location: λ
Old 05-23-2010 , 02:10   Help with "kick reasons"
Reply With Quote #1

PHP Code:
new Names[][] = { "p1""p2""p3","p4""p5" }

new 
Reasons[][] = { "r1""r2" "r3""r4""r5" }

public 
plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR)
}

public 
client_connectid )
{
    new 
name32 ], i
    get_user_name
id name 31)
    
    for (
0sizeof(Names); i++)
    {
        if (
equali(nameNames[i]))
        {
            
//for (i = 0; i < sizeof(Reasons); i++)
                
server_cmd("kick #%s ^"%s^""Names[i], Reasons[i])
        }
    }

I don't care if it's by name or steamid, it doesnt work. The purpose of this plugin is to add names, and if the server detects that name it will kick the client, and send the kick reason. Of course, the kick reason will not be the same por user 2, 3, 4, and 5.

How can i make it work?
AfteR. is offline
 



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 05:18.


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