View Single Post
LearninG
Senior Member
Join Date: Apr 2019
Location: Iran
Old 08-26-2019 , 06:58   Re: Auto Ready Plugin
Reply With Quote #3

let me know if any bug occurs.

PHP Code:
#include <amxmodx>

#define TASK_ID          654244

#define TASK_TIME        10.0

public plugin_init()
{
    
register_plugin("Auto Ready Command" "0.01" "LearninG")
    
register_event("TextMsg""Event_TextMsg_Restarting""a""2=#Game_will_restart_in")
}

public 
client_putinserver(id)
{
    
set_task(TASK_TIME "client_start_command" ,id)
}

public 
Event_TextMsg_Restarting(id)
{
    
set_task(TASK_TIME "client_start_command2" TASK_ID)
}

public 
client_start_command(id)
{
    
client_cmd(id "say .ready")
}

public 
client_start_command2()
{
    
client_cmd("say .ready")

LearninG is offline