Update player statistics in the textdraw
#5

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:

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... 
Reply


Messages In This Thread
Update player statistics in the textdraw - by N3mesiS - 11.02.2019, 00:13
Re: Update player statistics in the textdraw - by Pottus - 11.02.2019, 00:33
Re: Update player statistics in the textdraw - by N3mesiS - 11.02.2019, 00:46
Re: Update player statistics in the textdraw - by Pottus - 11.02.2019, 01:13
Re: Update player statistics in the textdraw - by N3mesiS - 11.02.2019, 11:50
Re: Update player statistics in the textdraw - by N3mesiS - 11.02.2019, 22:14
Re: Update player statistics in the textdraw - by SymonClash - 11.02.2019, 22:30
Re: Update player statistics in the textdraw - by Pottus - 11.02.2019, 22:31
Re: Update player statistics in the textdraw - by SymonClash - 12.02.2019, 20:18
Re: Update player statistics in the textdraw - by N3mesiS - 12.02.2019, 20:32

Forum Jump:


Users browsing this thread: 2 Guest(s)