Question about effiency
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? |
Re: Question about effiency
Spawn / Respawn / Death are not called very often, i would stick with the native.
|
Re: Question about effiency
Quote:
PHP Code:
|
Re: Question about effiency
; after if()
|
Re: Question about effiency
Quote:
LOL im blind.. i saw that when i woke... ive been trying to get this new mod done lol... good eye. im exhausted i havnt slept much. |
| All times are GMT -4. The time now is 04:27. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.