Guest User

Untitled

a guest
Apr 23rd, 2018
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 3.87 KB | None | 0 0
  1. // This is a comment
  2. // uncomment the line below if you want to write a filterscript
  3. //#define FILTERSCRIPT
  4.  
  5. #include <a_samp>
  6. #include <zcmd>
  7.  
  8. #if defined FILTERSCRIPT
  9. #define RED 0xFF0000FF
  10.  
  11.  
  12. public OnFilterScriptInit()
  13. {
  14.     print("\n--------------------------------------");
  15.     print(" Blank Filterscript by your name here");
  16.     print("--------------------------------------\n");
  17.     return 1;
  18. }
  19.  
  20. public OnFilterScriptExit()
  21. {
  22.     return 1;
  23. }
  24.  
  25. #else
  26.  
  27. main()
  28. {
  29.     print("\n----------------------------------");
  30.     print(" Blank Gamemode by your name here");
  31.     print("----------------------------------\n");
  32. }
  33.  
  34. #endif
  35.  
  36. public OnGameModeInit()
  37. {
  38.     return 1;
  39. }
  40.  
  41. public OnGameModeExit()
  42. {
  43.     return 1;
  44. }
  45.  
  46. public OnPlayerRequestClass(playerid, classid)
  47. {
  48.     SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);
  49.     SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746);
  50.     SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746);
  51.     return 1;
  52. }
  53.  
  54. public OnPlayerConnect(playerid)
  55. {
  56.     return 1;
  57. }
  58.  
  59. public OnPlayerDisconnect(playerid, reason)
  60. {
  61.     return 1;
  62. }
  63.  
  64. public OnPlayerSpawn(playerid)
  65. {
  66.     return 1;
  67. }
  68.  
  69. public OnPlayerDeath(playerid, killerid, reason)
  70. {
  71.     return 1;
  72. }
  73.  
  74. public OnVehicleSpawn(vehicleid)
  75. {
  76.     return 1;
  77. }
  78.  
  79. public OnVehicleDeath(vehicleid, killerid)
  80. {
  81.     return 1;
  82. }
  83.  
  84. public OnPlayerCommandText(playerid, cmdtext[])
  85.  
  86. CMD:getgift(playerid, params[])
  87. {
  88.     if(IsPlayerInRangeOfPoint(playerid, 100, -1546, 546, 6)) //radius that they can type it in
  89.     {
  90.         new rand = random(5);
  91.         switch(rand)
  92.         {
  93.             case 0: GivePlayerMoney(playerid, 200); //playerid, amount
  94.             case 1: GivePlayerWeapon(playerid, 31, 200); //playerid, gunid, ammo
  95.             case 2: SetPlayerSkin(playerid, 264); //playerid, skinid
  96.             case 3: CreateVehicle(426, -1552,528,6, 100, 1, 1, -1); //car model id, x,y,z,angle,col1,col2,respawn delay
  97.             default: SendClientMessage(playerid, 0xFF0000FF,"You get coal chump");
  98.         }
  99.     }
  100.     return 1;
  101. }
  102.  
  103. public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
  104. {
  105.     return 1;
  106. }
  107.  
  108. public OnPlayerExitVehicle(playerid, vehicleid)
  109. {
  110.     return 1;
  111. }
  112.  
  113. public OnPlayerStateChange(playerid, newstate, oldstate)
  114. {
  115.     return 1;
  116. }
  117.  
  118. public OnPlayerEnterCheckpoint(playerid)
  119. {
  120.     return 1;
  121. }
  122.  
  123. public OnPlayerLeaveCheckpoint(playerid)
  124. {
  125.     return 1;
  126. }
  127.  
  128. public OnPlayerEnterRaceCheckpoint(playerid)
  129. {
  130.     return 1;
  131. }
  132.  
  133. public OnPlayerLeaveRaceCheckpoint(playerid)
  134. {
  135.     return 1;
  136. }
  137.  
  138. public OnRconCommand(cmd[])
  139. {
  140.     return 1;
  141. }
  142.  
  143. public OnPlayerRequestSpawn(playerid)
  144. {
  145.     return 1;
  146. }
  147.  
  148. public OnObjectMoved(objectid)
  149. {
  150.     return 1;
  151. }
  152.  
  153. public OnPlayerObjectMoved(playerid, objectid)
  154. {
  155.     return 1;
  156. }
  157.  
  158. public OnPlayerPickUpPickup(playerid, pickupid)
  159. {
  160.     return 1;
  161. }
  162.  
  163. public OnVehicleMod(playerid, vehicleid, componentid)
  164. {
  165.     return 1;
  166. }
  167.  
  168. public OnVehiclePaintjob(playerid, vehicleid, paintjobid)
  169. {
  170.     return 1;
  171. }
  172.  
  173. public OnVehicleRespray(playerid, vehicleid, color1, color2)
  174. {
  175.     return 1;
  176. }
  177.  
  178. public OnPlayerSelectedMenuRow(playerid, row)
  179. {
  180.     return 1;
  181. }
  182.  
  183. public OnPlayerExitedMenu(playerid)
  184. {
  185.     return 1;
  186. }
  187.  
  188. public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid)
  189. {
  190.     return 1;
  191. }
  192.  
  193. public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
  194. {
  195.     return 1;
  196. }
  197.  
  198. public OnRconLoginAttempt(ip[], password[], success)
  199. {
  200.     return 1;
  201. }
  202.  
  203. public OnPlayerUpdate(playerid)
  204. {
  205.     return 1;
  206. }
  207.  
  208. public OnPlayerStreamIn(playerid, forplayerid)
  209. {
  210.     return 1;
  211. }
  212.  
  213. public OnPlayerStreamOut(playerid, forplayerid)
  214. {
  215.     return 1;
  216. }
  217.  
  218. public OnVehicleStreamIn(vehicleid, forplayerid)
  219. {
  220.     return 1;
  221. }
  222.  
  223. public OnVehicleStreamOut(vehicleid, forplayerid)
  224. {
  225.     return 1;
  226. }
  227.  
  228. public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
  229. {
  230.     return 1;
  231. }
  232.  
  233. public OnPlayerClickPlayer(playerid, clickedplayerid, source)
  234. {
  235.     return 1;
  236. }
Add Comment
Please, Sign In to add comment