13.07.2009, 21:19
hey guys how do i make a timer that ever 3 minutes it makes an announcement? plz give me the coding ) thnx
#include <a_samp>
new Announcements[][] =
{
"Piss off",
"Get lost!!!",
"lol"
};
forward Announce();
public OnFilterScriptInit()
{
SetTimer("Announce", 180000, 1);
return 1;
}
public Announce()
{
GameTextForAll(Announcements[random(sizeof(Announcements))], 5000, 3);
}