Raised This Month: $ Target: $400
 0% 

If you don't choose a team until 2 minutes ==> kick/disconnect


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
rak
Veteran Member
Join Date: Oct 2011
Location: banned country
Old 04-16-2012 , 07:43   Re: If you don't choose a team until 2 minutes ==> kick/disconnect
Reply With Quote #3

PHP Code:
#include <amxmodx>

#define PLUGIN "New Plug-In"
#define VERSION "1.0"
#define AUTHOR "[R]ak"

const TASK_CHECK 2707

public plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR)
    
register_clcmd("joinclass""cmdJoinClass")
}

public 
client_putinserver(id)
    
set_task(120.0"Task_Check"id+TASK_CHECK)

public 
cmdJoinClass(id)
    
remove_task(id+TASK_CHECK)
    
public 
Task_Check(taskid)
    
server_cmd("kick #%d"get_user_userid(taskid-TASK_CHECK)) 
__________________

www.amxmodx-es.com

Steam: Luchokoldo

Last edited by rak; 04-16-2012 at 07:52.
rak is offline
Send a message via MSN to rak Send a message via Skype™ to rak
 



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 07:51.


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