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 , 06:26   Re: Delaying round start
Reply With Quote #1

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
Reply



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