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
#2

Bump.
Reply
#3

Bump.
Reply
#4

Why don't you create just one timer in your gamemode?
Reply
#5

I don't really understand the question. CallRemoteFunction will attempt to call the public with the same name in any loaded scripts.

As long as it is a public function and is loaded, it should work.
Reply


Forum Jump:


Users browsing this thread: