Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- ______________________________________________________________________
- | _ _ ________ |
- | ( \ ( \ ( _____ \ |
- | | | | | ______ | | \ \ |
- | | |____| | ( ___\ | | \ \ |
- | | ____ | \ \ (_) | | ) ) |
- | | | | | _ \ \ | | / / |
- | | ) | ) ( )__\ \ | |_____/ / |
- | |_/ |_/ \_______/ |_________/ |
- | |
- | [HSD] High Speed Drivers |
- | |
- | [HSD] Company Clan of Programmers, Scripters, and Mappers |
- |______________________________________________________________________|
- http://forum.sa-mp.com/member.php?u=211939
- Updated Date: 10/20/2013 (MM/DD/YYYY)
- Visit Me on SA-MP Forum for More Updates
- Let the Credits !
- • Super Fast System
- • [0] Command(s)
- • Fast Commands to Enable or Disable System
- • http://forum.sa-mp.com/member.php?u=211939 | Visit Me on SA-MP Forum |.
- ~ Do: ~
- - Must have Permission if you want to Share this on another Website.
- - etc.
- ~ Do Not: ~
- - Remove Credits.
- - Change Author Name / Information.
- - Stealing Filterscript.
- - No Permission but Sharing on another Website.
- - etc.
- [ Information ] :-
- Author: SAMProductions
- FilterScript Name: Simple Random Messages System - v2.0
- Updated Date: 10/20/2013 - (MM/DD/YYYY)
- Thanks To:
- SA-MP Team - a_samp
- You - For Supporting and Downloading
- and to Whoever i forgot to Mention
- -: [ End Information ]
- • Do not Remove the Credits.
- • Do not Change the Author Name / Information.
- • Do not Steal the Filterscript.
- • Disrespecting Any of These, You will Die.
- • Disrespecting Any of These, I'll Rape You.
- • Disrespecting Any of These, I'll Report You.
- • Thanks For Using, Enjoy :)
- //----------------------------------------------------------------------------// */
- #include <a_samp> // Credits: SA-MP Team
- new Text:RandomMessages;
- new RandomMessagesToSend[][] =
- {
- "~y~Please Visit Our Forum:~n~~r~www.yourwebsiteurl.com",
- "~g~Thank You For Playing~n~~r~(SERVERNAME HERE) !",
- "~b~New in this Server, and Need Help?, /help",
- "~p~Please Read Rules Carefully, ~r~/rules",
- "~p~Wanna Know the Player Commands?, ~r~/cmds",
- "~g~Wanna Know the Teleports?, ~r~/teles",
- "~r~This Server is Hosted by~n~~r~(PLAYERNAME HERE) !",
- "~g~This Server is Scripted by~n~~r~(PLAYERNAME HERE) !",
- "~b~Add Random Message On This Line",
- "~b~Add Random Message On This Line",
- "~b~Add Random Message On This Line"
- };
- public OnFilterScriptInit() // or OnGameModeInit (only if you put this on your Game Mode Script)
- {
- print("<|---------------------------[Loaded]---------------------------|>");
- print(" | Simple Random Messages System v2.0 Made By: SAMProductions |");
- print("<|---------------------------[Loaded]---------------------------|>");
- SetTimer("SendRandomMessageToAll", 15000, true); // Timer: 15000 = 15 Seconds (Change This if you want)
- // Random Messages: Start
- RandomMessages = TextDrawCreate(304.000000, 372.000000, "");
- TextDrawAlignment(RandomMessages, 2);
- TextDrawBackgroundColor(RandomMessages, 255);
- TextDrawFont(RandomMessages, 1);
- TextDrawLetterSize(RandomMessages, 0.240000, 1.000000);
- TextDrawColor(RandomMessages, -1);
- TextDrawSetOutline(RandomMessages, 1);
- TextDrawSetProportional(RandomMessages, 1);
- // Random Messages: End
- return 1;
- }
- public OnFilterScriptExit()
- {
- print("<|--------------------------[UnLoaded]--------------------------|>");
- print(" | Simple Random Messages System v2.0 Made By: SAMProductions |");
- print("<|--------------------------[UnLoaded]--------------------------|>");
- // Random Messages: Start
- TextDrawHideForAll(RandomMessages);
- TextDrawDestroy(RandomMessages);
- // Random Messages: End
- return 1;
- }
- public OnPlayerConnect(playerid)
- {
- TextDrawShowForPlayer(playerid, RandomMessages);
- return 1;
- }
- forward SendRandomMessageToAll();
- public SendRandomMessageToAll()
- {
- new Rand = random(sizeof(RandomMessagesToSend));
- TextDrawSetString(RandomMessages, RandomMessagesToSend[Rand]);
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment