09.10.2015, 20:21
Ok, i'm developing a mini missions server and i need some info. I made a textdraw (actually for each game) which shows the time left until next mission. I have a sys filterscript which handles everything like login, register, ac and more.
I was thinking...is possible to create just ONE time the time left textdraw and then call it remotely (maybe with CallRemoteFunction?) in each game? I dont wanna create EVERYTIME for EACH GAME the textdraw. P.S This is not a normal textdraw, this shows the time left so is set a string. Code:
Thanks.
I was thinking...is possible to create just ONE time the time left textdraw and then call it remotely (maybe with CallRemoteFunction?) in each game? I dont wanna create EVERYTIME for EACH GAME the textdraw. P.S This is not a normal textdraw, this shows the time left so is set a string. Code:
Код:
public GameTime() { if(GameSeconds || GameMinutes) { GameSeconds--; if(GameSeconds <= -1) { GameMinutes--; GameSeconds=59; } new TimeString[64]; format(TimeString,sizeof(TimeString),"%02d:%02d",GameMinutes,GameSeconds); TextDrawSetString(Timer,TimeString); } return 1; }