Slasheer

Untitled

Aug 10th, 2011
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 2.17 KB | None | 0 0
  1. /*                       SKRYPT ZOSTAŁ STWORZONY PRZEZ SLASH
  2.                               © Copyright by Slash                            */
  3.  
  4. #include a_samp.inc
  5.  
  6. #define REKLAMY             5 //liczba tekstów
  7. #define CZAS_ODSWIEZANIA    3 // w sekundach
  8.  
  9. new xd;
  10. new Text:reklama[2];
  11. new teksty[REKLAMY][64] = {
  12.     "tutaj tekst ",//zmieniamy na swój tekst
  13.     "Tutaj kolejny tekst",//zmieniamy na swój tekst
  14.     "Nastepny",//zmieniamy na swój tekst
  15.     "I kolejny",//zmieniamy na swój tekst
  16.     "I tutaj"//zmieniamy na swój tekst ( w ostatnim zawsze bez przecinka na końcu )
  17. };
  18.  
  19. forward Odswiez();
  20.  
  21. public OnFilterScriptInit()
  22. {
  23.     SetTimer("Odswiez", CZAS_ODSWIEZANIA*1000, 1);
  24.     reklama[0] = TextDrawCreate(321.000000, 431.000000, "Zapraszamy wszystki programistow na Pawno.PL");
  25.     TextDrawAlignment(reklama[0], 2);
  26.     TextDrawBackgroundColor(reklama[0], 255);
  27.     TextDrawFont(reklama[0], 1);
  28.     TextDrawLetterSize(reklama[0], 0.360000, 1.399999);
  29.     TextDrawColor(reklama[0], -1);
  30.     TextDrawSetOutline(reklama[0], 1);
  31.     TextDrawSetProportional(reklama[0], 1);
  32.  
  33.     reklama[1] = TextDrawCreate(-1.000000, 430.000000, "_");
  34.     TextDrawBackgroundColor(reklama[1], 255);
  35.     TextDrawFont(reklama[1], 1);
  36.     TextDrawLetterSize(reklama[1], 0.500000, 1.899999);
  37.     TextDrawColor(reklama[1], -1);
  38.     TextDrawSetOutline(reklama[1], 0);
  39.     TextDrawSetProportional(reklama[1], 1);
  40.     TextDrawSetShadow(reklama[1], 1);
  41.     TextDrawUseBox(reklama[1], 1);
  42.     TextDrawBoxColor(reklama[1], 100);
  43.     TextDrawTextSize(reklama[1], 640.000000, 0.000000);
  44.     return 1;
  45. }
  46.  
  47. public OnFilterScriptExit()
  48. {
  49.     TextDrawDestroy(reklama[0]);
  50.     TextDrawDestroy(reklama[1]);
  51.     return 1;
  52. }
  53.  
  54. public OnPlayerConnect(playerid)
  55. {
  56.     TextDrawShowForPlayer(playerid, reklama[0]);
  57.     TextDrawShowForPlayer(playerid, reklama[1]);
  58.     return 1;
  59. }
  60.  
  61. public OnPlayerDisconnect(playerid, reason)
  62. {
  63.     TextDrawHideForPlayer(playerid, reklama[0]);
  64.     TextDrawHideForPlayer(playerid, reklama[1]);
  65.     return 1;
  66. }
  67.  
  68. public Odswiez()
  69. {
  70.     if(xd == sizeof teksty)
  71.         xd = 0;
  72.  
  73.     TextDrawSetString(reklama[0], teksty[xd]);
  74.     xd++;
  75.     return 1;
  76. }
Advertisement
Add Comment
Please, Sign In to add comment