SA-MP Forums Archive
2 Questions - 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: 2 Questions (/showthread.php?tid=190061)



2 Questions - Rokzlive - 14.11.2010

How do i make a command that auto activates itself every 10 minutes? Like it acts like someone typeing /command every 10 minutes. How i do that?

And...

How do i intigrate MidoStream into my server? Like how do i add objects?


Re: 2 Questions - [L3th4l] - 14.11.2010

Use, CallLocalFunction("OnPlayerCommandText", "is", playerid, "/YOURCOMMAND");
Put it under a 10 min timer


Re: 2 Questions - GaGlets(R) - 14.11.2010

Please read in the wiki some articles about Timer and if you are looking the way how to add objects look into MidoStreamers topic.


Re: 2 Questions - Rokzlive - 14.11.2010

can someone tell me how to make a timer cause im not finding it


Re: 2 Questions - zack3021 - 14.11.2010

If you want a little tutorial of the functions in PAWNO. Just ****** it. Example SAMP Timers
And look of [close name to what you searched for here] - SA-MP Wiki
In this case you would see SetTimer - SA-MP Wiki

Click Me


Re: 2 Questions - Kitten - 14.11.2010

Here
pawn Код:
forward FUCK();
public OnGameModeInit()
{
    SetTimer("FUCK",600000,true); // 600000 is 10 mins
}
public FUCK()
{
    CallLocalFunction("OnPlayerCommandText", "is", playerid,"/YOURCOMMAND");
    return 1;
}