SA-MP Forums Archive
Need help last one - 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: Need help last one (/showthread.php?tid=466136)



Need help last one - Team_PRO - 26.09.2013

im making a simple announce with timer like auto message, same problem forgot to do how to


Re: Need help last one - iZN - 26.09.2013

pawn Код:
new Announce[][] =
{
    "testmsg1",
    "testmsg2" 
};

// Will be at OnGameModeInit/OnFilterScriptInit
SetTimer("AnnMessage",60000,1); //60 seconds timer

// Place it anywhere
forward AnnMessage(playerid);
public AnnMessage(playerid)
{
        SendClientMessageToAll(-1, Announce[random(sizeof(Announce))]);
        return true;
}



Re: Need help last one - Team_PRO - 26.09.2013

error


Re: Need help last one - Konstantinos - 26.09.2013

https://sampwiki.blast.hk/wiki/Random_Messages