Calling a textdraw remotely..info
#1

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:


Код:
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;
}
Thanks.
Reply


Messages In This Thread
Calling a textdraw remotely..info - by Face9000 - 09.10.2015, 20:21
Re: Calling a textdraw remotely..info - by Face9000 - 10.10.2015, 11:04
Re: Calling a textdraw remotely..info - by Face9000 - 11.10.2015, 20:11
Re: Calling a textdraw remotely..info - by Unte99 - 11.10.2015, 20:17
Re: Calling a textdraw remotely..info - by Abagail - 11.10.2015, 20:55

Forum Jump:


Users browsing this thread: 1 Guest(s)