11.02.2019, 11:50
(
Last edited by N3mesiS; 11/02/2019 at 03:09 PM.
)
What I'm doing is much better than using 'OPU' or a timer in 'OnGameModeInit'?
By the way, I do not think I have to call 'UpdateHud' every time a change is made, since the timer that is in 'ShowHud' is repeated every second.
EDIT: Instead of using a timer, could you execute the function directly from where the variables change?
Example:
By the way, I do not think I have to call 'UpdateHud' every time a change is made, since the timer that is in 'ShowHud' is repeated every second.
EDIT: Instead of using a timer, could you execute the function directly from where the variables change?
Example:
PHP Code:
//OnPlayerDeath
PLAYER_MONEY[killerid] += 50;
PLAYER_EXP[killerid] ++;
UpdateHud(killerid);
//Command give / set money
PLAYER_MONEY[params[0]] += params[1];
UpdateHud(params[0]);
//etc...