Raised This Month: $ Target: $400
 0% 

[solved] How to hook round start/end


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 05-06-2011 , 15:27   Re: How to hook round start/end
#3

It works fine, and your code seems fine.
Please paste the whole code you tested.

PHP Code:
public plugin_init()
{
    
register_event("HLTV""Event_HLTV_New_Round""a""1=0""2=0")
    
register_logevent("LogEvent_Round_Start"2"1=Round_Start")
    
register_logevent("Logevent_Round_End"2"1=Round_End")
}

public 
Event_HLTV_New_Round()
{
    
server_print("Freezetime started")
}

public 
LogEvent_Round_Start()
{
    
server_print("Round started")
}

public 
Logevent_Round_End()
{
    
server_print("Round ended")

__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
 



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 04:22.


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