Raised This Month: $ Target: $400
 0% 

[L4D2] How to get the moment of swapping teams' places in versus/scavenge


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
TrueSurvivor
Member
Join Date: Jun 2010
Old 05-19-2012 , 18:09   Re: [L4D2] How to get the moment of swapping teams' places in versus/scavenge
Reply With Quote #3

Depends on what you're doing with this, round_end works just fine as it's called on any round end.
You have 2 round_ends each Versus map.

Basicly you could start with this;
PHP Code:
new iRound;

Public 
OnPluginStart()
{
    
HookEvent("round_start"RoundStart);
}
public 
OnMapEnd()
{
    
//Reset Round Number
    
iRound 0;
}

Public 
RoundStart(Handle:event, const String:name[], bool:dontBroadcast)
{
    
//Add to Round Number
    
iRound++;

If you want to do something in a specific round you can just use "if" to check what Round it is.
TrueSurvivor 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 22:26.


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