Advertisement
Guest User

Untitled

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