Random text - 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: Random text (
/showthread.php?tid=131809)
Random text -
02manchestera - 05.03.2010
I would like some randow text to appear with text saying things like Try /tankwar and stuff
hope you can help
may thanks alex
Re: Random text -
Oxside - 05.03.2010
https://sampwiki.blast.hk/wiki/Random_Messages
follow that tutorial...
Re: Random text -
02manchestera - 05.03.2010
I cant get the hag of it just keep getting errors and i dont no where to put the text.
Re: Random text -
aircombat - 05.03.2010
ok here is it :
top of script :
Код:
new
RD[][] =
{
"MSG",
"MSG",
"MSG",
"MSG",
"MSG"
};
Under OnGameModeInit
Код:
SetTimer("RandomMessage", 60000, true);
bottom of script :
Код:
//----------------[Random Message]------------------------------------------
forward RandomMessage();
public RandomMessage()
{
new
rand = random(sizeof(RD));
SendClientMessageToAll(COLOR_RED, RD[rand]);
return 1;
}
//------------------------------------------------------------------------------------------------------------
________
Coach handbags