Raised This Month: $ Target: $400
 0% 

Round Restart?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
DataMatrix
Senior Member
Join Date: Aug 2005
Location: UK, Liverpool
Old 08-26-2005 , 16:38   Round Restart?
Reply With Quote #1

Is there anyway to find out if the round has restarted?
DataMatrix is offline
Send a message via MSN to DataMatrix
PM
hello, i am pm
Join Date: Jan 2004
Location: Canalization
Old 08-26-2005 , 17:07  
Reply With Quote #2

What do you mean. Ingame or in windows?
__________________
hello, i am pm
PM is offline
DataMatrix
Senior Member
Join Date: Aug 2005
Location: UK, Liverpool
Old 08-26-2005 , 17:56  
Reply With Quote #3

I mean via AMXX... Is there any include with the necessary functions to do this?
DataMatrix is offline
Send a message via MSN to DataMatrix
Sp4rt4n
Senior Member
Join Date: Dec 2004
Old 08-26-2005 , 18:00  
Reply With Quote #4

Code:
register_event("ResetHUD", "newSpawn", "b")
Sp4rt4n is offline
Send a message via MSN to Sp4rt4n
DataMatrix
Senior Member
Join Date: Aug 2005
Location: UK, Liverpool
Old 08-26-2005 , 18:05  
Reply With Quote #5

That doesn't explain too much, can you expand on that?
DataMatrix is offline
Send a message via MSN to DataMatrix
Sp4rt4n
Senior Member
Join Date: Dec 2004
Old 08-26-2005 , 18:11  
Reply With Quote #6

Code:
    register_event("ResetHUD", "resethud_event", "be") public resethud_event(id) {     if(hooked[id])     {         release(id)     }     if(is_valid_ent(wait_jump[id]))     {         remove_entity(wait_jump[id])     }     wait_jump[id] = 0     test_wall[id] = false     wait[id] = false     wrappedup[id] = false     if(task_exists(21121411+id))     {         remove_task(21121411+id)     } }


I think ResetHUD hooks the start of a new round
Sp4rt4n is offline
Send a message via MSN to Sp4rt4n
v3x
Veteran Member
Join Date: Oct 2004
Location: US
Old 08-26-2005 , 18:23  
Reply With Quote #7

Code:
register_event("TextMsg","Event_RoundRestart","a","2&#Game_w")
Code:
public Event_RoundRestart(id) {     client_print(0,print_chat,"The round is restarting") }
I believe that's what you're looking for, when someone does "sv_restartround <num>".
__________________
What am I doing these days? Well, I run my own Rust server. It's heavily modded. If you'd like to join, the ip is 167.114.101.67:28116

I also created a website called Rust Tools. It will calculate and tell you the raw amounts of resources needed to craft items.
v3x is offline
DataMatrix
Senior Member
Join Date: Aug 2005
Location: UK, Liverpool
Old 08-26-2005 , 18:30  
Reply With Quote #8

No, I want to know when the SERVER initiates it, e.g. when the Terrorists win the round a new round starts.
DataMatrix is offline
Send a message via MSN to DataMatrix
v3x
Veteran Member
Join Date: Oct 2004
Location: US
Old 08-26-2005 , 18:32  
Reply With Quote #9

Code:
register_event("SendAudio", "te_win", "a", "2&%!MRAD_terwin") register_event("SendAudio", "ct_win", "a", "2&%!MRAD_ctwin")
When CT or TE wins.. ^
Code:
register_logevent("new_round",2,"0=World triggered","1=Round_Start")
Beginning of new round ( after freezetime ).
__________________
What am I doing these days? Well, I run my own Rust server. It's heavily modded. If you'd like to join, the ip is 167.114.101.67:28116

I also created a website called Rust Tools. It will calculate and tell you the raw amounts of resources needed to craft items.
v3x is offline
DataMatrix
Senior Member
Join Date: Aug 2005
Location: UK, Liverpool
Old 08-26-2005 , 18:36  
Reply With Quote #10

Ok so would I put this in plugin_init
Code:
register_logevent("new_round",2,"0=World triggered","1=Round_Start")

Then the new_round would be public new_round, then my code?

E.g.
Code:
public plugin_init() {     register_logevent("new_round",2,"0=World triggered","1=Round_Start")     return PLUGIN_CONTINUE } public new_round(id) {     blah goes here?         return PLUGIN_CONTINUE }
DataMatrix is offline
Send a message via MSN to DataMatrix
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 14:18.


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