Advertisement
BlooDMasK

Untitled

Jul 8th, 2017
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.24 KB | None | 0 0
  1. #include <a_samp>
  2.  
  3. new Showing[MAX_PLAYERS];
  4.  
  5. new Text:Textdraw6;
  6.  
  7. #if defined FILTERSCRIPT
  8.  
  9. public OnFilterScriptInit()
  10. {
  11. print("\n--------------------------------------");
  12. print(" Blank Filterscript by your name here");
  13. print("--------------------------------------\n");
  14. return 1;
  15. }
  16.  
  17. public OnFilterScriptExit()
  18. {
  19. return 1;
  20. }
  21.  
  22. #else
  23.  
  24. main()
  25. {
  26. print("\n----------------------------------");
  27. print(" Blank Gamemode by your name here");
  28. print("----------------------------------\n");
  29. }
  30.  
  31. #endif
  32.  
  33. public OnGameModeInit()
  34. {
  35. Textdraw6 = TextDrawCreate(415.000000, 258.000000, ">>");
  36. TextDrawBackgroundColor(Textdraw6, 255);
  37. TextDrawFont(Textdraw6, 0);
  38. TextDrawLetterSize(Textdraw6, 0.200000, 1.100000);
  39. TextDrawColor(Textdraw6, -1);
  40. TextDrawSetOutline(Textdraw6, 0);
  41. TextDrawSetProportional(Textdraw6, 1);
  42. TextDrawSetShadow(Textdraw6, 1);
  43. TextDrawSetSelectable(Textdraw6, 1);
  44. return 1;
  45. }
  46.  
  47. public OnGameModeExit()
  48. {
  49. TextDrawHideForAll(Textdraw6);
  50. TextDrawDestroy(Textdraw6);
  51. return 1;
  52. }
  53.  
  54. public OnPlayerRequestClass(playerid, classid)
  55. {
  56. SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);
  57. SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746);
  58. SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746);
  59. return 1;
  60. }
  61.  
  62. public OnPlayerConnect(playerid)
  63. {
  64. Showing[playerid] = 0;
  65. return 1;
  66. }
  67.  
  68. public OnPlayerDisconnect(playerid, reason)
  69. {
  70. return 1;
  71. }
  72.  
  73. public OnPlayerSpawn(playerid)
  74. {
  75. return 1;
  76. }
  77.  
  78. public OnPlayerDeath(playerid, killerid, reason)
  79. {
  80. return 1;
  81. }
  82.  
  83. public OnVehicleSpawn(vehicleid)
  84. {
  85. return 1;
  86. }
  87.  
  88. public OnVehicleDeath(vehicleid, killerid)
  89. {
  90. return 1;
  91. }
  92.  
  93. public OnPlayerText(playerid, text[])
  94. {
  95. return 1;
  96. }
  97.  
  98. public OnPlayerCommandText(playerid, cmdtext[])
  99. {
  100. if(!strcmp(cmdtext, "/cc"))
  101. {
  102. if(Showing[playerid] == 1)
  103. {
  104. CancelSelectTextDraw(playerid);
  105. Showing[playerid] = 0;
  106. TextDrawHideForPlayer(playerid, Textdraw6);
  107. }
  108. else
  109. {
  110. SelectTextDraw(playerid, 0x00FF00FF);
  111. Showing[playerid] = 1;
  112. TextDrawShowForPlayer(playerid, Textdraw6);
  113. }
  114. }
  115. return 1;
  116. }
  117. public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
  118. {
  119. return 1;
  120. }
  121.  
  122. public OnPlayerExitVehicle(playerid, vehicleid)
  123. {
  124. return 1;
  125. }
  126.  
  127. public OnPlayerStateChange(playerid, newstate, oldstate)
  128. {
  129. return 1;
  130. }
  131.  
  132. public OnPlayerEnterCheckpoint(playerid)
  133. {
  134. return 1;
  135. }
  136.  
  137. public OnPlayerLeaveCheckpoint(playerid)
  138. {
  139. return 1;
  140. }
  141.  
  142. public OnPlayerEnterRaceCheckpoint(playerid)
  143. {
  144. return 1;
  145. }
  146.  
  147. public OnPlayerLeaveRaceCheckpoint(playerid)
  148. {
  149. return 1;
  150. }
  151.  
  152. public OnRconCommand(cmd[])
  153. {
  154. return 1;
  155. }
  156.  
  157. public OnPlayerRequestSpawn(playerid)
  158. {
  159. return 1;
  160. }
  161.  
  162. public OnObjectMoved(objectid)
  163. {
  164. return 1;
  165. }
  166.  
  167. public OnPlayerObjectMoved(playerid, objectid)
  168. {
  169. return 1;
  170. }
  171.  
  172. public OnPlayerPickUpPickup(playerid, pickupid)
  173. {
  174. return 1;
  175. }
  176.  
  177. public OnVehicleMod(playerid, vehicleid, componentid)
  178. {
  179. return 1;
  180. }
  181.  
  182. public OnVehiclePaintjob(playerid, vehicleid, paintjobid)
  183. {
  184. return 1;
  185. }
  186.  
  187. public OnVehicleRespray(playerid, vehicleid, color1, color2)
  188. {
  189. return 1;
  190. }
  191.  
  192. public OnPlayerSelectedMenuRow(playerid, row)
  193. {
  194. return 1;
  195. }
  196.  
  197. public OnPlayerExitedMenu(playerid)
  198. {
  199. return 1;
  200. }
  201.  
  202. public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid)
  203. {
  204. return 1;
  205. }
  206.  
  207. public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
  208. {
  209. return 1;
  210. }
  211.  
  212. public OnRconLoginAttempt(ip[], password[], success)
  213. {
  214. return 1;
  215. }
  216.  
  217. public OnPlayerUpdate(playerid)
  218. {
  219. return 1;
  220. }
  221.  
  222. public OnPlayerStreamIn(playerid, forplayerid)
  223. {
  224. return 1;
  225. }
  226.  
  227. public OnPlayerStreamOut(playerid, forplayerid)
  228. {
  229. return 1;
  230. }
  231.  
  232. public OnVehicleStreamIn(vehicleid, forplayerid)
  233. {
  234. return 1;
  235. }
  236.  
  237. public OnVehicleStreamOut(vehicleid, forplayerid)
  238. {
  239. return 1;
  240. }
  241.  
  242. public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
  243. {
  244. return 1;
  245. }
  246.  
  247. public OnPlayerClickPlayer(playerid, clickedplayerid, source)
  248. {
  249. return 1;
  250. }
  251.  
  252. public OnPlayerClickTextDraw(playerid, Text:clickedid)
  253. {
  254. //if(clickedid != INVALID_TEXT_DRAW) return SendClientMessage(playerid,-1,"Annull");
  255. if(clickedid == Textdraw6){
  256. SendClientMessage(playerid, -1 ,"bravo!");
  257. CancelSelectTextDraw(playerid);}
  258. return 1;
  259. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement