AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   force round end (https://forums.alliedmods.net/showthread.php?t=63201)

kp_uparrow 11-14-2007 20:01

force round end
 
any way to force round end without killing players? or moving their teams

is there a way to trick the engine to think everyone on that team is dead buy they are alive so round will end? maybe the dead flag?

hugz` 11-14-2007 20:05

Re: force round end
 
Hi. Download this.. and then copile the code below.

http://forums.alliedmods.net/showthr...force+team+win

Code:

#include <amxmodx>
#include <amxmisc>

#define PLUGIN "3:12 Countdown"
#define VERSION "1.0"
#define AUTHOR "M249-M4A1"

Code:

public plugin_init() { 
   
register_plugin(PLUGIN, VERSION, AUTHOR
   
register_event("HLTV", "Countdown", "a", "1=0", "2=0"


public
Countdown() { 
    if (
task_exists(12345)) { 
       
remove_task(12345
       
set_task(190.0, "doSomething", 12345
        } else { 
       
set_task(190.0, "doSomething", 12345
    } 


public
doSomething() { 
   
server_cmd("team_win 1"




The timer is set to 3:10

kp_uparrow 11-14-2007 20:19

Re: force round end
 
that moves their team, the reason i dont want it to move their team is moving 16 players will svc_bad

there must be something in the half life engine checks to make the round end

can we fool the round timer?

M249-M4A1 11-14-2007 21:47

Re: force round end
 
Get http://forums.alliedmods.net/showthread.php?p=344114 and create a timer that auto-terminates around about the same time as mp_roundtime. That should suit your needs.

Orangutanz 11-14-2007 22:05

Re: force round end
 
If you are feeling adventurous have a play with this unknown entity. It's index is on get_maxplayers() + 1.

I spoke to Alfred from Valve some time back since I noticed this entity he said it was something to do with a timer as far as he knew.

No I didn't contact him specifically about this entity, it was about the player slot problem upon initial server startup. Last player index isn't loaded until server reaches maximum capacity, this bug is still not fixed either! Along with various other HLDS VGUI console bugs I reported as well :evil:

hugz` 11-14-2007 23:39

Re: force round end
 
Quote:

Originally Posted by M249-M4A1 (Post 552907)
Get http://forums.alliedmods.net/showthread.php?p=344114 and create a timer that auto-terminates around about the same time as mp_roundtime. That should suit your needs.

LoL! Thats what I just posted above! =o

M249-M4A1 11-15-2007 00:13

Re: force round end
 
Quote:

Originally Posted by hugz` (Post 552941)
LoL! Thats what I just posted above! =o

Command "team win 1" is not a default command, and I posted the plugin that has that command, and instructions on how to make the timer plugin better, because what we have so far is to force a team win after 3:12, and we want it to force a team win in association with the round timer

kp_uparrow 11-15-2007 01:29

Re: force round end
 
seems that no dead flags make the round end

hugz` 11-15-2007 15:20

Re: force round end
 
Quote:

Originally Posted by M249-M4A1 (Post 552952)
Command "team win 1" is not a default command, and I posted the plugin that has that command, and instructions on how to make the timer plugin better, because what we have so far is to force a team win after 3:12, and we want it to force a team win in association with the round timer

lol, I'm not trying to start an argument.. and you did help me out a lot..
But I did post the link to the plugin that has team_win 1 and I know it isn't default lol =P.. and you can change the timer from 190 to what ever.. in seconds. Works on my server.


All times are GMT -4. The time now is 07:57.

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