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(0 , "say .ready")
}