Advertisement
Guest User

CuffedV2

a guest
Aug 9th, 2012
526
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.36 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.  
  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. // Don't use these lines if it's a filterscript
  36. SetGameModeText("Blank Script");
  37. AddPlayerClass(0, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
  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 OnPlayerText(playerid, text[])
  85. {
  86. return 1;
  87. }
  88.  
  89. public OnPlayerCommandText(playerid, cmdtext[])
  90. {
  91. if (strcmp("/cuffed", cmdtext, true, 7) == 0)
  92. {
  93. SetPlayerSpecialAction(playerid, SPECIAL_ACTION_CUFFED);
  94. SetPlayerAttachedObject(playerid, 0, 19418, 6, -0.011000, 0.028000, -0.022000, -15.600012, -33.699977, -81.700035, 0.891999, 1.000000, 1.168000);
  95. return 1;
  96. }
  97. if (strcmp("/uncuff", cmdtext, true, 7) == 0)
  98. {
  99. for(new i=0; i<MAX_PLAYER_ATTACHED_OBJECTS; i++)
  100. {
  101. if(IsPlayerAttachedObjectSlotUsed(playerid, i)) RemovePlayerAttachedObject(playerid, i);
  102. SetPlayerSpecialAction(playerid, SPECIAL_ACTION_NONE);
  103. }
  104. return 1;
  105. }
  106. return 0;
  107. }
  108.  
  109. public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
  110. {
  111. return 1;
  112. }
  113.  
  114. public OnPlayerExitVehicle(playerid, vehicleid)
  115. {
  116. return 1;
  117. }
  118.  
  119. public OnPlayerStateChange(playerid, newstate, oldstate)
  120. {
  121. return 1;
  122. }
  123.  
  124. public OnPlayerEnterCheckpoint(playerid)
  125. {
  126. return 1;
  127. }
  128.  
  129. public OnPlayerLeaveCheckpoint(playerid)
  130. {
  131. return 1;
  132. }
  133.  
  134. public OnPlayerEnterRaceCheckpoint(playerid)
  135. {
  136. return 1;
  137. }
  138.  
  139. public OnPlayerLeaveRaceCheckpoint(playerid)
  140. {
  141. return 1;
  142. }
  143.  
  144. public OnRconCommand(cmd[])
  145. {
  146. return 1;
  147. }
  148.  
  149. public OnPlayerRequestSpawn(playerid)
  150. {
  151. return 1;
  152. }
  153.  
  154. public OnObjectMoved(objectid)
  155. {
  156. return 1;
  157. }
  158.  
  159. public OnPlayerObjectMoved(playerid, objectid)
  160. {
  161. return 1;
  162. }
  163.  
  164. public OnPlayerPickUpPickup(playerid, pickupid)
  165. {
  166. return 1;
  167. }
  168.  
  169. public OnVehicleMod(playerid, vehicleid, componentid)
  170. {
  171. return 1;
  172. }
  173.  
  174. public OnVehiclePaintjob(playerid, vehicleid, paintjobid)
  175. {
  176. return 1;
  177. }
  178.  
  179. public OnVehicleRespray(playerid, vehicleid, color1, color2)
  180. {
  181. return 1;
  182. }
  183.  
  184. public OnPlayerSelectedMenuRow(playerid, row)
  185. {
  186. return 1;
  187. }
  188.  
  189. public OnPlayerExitedMenu(playerid)
  190. {
  191. return 1;
  192. }
  193.  
  194. public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid)
  195. {
  196. return 1;
  197. }
  198.  
  199. public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
  200. {
  201. if(newkeys & KEY_JUMP && !(oldkeys & KEY_JUMP) && GetPlayerSpecialAction(playerid) == SPECIAL_ACTION_CUFFED) ApplyAnimation(playerid, "GYMNASIUM", "gym_jog_falloff",4.1,0,1,1,0,0);
  202. if(newkeys & KEY_SPRINT && !(oldkeys & KEY_SPRINT) && GetPlayerSpecialAction(playerid) == SPECIAL_ACTION_CUFFED) ApplyAnimation(playerid, "GYMNASIUM", "gym_jog_falloff",4.1,0,1,1,0,0);
  203. return 1;
  204. }
  205.  
  206. public OnRconLoginAttempt(ip[], password[], success)
  207. {
  208. return 1;
  209. }
  210.  
  211. public OnPlayerUpdate(playerid)
  212. {
  213. return 1;
  214. }
  215.  
  216. public OnPlayerStreamIn(playerid, forplayerid)
  217. {
  218. return 1;
  219. }
  220.  
  221. public OnPlayerStreamOut(playerid, forplayerid)
  222. {
  223. return 1;
  224. }
  225.  
  226. public OnVehicleStreamIn(vehicleid, forplayerid)
  227. {
  228. return 1;
  229. }
  230.  
  231. public OnVehicleStreamOut(vehicleid, forplayerid)
  232. {
  233. return 1;
  234. }
  235.  
  236. public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
  237. {
  238. return 1;
  239. }
  240.  
  241. public OnPlayerClickPlayer(playerid, clickedplayerid, source)
  242. {
  243. return 1;
  244. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement