Raised This Month: $ Target: $400
 0% 

How to determine if round is restarted?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
VEN
Veteran Member
Join Date: Jan 2005
Old 03-11-2006 , 07:07  
Reply With Quote #4

No, that event is for round start and he needs round REstart, this is two different events.

Quote:
for my plugin I am using HLTV as my event but it doesn't catch sv_restartround 1
Of course, because that's different event.

Quote:
sv_restartround 1... is there any way to catch this? I need it
Do you really need catch only sv_restartround and not sv_restart? Only 1 and not 2, 3, 4... ?
I highly doubt that you want to catch exactly sv_restartround 1, therefore see below.

That would catch exactly the moment when sv_restartround 1 or sv_restart 1 is set.
Code:
register_logevent("logevent_restart_round_1", 2, "1=Restart_Round_(1_second)")

If you want exact the same event but for any argument (number) then use that:
Code:
public plugin_log() {     if (read_logargc() != 2)         return     new arg[16]     read_logargv(1, arg, 15)     if (equal(arg, "Restart_Round_(")) {         // ...     } }

And finally if you want to catch the moment when "Game will restart in..." center text message is appears use that:
Code:
register_event("TextMsg", "event_game_will_restart", "a", "2=#Game_will_restart_in")

Probably you would ask what the difference between two last, well, there are no any noticeable difference.
VEN 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 20:28.


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