AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Delaying round start (https://forums.alliedmods.net/showthread.php?t=108837)

bianster 11-10-2009 05:43

Delaying round start
 
I've noticed that the "World triggered Round_start" log event happens even when there aren't any clients on the server. How would I prevent a round from starting?

I looked at http://forums.alliedmods.net/showthread.php?t=42159 and it seems like there's no way to override round starts.

Arkshine 11-10-2009 05:52

Re: Delaying round start
 
A round starts with "New round" from the tuto.

bianster 11-10-2009 06:26

Re: Delaying round start
 
I'm pretty sure you meant "HLTV" for hooking new rounds? I really meant that I'm trying to figure out how to block rounds from starting (i.e stop the round timer).


PHP Code:

public plugin_init() {
       
register_plugin(PLUGINVERSIONAUTHOR)
    
       
register_logevent("event_round_start"2"1=Round_Start")
       
register_event("HLTV""event_new_round""a""1=0""2=0")  
}

public 
plugin_cfg(){
     
server_cmd("sv_restart 1")
}

public 
event_new_round(){
     
log_message("event_new_round")
     return 
PLUGIN_HANDLED
}

public 
event_round_start(){
     
log_message("event_round_start")
     return 
PLUGIN_HANDLED


The snippet I have doesn't actually do what I want. I'm guessing that register_logevent() can't override events.

Arkshine 11-10-2009 06:33

Re: Delaying round start
 
There is already plugin for that, please search.


All times are GMT -4. The time now is 17:48.

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