Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <a_samp>
- #define MESSAGE_COUNT 10 // Adjust when adding messages
- #define TIME_BEFORE_FIRST_MESSAGE 40000
- #define TIME_BETWEEN_MESSAGES 30000
- new gMessages[MESSAGE_COUNT][128] = {
- "Did you hear about the bird ~r~EVERYBODY ~w~Knows that the bird ~n~is the ~r~WORD! ",
- "Races Start Every ~b~10 Minutes~w~. ~n~Type ~y~/Join~w~. ~n~DO ~r~NOT ~y~/Join ~w~If Inside An Interior!",
- "~r~Stranded~w~? Too Lazy To Find A Car? ~n~Type ~y~/Back ~w~To Return To LV.",
- "Visit ~g~LV Stadium ~w~For A List Of ~y~Stadium Events~w~.",
- "Increase Your ~b~Rank ~w~By ~r~Killing ~w~& Gain Access To ~n~The ~g~VIP Lounge ~w~For Better ~r~Weapons!",
- "Spot A ~r~Hacker ~w~or Someone Who's Not Following The ~r~Rules? ~n~~w~Use ~y~/report (id) (reason)~w~.",
- "Do ~r~NOT ~w~Use ~r~Gunfire ~w~While Racing!",
- "~b~Register ~w~At ~y~gamebreakers3.proboards.com ~w~For More Info.",
- "Do ~r~NOT ~w~Ask To Become Admin. We Will Ask ~r~You~w~!",
- "If You Don't Follow The ~r~/rules, ~n~You Will Be ~r~Punished~w~!"
- };
- /* Old Messages
- "Hacking/Cheating Will ~r~NOT ~w~Be Tolerated! ~n~This Will Result In An Instant ~r~BAN! ",
- "Races Start Every ~b~10 Minutes~w~. ~n~Type ~y~/Join~w~. ~n~DO ~r~NOT ~y~/Join ~w~If Inside An Interior!",
- "~r~Stranded~w~? Too Lazy To Find A Car? ~n~Type ~y~/Back ~w~To Return To LV.",
- "Visit ~g~LV Stadium ~w~For A List Of ~y~Stadium Events~w~.",
- "Increase Your ~b~Rank ~w~By ~r~Killing ~w~& Gain Access To ~n~The ~g~VIP Lounge ~w~For Better ~r~Weapons!",
- "Spot A ~r~Hacker ~w~or Someone Who's Not Following The ~r~Rules? ~n~~w~Use ~y~/report (id) (reason)~w~.",
- "Do ~r~NOT ~w~Use ~r~Gunfire ~w~While Racing!",
- "~b~Register ~w~At ~y~gamebreakers3.proboards.com ~w~For More Info.",
- "Do ~r~NOT ~w~Ask To Become Admin. We Will Ask ~r~You~w~!",
- "If You Don't Follow The ~r~/rules, ~n~You Will Be ~r~Punished~w~!"
- */
- new Text:gTextDraws[MESSAGE_COUNT];
- new gActiveMessage = 0;
- public OnFilterScriptInit() {
- SetTimer("ShowMessage", TIME_BEFORE_FIRST_MESSAGE, false);
- for (new i = 0; i < MESSAGE_COUNT; i++) {
- gTextDraws[i] = TextDrawCreate(340.0, 410.0, gMessages[i]);
- TextDrawSetOutline(gTextDraws[i], 1);
- TextDrawSetShadow(gTextDraws[i], 0);
- TextDrawLetterSize(gTextDraws[i], 0.30,0.80);
- TextDrawAlignment(gTextDraws[i], 2);
- }
- return 1;
- }
- forward ShowMessage();
- public ShowMessage() {
- TextDrawHideForAll(gTextDraws[gActiveMessage]);
- gActiveMessage++;
- if (gActiveMessage == MESSAGE_COUNT) {
- gActiveMessage = 0;
- }
- TextDrawShowForAll(gTextDraws[gActiveMessage]);
- SetTimer("ShowMessage", TIME_BETWEEN_MESSAGES, false);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement