Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Randommessages On Textdraw by Audi_Quattrix
- #define FILTERSCRIPT
- #include <a_samp>
- #if defined FILTERSCRIPT
- new Text:randommsg;
- new RandomMessagez[][] =
- {
- "~y~Message 1",
- "~y~Message 2",
- "~y~Message 3",
- "~y~Message 4"
- };
- public OnFilterScriptInit()
- {
- print("\n--------------------------------------");
- print(" Random textdraw messages by Audi_Quattrix loaded");
- print("--------------------------------------\n");
- SetTimer("RandomMessage",5000,1);
- randommsg = TextDrawCreate(7.000000, 427.000000, "");
- TextDrawBackgroundColor(randommsg, 255);
- TextDrawFont(randommsg, 1);
- TextDrawLetterSize(randommsg, 0.379999, 1.499999);
- TextDrawColor(randommsg, -1);
- TextDrawSetOutline(randommsg, 1);
- TextDrawSetProportional(randommsg, 1);
- return 1;
- }
- public OnFilterScriptExit()
- {
- print("\n--------------------------------------");
- print(" Random textdraw messages by Audi_Quattrix unloaded");
- print("--------------------------------------\n");
- return 1;
- }
- forward RandomMessage();
- public RandomMessage()
- {
- TextDrawSetString(randommsg, RandomMessagez[random(sizeof(RandomMessagez))]);
- return 1;
- }
- #endif
Advertisement
Add Comment
Please, Sign In to add comment