Advertisement
Guest User

Untitled

a guest
May 29th, 2010
1,543
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 2.62 KB | None | 0 0
  1. #include a_samp
  2.  
  3. #define FILTERSCRIPT
  4. #define red 0xF60000AA
  5.  
  6. forward ChangeWebsite();
  7. forward ChangeTextWebsite(text[]);
  8. new Text:TextWebsite;
  9. new TextWebsiteCount = 0;
  10.  
  11. #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
  12. #define ms 200 // This will change the colors each 2 ms,setting it higher will change it slower. 1000 is 1 second
  13.  
  14. public OnFilterScriptInit()
  15. {
  16.     print("\n--------------------------------------");
  17.     print(" Flashing Website Textdraw by FuTuRe has been loaded!");
  18.     print("--------------------------------------\n");
  19.  
  20.     TextWebsite = TextDrawCreate(481.000000, 97.000000, "www.YourWeb.com"); // Change www.YourWeb.com to your own domain.
  21.     TextDrawBackgroundColor(TextWebsite, 255);
  22.     TextDrawFont(TextWebsite, 3);
  23.     TextDrawLetterSize(TextWebsite, 0.439999, 2.000000);
  24.     TextDrawColor(TextWebsite, -1);
  25.     TextDrawSetOutline(TextWebsite, 1);
  26.     TextDrawSetProportional(TextWebsite, 1);
  27.  
  28.     SetTimer("ChangeWebsite",ms,1);
  29.     return 1;
  30. }
  31.  
  32. public OnFilterScriptExit()
  33. {
  34.     TextDrawDestroy(TextWebsite);
  35.     return 1;
  36. }
  37.  
  38. public OnPlayerConnect(playerid)
  39. {
  40.     SendClientMessage(playerid, red,"This server uses website textdraw flashing by FuTuRe.");
  41.     return 1;
  42. }
  43.  
  44. public OnPlayerDisconnect(playerid, reason)
  45. {
  46.     TextDrawHideForPlayer(playerid, TextWebsite);
  47.     return 1;
  48. }
  49. public ChangeTextWebsite(text[])
  50. {
  51.     TextDrawHideForAll(TextWebsite);
  52.     TextDrawSetString(TextWebsite,text);
  53.     TextDrawShowForAll(TextWebsite);
  54.     return 1;
  55. }
  56.  
  57. public ChangeWebsite()
  58. {
  59.     if(TextWebsiteCount > websitecount) TextWebsiteCount = 0;
  60.     switch(TextWebsiteCount)
  61.     {
  62.         case 0:
  63.         {
  64.             ChangeTextWebsite("~r~www.YourWeb.com");
  65.         }
  66.         case 1:
  67.         {
  68.             ChangeTextWebsite("~g~www.YourWeb.com");
  69.         }
  70.         case 2:
  71.         {
  72.             ChangeTextWebsite("~y~www.YourWeb.com");
  73.         }
  74.         case 3:
  75.         {
  76.             ChangeTextWebsite("~w~www.YourWeb.com");
  77.         }
  78.         case 4:
  79.         {
  80.             ChangeTextWebsite("~b~www.YourWeb.com");
  81.         }
  82.         case 5:
  83.         {
  84.             ChangeTextWebsite("~p~www.YourWeb.com");
  85.         }
  86.         case 6:
  87.         {
  88.             ChangeTextWebsite("~y~www.Your~p~Web.com");
  89.         }
  90.         case 7:
  91.         {
  92.             ChangeTextWebsite("~r~www.Your~w~Web.com");
  93.         }
  94.         case 8:
  95.         {
  96.             ChangeTextWebsite("~g~www.Your~b~Web.com");
  97.         }
  98.         case 9:
  99.         {
  100.             ChangeTextWebsite("~w~www.YourWeb.com");
  101.         }
  102.         case 10:
  103.         {
  104.             ChangeTextWebsite("~r~www.YourWeb.com");
  105.         }
  106.         /*case 11:
  107.         {
  108.             ChangeTextWebsite("www.YourWeb.com");
  109.         }*/
  110.         }
  111.     TextWebsiteCount++;
  112. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement