Raised This Month: $ Target: $400
 0% 

Delaying round start


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
bianster
Junior Member
Join Date: Sep 2009
Old 11-10-2009 , 05:43   Delaying round start
Reply With Quote #1

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.
bianster is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 11-10-2009 , 05:52   Re: Delaying round start
Reply With Quote #2

A round starts with "New round" from the tuto.
__________________
Arkshine is offline
bianster
Junior Member
Join Date: Sep 2009
Old 11-10-2009 , 06:26   Re: Delaying round start
Reply With Quote #3

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.
bianster is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 11-10-2009 , 06:33   Re: Delaying round start
Reply With Quote #4

There is already plugin for that, please search.
__________________
Arkshine 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 17:48.


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