Raised This Month: $ Target: $400
 0% 

Auto Ready Plugin


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
LearninG
Senior Member
Join Date: Apr 2019
Location: Iran
Old 08-26-2019 , 09:41   Re: Auto Ready Plugin
Reply With Quote #1

This should not have any issues
PHP Code:
#include <amxmodx>

#define TASK_ID          6514515

#define TASK_TIME        10.0  

new g_MaxPlayers 

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

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

public 
Event_TextMsg_Restarting()  
{
    
set_task(TASK_TIME "client_start_command2"


public 
client_start_command(TASK)  
{
    new 
id TASK TASK_ID
    client_cmd
(id "say .ready")  


public 
client_start_command2() 

    for (new 
1i<= g_MaxPlayersi++) 
    { 
        if (
is_user_connected(i)) 
        { 
            
client_cmd("say .ready"
        } 
    } 


Last edited by LearninG; 08-26-2019 at 11:33.
LearninG is offline
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 00:50.


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