Raised This Month: $ Target: $400
 0% 

Ayuda. ready or kick


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
jg_20
Senior Member
Join Date: Oct 2011
Old 11-19-2011 , 17:21   Ayuda. ready or kick
Reply With Quote #1

Hi all. I have a code that gives kick to the player not to write. Ready at a certain time to enter the server. Well I want to do is register the code also if a player is in a state. NotReady if the server so the kick. But if the stands. Ready not kick.
This plugin would be for YAP PUG mode. If you could help me thank you very much. (Sorry for my bad English) See the code.

PHP Code:
#include <amxmodx>

#define MAX_PLAYERS 32
#define TASK_TIME    60.0 // 1 minuto

new bool:IsReady[MAX_PLAYERS 1]

public 
plugin_init()
{
    
register_clcmd("say .ready""hsay_sready")
    
register_clcmd("say_team .ready""hsay_sready")
}

public 
client_putinserver(id)
{
    
set_task(TASK_TIME"task_kickplayer"id)
}

public 
hsay_sready(id)
{
    
IsReady[id] = true
    remove_task
(id)
}

public 
client_disconnect(id)
{
    
IsReady[id] = false
    remove_task
(id)
}

public 
task_kickplayer(id)
{
    
server_cmd"kick #%i ^"You aren't ready^"", get_user_userid(id) )


Last edited by jg_20; 11-19-2011 at 17:23.
jg_20 is offline
Send a message via Skype™ to jg_20
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 08:29.


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