Advertisement
Guest User

Untitled

a guest
Sep 22nd, 2015
706
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 2.58 KB | None | 0 0
  1. #include <a_samp>
  2.  
  3. forward Ads();
  4.  
  5. new RAdsS[][] =
  6. {
  7.     "You can see the credits from this server /credits",
  8.     "Found some hacker in our server? Warn Admins",
  9.     "This server is the current version SA:MP 0.3.7",
  10.     "This server has a system of ads made by skoolz"
  11. };
  12.  
  13. new Text:TAds[3], TPAds;
  14.  
  15. public OnFilterScriptInit()
  16. {
  17.     SetTimer("Ads", 60000, true);
  18.  
  19.     TPAds = 0;
  20.  
  21.     print("---------------------------------------------");
  22.     print("       @ System of Ads - Loaded !            ");
  23.     print("           Created by: skoolz                ");
  24.     print("---------------------------------------------");
  25.  
  26.     TAds[0] = TextDrawCreate(12.400094, 310.213073, "Ads created by skoolz");
  27.     TextDrawLetterSize(TAds[0], 0.232000, 1.204266);
  28.     TextDrawAlignment(TAds[0], 1);
  29.     TextDrawColor(TAds[0], -1);
  30.     TextDrawSetShadow(TAds[0], 0);
  31.     TextDrawSetOutline(TAds[0], -1);
  32.     TextDrawBackgroundColor(TAds[0], 255);
  33.     TextDrawFont(TAds[0], 1);
  34.     TextDrawSetProportional(TAds[0], 1);
  35.     TextDrawSetShadow(TAds[0], 0);
  36.  
  37.     TAds[1] = TextDrawCreate(3.599962, 308.720092, "_");
  38.     TextDrawLetterSize(TAds[1], 0.488800, 1.600000);
  39.     TextDrawTextSize(TAds[1], 246.200012, 0.000000);
  40.     TextDrawAlignment(TAds[1], 1);
  41.     TextDrawColor(TAds[1], -1);
  42.     TextDrawUseBox(TAds[1], 1);
  43.     TextDrawBoxColor(TAds[1], 88);
  44.     TextDrawSetShadow(TAds[1], 0);
  45.     TextDrawSetOutline(TAds[1], 0);
  46.     TextDrawBackgroundColor(TAds[1], 255);
  47.     TextDrawFont(TAds[1], 1);
  48.     TextDrawSetProportional(TAds[1], 1);
  49.     TextDrawSetShadow(TAds[1], 0);
  50.  
  51.     TAds[2] = TextDrawCreate(5.999997, 307.973449, "!");
  52.     TextDrawLetterSize(TAds[2], 0.400000, 1.600000);
  53.     TextDrawAlignment(TAds[2], 1);
  54.     TextDrawColor(TAds[2], -16776961);
  55.     TextDrawSetShadow(TAds[2], 0);
  56.     TextDrawSetOutline(TAds[2], 0);
  57.     TextDrawBackgroundColor(TAds[2], 255);
  58.     TextDrawFont(TAds[2], 1);
  59.     TextDrawSetProportional(TAds[2], 1);
  60.     TextDrawSetShadow(TAds[2], 0);
  61.  
  62.     return 1;
  63. }
  64.  
  65. public OnFilterScriptExit()
  66. {
  67.     TextDrawHideForAll(TAds[0]);
  68.     TextDrawHideForAll(TAds[1]);
  69.     TextDrawHideForAll(TAds[2]);
  70.     return 1;
  71. }
  72.  
  73.  
  74. public Ads()
  75. {
  76.     if(TPAds == 0)
  77.     {
  78.         new RAnuncios = random(sizeof(RAdsS)), string[128];
  79.  
  80.         TextDrawShowForAll(TAds[0]);
  81.         TextDrawShowForAll(TAds[1]);
  82.         TextDrawShowForAll(TAds[2]);
  83.  
  84.         format(string, sizeof(string), "%s", RAdsS[RAnuncios]);
  85.         TextDrawSetString(TAds[0],string);
  86.  
  87.         SetTimer("Ads", 20000, false);
  88.  
  89.         TPAds = 1;
  90.     }
  91.     else
  92.     {
  93.         TextDrawHideForAll(TAds[0]);
  94.         TextDrawHideForAll(TAds[1]);
  95.         TextDrawHideForAll(TAds[2]);
  96.  
  97.         TPAds = 0;
  98.     }
  99.     return 1;
  100. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement