Raised This Month: $ Target: $400
 0% 

Auto Ready Plugin


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
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
 



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 00:50.


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