Raised This Month: $ Target: $400
 0% 

Auto Restart Round [Different]


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
JusTGo
Veteran Member
Join Date: Mar 2013
Old 02-23-2023 , 10:39   Re: Auto Restart Round [Different]
Reply With Quote #1

Try this:

PHP Code:
#include <amxmodx>

new bool:g_RoundRestarted

public plugin_init() {
    
register_plugin("Auto Round Restart""0.0.1""JustGo")

    
g_RoundRestarted false
}

public 
client_putinserver(id) {
    if(
GetPlayersCount() == && !g_RoundRestarted) {
        
set_cvar_num("sv_restart"1);
        
g_RoundRestarted true
    
}
}

stock GetPlayersCount(){
    new 
iCount 0;
    for(new 
player 1player <= MaxClientsplayer++) {
        if(!
is_user_connected(player)) continue

        
iCount++;
    }

    return 
iCount;

__________________

Last edited by JusTGo; 02-23-2023 at 10:42.
JusTGo is offline
Reply


Thread Tools
Display Modes

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 23:24.


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