Raised This Month: $ Target: $400
 0% 

Question about effiency


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Doc-Holiday
AlliedModders Donor
Join Date: Jul 2007
Old 05-06-2011 , 02:30   Question about effiency
Reply With Quote #1

I use the native cs_get_user_team on every spawn and re spawn for my players as well as player death and in functions also called by the spawns.


So would it be more efficient to use an array in round_start looping the players and adding the "CS_TEAM_ID" to the array per player then accessing it to check each players team to give certain things?

or would it be better to use cs_get_user_team in like player spawn/death and then pass it to the different functions?
Doc-Holiday 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:27.


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