Guest User

Untitled

a guest
Dec 11th, 2017
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 3.98 KB | None | 0 0
  1. #include <a_samp>
  2. #include <zcmd>
  3. #pragma tabsize 0
  4.  
  5. new bool:stop[MAX_PLAYERS];
  6. #define ShowInfo(%0) ShowPlayerDialog(playerid, 0, DIALOG_STYLE_MSGBOX, "Mój Gamemod", %0, "OK", "Anuluj")
  7. #if defined FILTERSCRIPT
  8.  
  9.  
  10. public OnFilterScriptInit()
  11. {
  12.     print("\n--------------------------------------");
  13.     print(" Blank Filterscript by your name here");
  14.     print("--------------------------------------\n");
  15.     return 1;
  16. }
  17.  
  18. public OnFilterScriptExit()
  19. {
  20.     return 1;
  21. }
  22.  
  23. #else
  24.  
  25. main()
  26. {
  27.     print("\n----------------------------------");
  28.     print(" Blank Gamemode by your name here");
  29.     print("----------------------------------\n");
  30. }
  31.  
  32. #endif
  33.  
  34. public OnGameModeInit()
  35. {
  36.     // Don't use these lines if it's a filterscript
  37.     SetGameModeText("Blank Script");
  38.     AddPlayerClass(0, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
  39.     return 1;
  40. }
  41.  
  42. public OnGameModeExit()
  43. {
  44.     return 1;
  45. }
  46.  
  47. public OnPlayerRequestClass(playerid, classid)
  48. {
  49.     SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);
  50.     SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746);
  51.     SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746);
  52.     return 1;
  53. }
  54.  
  55. public OnPlayerConnect(playerid)
  56. {   stop[playerid] = false;
  57.     return 1;
  58. }
  59.  
  60. public OnPlayerDisconnect(playerid, reason)
  61. {   stop[playerid] = false;
  62.     return 1;
  63. }
  64.  
  65. public OnPlayerSpawn(playerid)
  66. {
  67.     return 1;
  68. }
  69.  
  70. public OnPlayerDeath(playerid, killerid, reason)
  71. {
  72.     return 1;
  73. }
  74.  
  75. public OnVehicleSpawn(vehicleid)
  76. {
  77.     return 1;
  78. }
  79.  
  80. public OnVehicleDeath(vehicleid, killerid)
  81. {
  82.     return 1;
  83. }
  84.  
  85. public OnPlayerText(playerid, text[])
  86. {
  87.     return 1;
  88. }
  89.  
  90. public OnPlayerCommandText(playerid, cmdtext[])
  91. {
  92.     if (strcmp("/mycommand", cmdtext, true, 10) == 0)
  93.     {
  94.         // Do something here
  95.         return 1;
  96.     }
  97.     return 0;
  98. }
  99.  
  100. public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
  101. {
  102.     return 1;
  103. }
  104.  
  105. public OnPlayerExitVehicle(playerid, vehicleid)
  106. {
  107.     return 1;
  108. }
  109.  
  110. public OnPlayerStateChange(playerid, newstate, oldstate)
  111. {
  112.     return 1;
  113. }
  114.  
  115. public OnPlayerEnterCheckpoint(playerid)
  116. {
  117.     return 1;
  118. }
  119.  
  120. public OnPlayerLeaveCheckpoint(playerid)
  121. {
  122.     return 1;
  123. }
  124.  
  125. public OnPlayerEnterRaceCheckpoint(playerid)
  126. {
  127.     return 1;
  128. }
  129.  
  130. public OnPlayerLeaveRaceCheckpoint(playerid)
  131. {
  132.     return 1;
  133. }
  134.  
  135. public OnRconCommand(cmd[])
  136. {
  137.     return 1;
  138. }
  139.  
  140. public OnPlayerRequestSpawn(playerid)
  141. {
  142.     return 1;
  143. }
  144.  
  145. public OnObjectMoved(objectid)
  146. {
  147.     return 1;
  148. }
  149.  
  150. public OnPlayerObjectMoved(playerid, objectid)
  151. {
  152.     return 1;
  153. }
  154.  
  155. public OnPlayerPickUpPickup(playerid, pickupid)
  156. {
  157.     return 1;
  158. }
  159.  
  160. public OnVehicleMod(playerid, vehicleid, componentid)
  161. {
  162.     return 1;
  163. }
  164.  
  165. public OnVehiclePaintjob(playerid, vehicleid, paintjobid)
  166. {
  167.     return 1;
  168. }
  169.  
  170. public OnVehicleRespray(playerid, vehicleid, color1, color2)
  171. {
  172.     return 1;
  173. }
  174.  
  175. public OnPlayerSelectedMenuRow(playerid, row)
  176. {
  177.     return 1;
  178. }
  179.  
  180. public OnPlayerExitedMenu(playerid)
  181. {
  182.     return 1;
  183. }
  184.  
  185. public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid)
  186. {
  187.     return 1;
  188. }
  189.  
  190. public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
  191. {
  192.     return 1;
  193. }
  194.  
  195. public OnRconLoginAttempt(ip[], password[], success)
  196. {
  197.     return 1;
  198. }
  199.  
  200. public OnPlayerUpdate(playerid)
  201. {
  202.     return 1;
  203. }
  204.  
  205. public OnPlayerStreamIn(playerid, forplayerid)
  206. {
  207.     return 1;
  208. }
  209.  
  210. public OnPlayerStreamOut(playerid, forplayerid)
  211. {
  212.     return 1;
  213. }
  214.  
  215. public OnVehicleStreamIn(vehicleid, forplayerid)
  216. {
  217.     return 1;
  218. }
  219.  
  220. public OnVehicleStreamOut(vehicleid, forplayerid)
  221. {
  222.     return 1;
  223. }
  224.  
  225. public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
  226. {
  227.     return 1;
  228. }
  229.  
  230. public OnPlayerClickPlayer(playerid, clickedplayerid, source)
  231. {
  232.     return 1;
  233. CMD:100hp(playerid, params[])
  234. {
  235.   if(stop[playerid] == true)
  236.       return ShowInfo("Nie możesz skorzystać z tej komendy poczekaj 5 sekund!");
  237.  
  238.   SetPlayerHealth(playerid, 100);
  239.     stop[playerid] = true;
  240.     SetTimerEx("newhp", 5000, 0, "d", playerid);
  241.     return 1;
  242. }
  243.  
  244.  
  245. forward newhp(playerid);
  246. public newhp(playerid)
  247.   return stop[playerid] = false;
Add Comment
Please, Sign In to add comment