Raised This Month: $ Target: $400
 0% 

Plugin not able to kick player with flag A


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
proffs
Senior Member
Join Date: Jul 2013
Old 07-26-2014 , 12:25   Plugin not able to kick player with flag A
Reply With Quote #1

Hello, I've been looking a around a lot for kicking players with flag A.
But I can't get this working...

PHP Code:
#include <amxmodx> 

#define PLUGIN "Admin No Tag Kick" 
#define VERSION "1.0" 
#define AUTHOR "Flicker" 

#define TAG "[K5]" 

public plugin_init() { 
    
register_plugin(PLUGINVERSIONAUTHOR


public 
client_putinserver(id
    
set_task(3.0"CheckTagOnConnect"id
     
public 
CheckTagOnConnect(id

         
    new 
Name[32
    
get_user_name(idNamecharsmax(Name)) 
    
    
CheckName(idName)
     
    return 
PLUGIN_CONTINUE 
}

public 
client_infochanged(id)
{
    new 
newname[32]
    
get_user_info(id"name"newnamecharsmax(newname))
    
CheckName(idnewname)
}

CheckName(id, const Name[])
{    
    if(
contain(NameTAG) == -1)  
        
server_cmd("kick #%d ^"You were kicked because you don't have our tag: ^"%s^"^"", get_user_userid(id), TAG) 

proffs 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 13:16.


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