Advertisement
Guest User

CuffedV3

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