Calling a textdraw remotely..info - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Calling a textdraw remotely..info (
/showthread.php?tid=591231)
Calling a textdraw remotely..info -
Face9000 - 09.10.2015
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.
Re: Calling a textdraw remotely..info -
Face9000 - 10.10.2015
Bump.
Re: Calling a textdraw remotely..info -
Face9000 - 11.10.2015
Bump.
Re: Calling a textdraw remotely..info -
Unte99 - 11.10.2015
Why don't you create just one timer in your gamemode?
Re: Calling a textdraw remotely..info -
Abagail - 11.10.2015
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.