AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Suggestions / Requests (https://forums.alliedmods.net/forumdisplay.php?f=12)
-   -   [Request] AUTO restart round if player enter (https://forums.alliedmods.net/showthread.php?t=341711)

MeliMeli 02-07-2023 16:08

[Request] AUTO restart round if player enter
 
I searched every corner of the world, the multiverse and did not find such a plugin. The server will restart with countdown if a new player enter the server. If you have only 1 player on the server and another player enters, the count for a new round will begin and all rounds/frags and etc will be reset. Can someone do it?

bigdaddy424 02-08-2023 12:04

Re: [Request] AUTO restart round if player enter
 
Whenever someone joins the enemy team and its just you two, Game Commencing message will show up and stats/round/money will reset, if you're talking about counter-strike, unless its another game

DJEarthQuake 02-24-2023 11:32

Re: [Request] AUTO restart round if player enter
 
Code:
/*CS/CZ restart round mono-to-duo, Idea by: MeliMeli*/ #include amxmodx #define  PLUGIN   "Restarting Round" #define  VERSION  "1.0.3" #define  AUTHOR   "SPiNX" #define MAX_PLAYERS 32 new g_zombies new bool:bRestarted, Xcvar_bot; new bool:bBot[MAX_PLAYERS +1]; new const SzCMD[]="sv_restartround 2" public plugin_init() {     register_plugin(PLUGIN, VERSION, AUTHOR)     Xcvar_bot=register_cvar("mp_two_bot", "1")     /*Zombie leave as 1 to fix round to include bots.*/ } public client_putinserver(id) {     bBot[id] = is_user_bot(id) ? true : false     if(bBot[id] && get_pcvar_num(Xcvar_bot) || !bBot[id] && !get_pcvar_num(Xcvar_bot))     {         g_zombies++         if(g_zombies  == 2 && !bRestarted)         {             bRestarted = true             console_cmd( 0, SzCMD )             console_cmd( 0, "say ^"%s, %s by %s.^"", PLUGIN, VERSION, AUTHOR )         }     } } public client_disconnected(id) {     if(bBot[id] && get_pcvar_num(Xcvar_bot) || !bBot[id] && !get_pcvar_num(Xcvar_bot))     {         g_zombies--         if(g_zombies < 2 && bRestarted)         bRestarted   = false     } }

MeliMeli 02-24-2023 22:24

Re: [Request] AUTO restart round if player enter
 
thank you, I will test it today for some reason when 2 players are on the same team the event #Game Commecing is not hooked, only if 1 player is TR and the other CT

i'll see if this fixes

ChillerX 02-24-2023 23:19

Re: [Request] AUTO restart round if player enter
 
The simpler approach would be to use either an auto team join cvar or plugin (or team limit cvar).


All times are GMT -4. The time now is 10:14.

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