SA-MP Forums Archive
Calling Timer Functions from outside the local script - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Calling Timer Functions from outside the local script (/showthread.php?tid=264943)



Calling Timer Functions from outside the local script - Ash. - 28.06.2011

I'm just wondering, is it possible to call timer (public) functions from outside the script i'm actually using SetTimer(Ex) in?

I'm just wondering

Thanks,
Ash


Re: Calling Timer Functions from outside the local script - Shadoww5 - 28.06.2011

PHP код:
// ================= [ GM ] ================= //
forward Call();
public 
OnGameModeInit()
{
    
SetTimer("Call"5000false);
    return 
1;
}
public 
Call()
    return 
CallRemoteFunction("CreateExp""fffdd""1.0, 2.0, 3.0, 1, 5");
// ================= [ FS ] ================= //
forward CreateExp(Float:X,Float:Y,Float:Z,type,Float:diam);
public 
CreateExp(Float:X,Float:Y,Float:Z,type,Float:diam)
{
       
CreateExplosion(X,Y,Z,type,diam);
       
CreateExplosion(X+2,Y+2,Z+2,type,diam);
       
CreateExplosion(X+3,Y+3,Z+3,type,diam);