Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include a_samp
- #define FILTERSCRIPT
- #define red 0xF60000AA
- forward ChangeWebsite();
- forward ChangeTextWebsite(text[]);
- new Text:TextWebsite;
- new TextWebsiteCount = 0;
- #define websitecount 11 // change this if you want more, there are 10 now. if you want 11 change this to 12, you will be needing more cases at: public ChangeWebsite
- #define ms 200 // This will change the colors each 2 ms,setting it higher will change it slower. 1000 is 1 second
- public OnFilterScriptInit()
- {
- print("\n--------------------------------------");
- print(" Flashing Website Textdraw by FuTuRe has been loaded!");
- print("--------------------------------------\n");
- TextWebsite = TextDrawCreate(481.000000, 97.000000, "www.YourWeb.com"); // Change www.YourWeb.com to your own domain.
- TextDrawBackgroundColor(TextWebsite, 255);
- TextDrawFont(TextWebsite, 3);
- TextDrawLetterSize(TextWebsite, 0.439999, 2.000000);
- TextDrawColor(TextWebsite, -1);
- TextDrawSetOutline(TextWebsite, 1);
- TextDrawSetProportional(TextWebsite, 1);
- SetTimer("ChangeWebsite",ms,1);
- return 1;
- }
- public OnFilterScriptExit()
- {
- TextDrawDestroy(TextWebsite);
- return 1;
- }
- public OnPlayerConnect(playerid)
- {
- SendClientMessage(playerid, red,"This server uses website textdraw flashing by FuTuRe.");
- return 1;
- }
- public OnPlayerDisconnect(playerid, reason)
- {
- TextDrawHideForPlayer(playerid, TextWebsite);
- return 1;
- }
- public ChangeTextWebsite(text[])
- {
- TextDrawHideForAll(TextWebsite);
- TextDrawSetString(TextWebsite,text);
- TextDrawShowForAll(TextWebsite);
- return 1;
- }
- public ChangeWebsite()
- {
- if(TextWebsiteCount > websitecount) TextWebsiteCount = 0;
- switch(TextWebsiteCount)
- {
- case 0:
- {
- ChangeTextWebsite("~r~www.YourWeb.com");
- }
- case 1:
- {
- ChangeTextWebsite("~g~www.YourWeb.com");
- }
- case 2:
- {
- ChangeTextWebsite("~y~www.YourWeb.com");
- }
- case 3:
- {
- ChangeTextWebsite("~w~www.YourWeb.com");
- }
- case 4:
- {
- ChangeTextWebsite("~b~www.YourWeb.com");
- }
- case 5:
- {
- ChangeTextWebsite("~p~www.YourWeb.com");
- }
- case 6:
- {
- ChangeTextWebsite("~y~www.Your~p~Web.com");
- }
- case 7:
- {
- ChangeTextWebsite("~r~www.Your~w~Web.com");
- }
- case 8:
- {
- ChangeTextWebsite("~g~www.Your~b~Web.com");
- }
- case 9:
- {
- ChangeTextWebsite("~w~www.YourWeb.com");
- }
- case 10:
- {
- ChangeTextWebsite("~r~www.YourWeb.com");
- }
- /*case 11:
- {
- ChangeTextWebsite("www.YourWeb.com");
- }*/
- }
- TextWebsiteCount++;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement