Raised This Month: $ Target: $400
 0% 

Plugin not able to kick player with flag A


Post New Thread Reply   
 
Thread Tools Display Modes
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
Eagle07
Veteran Member
Join Date: May 2014
Location: Morocco :D
Old 07-26-2014 , 13:05   Re: Plugin not able to kick player with flag A
Reply With Quote #2

look this
https://forums.alliedmods.net/showpo...68&postcount=6
__________________
Eagle07 is offline
proffs
Senior Member
Join Date: Jul 2013
Old 07-26-2014 , 13:16   Re: Plugin not able to kick player with flag A
Reply With Quote #3

Quote:
Originally Posted by Eagle07 View Post
I don't get it how I can use that on my plugin.
proffs is offline
Flick3rR
Veteran Member
Join Date: Feb 2014
Location: Bulgaria, Stara Zagora
Old 07-26-2014 , 15:09   Re: Plugin not able to kick player with flag A
Reply With Quote #4

Quote:
Originally Posted by Eagle07 View Post
Well, I don't see how it's related to the topic, though...
I'm going to say something, that I'm not sure about.
I think the server_cmd automatically avoids players with immunity flag. As it's with the console commands. But again, I'm not sure...
__________________
Flick3rR is offline
Send a message via Skype™ to Flick3rR
mottzi
Veteran Member
Join Date: May 2010
Location: Switzerland
Old 07-26-2014 , 19:53   Re: Plugin not able to kick player with flag A
Reply With Quote #5

Quote:
Originally Posted by Flick3rR View Post
I think the server_cmd automatically avoids players with immunity flag.
That would be pretty strange though...
mottzi is offline
Send a message via MSN to mottzi
proffs
Senior Member
Join Date: Jul 2013
Old 07-26-2014 , 20:42   Re: Plugin not able to kick player with flag A
Reply With Quote #6

nvm i forgot somethings, thanks anyway!
proffs 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 13:16.


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