31.08.2009, 10:32
To make it easyer for you
Load this as an Filterscript (create new .pwn.. complie and add [scriptname] to your filterscripts line)
(i hate the autofix of the forum ....)
Load this as an Filterscript (create new .pwn.. complie and add [scriptname] to your filterscripts line)
pawn Код:
#include <a_samp>
new RandomMSG[][] =
{
"Wolf bot: Are you stuck? get help (/help) ^^",
"Wolf bot: This server is english only",
"Wolf bot: Visit our website \"wolvez.co.cc\"",
"Wolf bot: Wanna know who made what? find out (/credits)",
"Wolf bot: See a cheater? report them (/report)",
"Wolf bot: The official braduz motto \"Immah teh tech wolf round theese areas\""
};
#define FILTERSCRIPT
#define red 0xAA3333AA
new timermsg;
#if defined FILTERSCRIPT
public OnFilterScriptInit()
{
print("\n--------------------------------------");
print(" Random Messages Script");
print("--------------------------------------\n");
timermsg = SetTimer("SendMSG", 200000, true);
return 1;
}
public OnFilterScriptExit()
{
KillTimer(timermsg);
return 1;
}
#endif
forward SendMSG();
public SendMSG()
{
new randMSG = random(sizeof(RandomMSG));
SendClientMessageToAll(red, RandomMSG[randMSG]);
return 1;
}