Advertisement
Guest User

Nouveauté Pawno Samp

a guest
Oct 31st, 2014
186
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.99 KB | None | 0 0
  1. /*
  2.  
  3. Credit
  4.  
  5. */
  6.  
  7. #define FILTERSCRIPT
  8.  
  9. #include <a_samp>
  10.  
  11.  
  12. new Text:maj0;
  13. new Text:maj1;
  14. new Text:maj2;
  15. new Text:maj3;
  16. new Text:maj4;
  17.  
  18. #if defined FILTERSCRIPT
  19.  
  20.  
  21.  
  22. #else
  23.  
  24. main()
  25. {
  26. print("\n----------------------------------");
  27. print(" Maj");
  28. print("----------------------------------\n");
  29. }
  30.  
  31. #endif
  32.  
  33. public OnPlayerConnect(playerid)
  34. {
  35.  
  36. maj0 = TextDrawCreate(471.500000, 106.655578, "usebox");
  37. TextDrawLetterSize(maj0, 0.000000, 33.006786);
  38. TextDrawTextSize(maj0, 185.000000, 0.000000);
  39. TextDrawAlignment(maj0, 1);
  40. TextDrawColor(maj0, 0);
  41. TextDrawUseBox(maj0, true);
  42. TextDrawBoxColor(maj0, 102);
  43. TextDrawSetShadow(maj0, 0);
  44. TextDrawSetOutline(maj0, 0);
  45. TextDrawFont(maj0, 0);
  46.  
  47. maj1 = TextDrawCreate(273.500000, 117.833320, "Mise A Jour");
  48. TextDrawLetterSize(maj1, 0.569499, 2.410831);
  49. TextDrawAlignment(maj1, 1);
  50. TextDrawColor(maj1, -5963521);
  51. TextDrawSetShadow(maj1, 0);
  52. TextDrawSetOutline(maj1, 1);
  53. TextDrawBackgroundColor(maj1, 51);
  54. TextDrawFont(maj1, 0);
  55. TextDrawSetProportional(maj1, 1);
  56.  
  57. maj2 = TextDrawCreate(214.500000, 164.500015, "-Systeme Essence~n~-Telephone~n~-Compteur Unique~n~-Faction NASA~n~-Mapping Pompier~n~-Job revue");
  58. TextDrawLetterSize(maj2, 0.330498, 1.360831);
  59. TextDrawAlignment(maj2, 1);
  60. TextDrawColor(maj2, -1);
  61. TextDrawSetShadow(maj2, 0);
  62. TextDrawSetOutline(maj2, 1);
  63. TextDrawBackgroundColor(maj2, 51);
  64. TextDrawFont(maj2, 1);
  65. TextDrawSetProportional(maj2, 1);
  66.  
  67. maj3 = TextDrawCreate(234.500000, 274.750000, "____Utilisez la commande : /majoff ~n~ Pour pouvoir fermer les Mise A Jour.");
  68. TextDrawLetterSize(maj3, 0.351500, 1.845000);
  69. TextDrawAlignment(maj3, 1);
  70. TextDrawColor(maj3, -1);
  71. TextDrawSetShadow(maj3, 0);
  72. TextDrawSetOutline(maj3, 1);
  73. TextDrawBackgroundColor(maj3, 51);
  74. TextDrawFont(maj3, 1);
  75. TextDrawSetProportional(maj3, 1);
  76.  
  77. maj4 = TextDrawCreate(268.500000, 356.999969, "Copyright Jeffrey Side");
  78. TextDrawLetterSize(maj4, 0.345499, 1.617498);
  79. TextDrawAlignment(maj4, 1);
  80. TextDrawColor(maj4, -1);
  81. TextDrawSetShadow(maj4, 0);
  82. TextDrawSetOutline(maj4, 1);
  83. TextDrawBackgroundColor(maj4, 51);
  84. TextDrawFont(maj4, 0);
  85. TextDrawSetProportional(maj4, 1);
  86. return 1;
  87. }
  88.  
  89. public OnPlayerCommandText(playerid, cmdtext[])
  90. {
  91. if (strcmp("/maj", cmdtext, true, 10) == 0)
  92. {
  93. SendClientMessage(playerid, -1, "{FF0000}[INFO]: {FFFFFF}Mise A Jour, pour fermer les mise a jour: /majoff");
  94. PlayerTextDrawShow(playerid, Text:maj0);
  95. PlayerTextDrawShow(playerid, Text:maj1);
  96. PlayerTextDrawShow(playerid, Text:maj2);
  97. PlayerTextDrawShow(playerid, Text:maj3);
  98. PlayerTextDrawShow(playerid, Text:maj4);
  99.  
  100. return 1;
  101. }
  102.  
  103. // sumir textdraw
  104.  
  105. if (strcmp("/majoff", cmdtext, true, 10) == 0)
  106. {
  107. SendClientMessage(playerid, -1, "{FF0000}[INFO]: {FFFFFF}Mise A Jour fermée !" );
  108. PlayerTextDrawHide(playerid, Text:maj0);
  109. PlayerTextDrawHide(playerid, Text:maj1);
  110. PlayerTextDrawHide(playerid, Text:maj2);
  111. PlayerTextDrawHide(playerid, Text:maj3);
  112. PlayerTextDrawHide(playerid, Text:maj4);
  113. return 1;
  114. }
  115. return 0;
  116. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement