Raised This Month: $ Target: $400
 0% 

Halftime teamswitch (1.0.11)


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
pRED*
Join Date: Dec 2006
Old 12-07-2007 , 18:05   Re: Halftime teamswitch
Reply With Quote #5

For readability you could try changing 'new halftime' to 'new bool:halftime' and then using 'true' and 'false' instead of 1 and 0. This has no effect on how the code gets executed, just makes it clearer to read imo. Definitely not required for approval.

You said in one of your comments that you tried the event 'game_newmap', you can just use the public forward 'public OnMapStart()' (in the same way as OnPluginStart) if you want to initialize halftime to 0 then.

Other than that looks pretty solid.
pRED* 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 21:37.


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