Guest User

Untitled

a guest
Jul 4th, 2017
290
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 13.54 KB | None | 0 0
  1. #include <YSI\y_hooks>
  2.  
  3. /*******************************************************************************************/
  4.  
  5. hook OnActorStreamIn(actorid, forplayerid) {
  6. printf("[DEBUG] OnActorStreamIn(%i, %i)", actorid, forplayerid);
  7. }
  8.  
  9. /*******************************************************************************************/
  10.  
  11. hook OnActorStreamOut(actorid, forplayerid) {
  12. printf("[DEBUG] OnActorStreamOut(%i, %i)", actorid, forplayerid);
  13. }
  14.  
  15. /*******************************************************************************************/
  16.  
  17. hook OnDialogResponse(playerid, dialogid, response, listitem, inputtext[]) {
  18. printf("[DEBUG] OnDialogResponse(%i, %i, %s, %i, \"%s\")", playerid, dialogid, (response == 1)?("true"):("false"), listitem, inputtext);
  19. }
  20.  
  21. /*******************************************************************************************/
  22.  
  23. hook OnEnterExitModShop(playerid, enterexit, interiorid) {
  24. printf("[DEBUG] OnEnterExitModShop(%i, %i, %i)", playerid, enterexit, interiorid);
  25. }
  26.  
  27. /*******************************************************************************************/
  28.  
  29. hook OnFilterScriptExit() {
  30. print("[DEBUG] OnFilterScriptExit()");
  31. }
  32.  
  33. /*******************************************************************************************/
  34.  
  35. hook OnFilterScriptInit() {
  36. print("[DEBUG] OnFilterScriptInit()");
  37. }
  38.  
  39. /*******************************************************************************************/
  40.  
  41. hook OnGameModeExit() {
  42. print("[DEBUG] OnGameModeExit()");
  43. }
  44.  
  45. /*******************************************************************************************/
  46.  
  47. hook OnGameModeInit() {
  48. print("[DEBUG] OnGameModeInit()");
  49. }
  50.  
  51. /*******************************************************************************************/
  52.  
  53. hook OnIncomingConnection(playerid, ip_address[], port) {
  54. printf("[DEBUG] OnIncomingConnection(%i, \"%s\", %i)", playerid, ip_address, port);
  55. }
  56.  
  57. /*******************************************************************************************/
  58.  
  59. hook OnObjectMoved(objectid) {
  60. printf("[DEBUG] OnObjectMoved(%i)", objectid);
  61. }
  62.  
  63. /*******************************************************************************************/
  64.  
  65. hook OnPlayerClickMap(playerid, Float:fX, Float:fY, Float:fZ) {
  66. printf("[DEBUG] OnPlayerClickMap(%i, %f, %f, %f)", playerid, fX, fY, fZ);
  67. }
  68.  
  69. /*******************************************************************************************/
  70.  
  71. hook OnPlayerClickPlayer(playerid, clickedplayerid, source) {
  72. if(source != 0) // Read wikipedia for more information of "source"
  73. printf("[DEBUG] OnPlayerClickPlayer(%i, %i, %i)", playerid, clickedplayerid, source);
  74. else
  75. printf("[DEBUG] OnPlayerClickPlayer(%i, %i, CLICK_SOURCE_SCOREBOARD)", playerid, clickedplayerid);
  76. }
  77.  
  78. /*******************************************************************************************/
  79.  
  80. hook OnPlayerClickPlayerTD(playerid, PlayerText:playertextid) {
  81. printf("[DEBUG] OnPlayerClickPlayerTextDraw(%i, %i)", playerid, _:playertextid);
  82. }
  83.  
  84. /*******************************************************************************************/
  85.  
  86. hook OnPlayerClickTextDraw(playerid, Text:clickedid) {
  87. printf("[DEBUG] OnPlayerClickTextDraw(%i, %i)", playerid, _:clickedid);
  88. }
  89.  
  90. /*******************************************************************************************/
  91.  
  92. hook OnPlayerCommandText(playerid, cmdtext[]) {
  93. printf("[DEBUG] OnPlayerCommandText(%i, \"%s\")", playerid, cmdtext);
  94. }
  95.  
  96. /*******************************************************************************************/
  97.  
  98. hook OnPlayerConnect(playerid) {
  99. printf("[DEBUG] OnPlayerConnect(%i)", playerid);
  100. }
  101.  
  102. /*******************************************************************************************/
  103.  
  104. hook OnPlayerDeath(playerid, killerid, reason) {
  105. if(killerid != INVALID_PLAYER_ID)
  106. printf("[DEBUG] OnPlayerDeath(%i, %i, %i)", playerid, killerid, reason);
  107. else
  108. printf("[DEBUG] OnPlayerDeath(%i, INVALID_PLAYER_ID, %i)", playerid, reason);
  109. }
  110.  
  111. /*******************************************************************************************/
  112.  
  113. hook OnPlayerDisconnect(playerid, reason) {
  114. printf("[DEBUG] OnPlayerDisconnect(%i, %i)", playerid, reason);
  115. }
  116.  
  117. /*******************************************************************************************/
  118.  
  119. hook OnPlayerEditAttachedObj(playerid, response, index, modelid, boneid, Float:fOffsetX, Float:fOffsetY, Float:fOffsetZ, Float:fRotX, Float:fRotY, Float:fRotZ, Float:fScaleX, Float:fScaleY, Float:fScaleZ) {
  120. printf("[DEBUG] OnPlayerEditAttachedObject(%i, %s, %i, %i, %f, %f, %f, %f, %f, %f, %f, %f, %f)", playerid, (response == 1)?("true"):("false"), index, modelid, boneid, fOffsetX, fOffsetY, fOffsetZ, fRotX, fRotY, fRotZ, fScaleX, fScaleY, fScaleZ);
  121. }
  122.  
  123. /*******************************************************************************************/
  124.  
  125. hook OnPlayerEditObject(playerid, playerobject, objectid, response, Float:fX, Float:fY, Float:fZ, Float:fRotX, Float:fRotY, Float:fRotZ) {
  126. printf("[DEBUG] OnPlayerEditObject(%i, %i, %i, %s, %f, %f, %f, %f, %f, %f)", playerid, playerobject, objectid, (response == 1)?("true"):("false"), fX, fY, fZ, fRotX, fRotY, fRotZ);
  127. }
  128.  
  129. /*******************************************************************************************/
  130.  
  131. hook OnPlayerEnterCheckpoint(playerid) {
  132. printf("[DEBUG] OnPlayerEnterCheckpoint(%i)", playerid);
  133. }
  134.  
  135. /*******************************************************************************************/
  136.  
  137. hook OnPlayerEnterRaceCP(playerid) {
  138. printf("[DEBUG] OnPlayerEnterRaceCheckpoint(%i)", playerid);
  139. }
  140.  
  141. /*******************************************************************************************/
  142.  
  143. hook OnPlayerEnterVehicle(playerid, vehicleid, ispassenger) {
  144. printf("[DEBUG] OnPlayerEnterVehicle(%i, %i, %s)", playerid, vehicleid, (ispassenger == 1)?("true"):("false"));
  145. }
  146.  
  147. /*******************************************************************************************/
  148.  
  149. hook OnPlayerExitVehicle(playerid, vehicleid) {
  150. printf("[DEBUG] OnPlayerExitVehicle(%i, %i)", playerid, vehicleid);
  151. }
  152.  
  153. /*******************************************************************************************/
  154.  
  155. hook OnPlayerExitedMenu(playerid) {
  156. printf("[DEBUG] OnPlayerExitedMenu(%i)", playerid);
  157. }
  158.  
  159. /*******************************************************************************************/
  160.  
  161. hook OnPlayerGiveDamage(playerid, damagedid, Float: amount, weaponid, bodypart) {
  162. printf("[DEBUG] OnPlayerGiveDamage(%i, %i, %f, %i, %i)", playerid, damagedid, amount, weaponid, bodypart);
  163. }
  164.  
  165. /*******************************************************************************************/
  166.  
  167. hook OnPlayerGiveDamageActor(playerid, damaged_actorid, Float: amount, weaponid, bodypart) {
  168. printf("[DEBUG] OnPlayerGiveDamageActor(%i, %i, %f, %i, %i)", playerid, damaged_actorid, amount, weaponid, bodypart);
  169. }
  170.  
  171. /*******************************************************************************************/
  172.  
  173. hook OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid) {
  174. printf("[DEBUG] OnPlayerInteriorChange(%i, %i, %i)", playerid, newinteriorid, oldinteriorid);
  175. }
  176.  
  177. /*******************************************************************************************/
  178.  
  179. hook OnPlayerKeyStateChange(playerid, newkeys, oldkeys) {
  180. printf("[DEBUG] OnPlayerKeyStateChange(%i, %i, %i)", playerid, newkeys, oldkeys);
  181. }
  182.  
  183. /*******************************************************************************************/
  184.  
  185. hook OnPlayerLeaveCheckpoint(playerid) {
  186. printf("[DEBUG] OnPlayerLeaveCheckpoint(%i)", playerid);
  187. }
  188.  
  189. /*******************************************************************************************/
  190.  
  191. hook OnPlayerLeaveRaceCP(playerid) {
  192. printf("[DEBUG] OnPlayerLeaveRaceCheckpoint(%i)", playerid);
  193. }
  194.  
  195. /*******************************************************************************************/
  196.  
  197. hook OnPlayerObjectMoved(playerid, objectid) {
  198. printf("[DEBUG] OnPlayerObjectMoved(%i, %i)", playerid, objectid);
  199. }
  200.  
  201. /*******************************************************************************************/
  202.  
  203. hook OnPlayerPickUpPickup(playerid, pickupid) {
  204. printf("[DEBUG] OnPlayerPickUpPickup(%i, %i)", playerid, pickupid);
  205. }
  206.  
  207. /*******************************************************************************************/
  208.  
  209. hook OnPlayerRequestClass(playerid, classid) {
  210. printf("[DEBUG] OnPlayerRequestClass(%i, %i)", playerid, classid);
  211. }
  212.  
  213. /*******************************************************************************************/
  214.  
  215. hook OnPlayerRequestSpawn(playerid) {
  216. printf("[DEBUG] OnPlayerRequestSpawn(%i)", playerid);
  217. }
  218.  
  219. /*******************************************************************************************/
  220.  
  221. hook OnPlayerSelectObject(playerid, type, objectid, modelid, Float:fX, Float:fY, Float:fZ) {
  222. printf("[DEBUG] OnPlayerSelectObject(%i, %i, %i, %f, %f, %f)", playerid, type, objectid, modelid, fX, fY, fZ);
  223. }
  224.  
  225. /*******************************************************************************************/
  226.  
  227. hook OnPlayerSelectedMenuRow(playerid, row) {
  228. printf("[DEBUG] OnPlayerSelectedMenuRow(%i, %i)", playerid, row);
  229. }
  230.  
  231. /*******************************************************************************************/
  232.  
  233. hook OnPlayerSpawn(playerid) {
  234. printf("[DEBUG] OnPlayerSpawn(%i)", playerid);
  235. }
  236.  
  237. /*******************************************************************************************/
  238.  
  239. hook OnPlayerStateChange(playerid, newstate, oldstate) {
  240. printf("[DEBUG] OnPlayerStateChange(%i, %i, %i)", playerid, newstate, oldstate);
  241. }
  242.  
  243. /*******************************************************************************************/
  244.  
  245. hook OnPlayerStreamIn(playerid, forplayerid) {
  246. printf("[DEBUG] OnPlayerStreamIn(%i, %i)", playerid, forplayerid);
  247. }
  248.  
  249. /*******************************************************************************************/
  250.  
  251. hook OnPlayerStreamOut(playerid, forplayerid) {
  252. printf("[DEBUG] OnPlayerStreamOut(%i, %i)", playerid, forplayerid);
  253. }
  254.  
  255. /*******************************************************************************************/
  256.  
  257. hook OnPlayerTakeDamage(playerid, issuerid, Float:amount, weaponid, bodypart) {
  258. if(issuerid != INVALID_PLAYER_ID)
  259. printf("[DEBUG] OnPlayerTakeDamage(%i, %i, %f, %i, %i)", playerid, issuerid, amount, weaponid, bodypart);
  260. else
  261. printf("[DEBUG] OnPlayerTakeDamage(%i, INVALID_PLAYER_ID, %f, %i, %i)", playerid, amount, weaponid, bodypart);
  262. }
  263.  
  264. /*******************************************************************************************/
  265.  
  266. hook OnPlayerText(playerid, text[]) {
  267. printf("[DEBUG] OnPlayerText(%i, \"%s\")", playerid, text);
  268. }
  269.  
  270. /*******************************************************************************************/
  271.  
  272. hook OnPlayerWeaponShot(playerid, weaponid, hittype, hitid, Float:fX, Float:fY, Float:fZ) {
  273. printf("[DEBUG] OnPlayerWeaponShot(%i, %i, %i, %i, %f, %f, %f)", playerid, weaponid, hittype, hitid, fX, fY, fZ);
  274. }
  275.  
  276. /*******************************************************************************************/
  277.  
  278. hook OnRconCommand(cmd[]) {
  279. printf("[DEBUG] OnRconCommand(\"%s\")", cmd);
  280. }
  281.  
  282. /*******************************************************************************************/
  283.  
  284. hook OnRconLoginAttempt(ip[], password[], success) {
  285. printf("[DEBUG] OnRconLoginAttempt(\"%s\", \"%s\", %s)", ip, password, (success == 1)?("true"):("false"));
  286. }
  287.  
  288. /*******************************************************************************************/
  289.  
  290. DEFINE_HOOK_REPLACEMENT(Status, St);
  291. hook OnVehicleDamageStUpd(vehicleid, playerid) {
  292. printf("[DEBUG] OnVehicleDamageStatusUpdate(%i, %i)", vehicleid, playerid);
  293. }
  294.  
  295. /*******************************************************************************************/
  296.  
  297. hook OnVehicleDeath(vehicleid, killerid) {
  298. printf("[DEBUG] OnVehicleDeath(%i, %i)", vehicleid, killerid);
  299. }
  300.  
  301. /*******************************************************************************************/
  302.  
  303. hook OnVehicleMod(playerid, vehicleid, componentid) {
  304. printf("[DEBUG] OnVehicleMod(%i, %i, %i)", playerid, vehicleid, componentid);
  305. }
  306.  
  307. /*******************************************************************************************/
  308.  
  309. hook OnVehiclePaintjob(playerid, vehicleid, paintjobid) {
  310. printf("[DEBUG] OnVehiclePaintjob(%i, %i, %i)", playerid, vehicleid, paintjobid);
  311. }
  312.  
  313. /*******************************************************************************************/
  314.  
  315. hook OnVehicleRespray(playerid, vehicleid, color1, color2) {
  316. printf("[DEBUG] OnVehicleRespray(%i, %i, %i, %i)", playerid, vehicleid, color1, color2);
  317. }
  318.  
  319. /*******************************************************************************************/
  320. DEFINE_HOOK_REPLACEMENT(State, St);
  321. hook OnVehicleSirenStChange(playerid, vehicleid, newstate) {
  322. printf("[DEBUG] OnVehicleSirenStateChange(%i, %i, %i)", playerid, vehicleid, newstate);
  323. }
  324.  
  325. /*******************************************************************************************/
  326.  
  327. hook OnVehicleSpawn(vehicleid) {
  328. printf("[DEBUG] OnVehicleSpawn(%i)", vehicleid);
  329. }
  330.  
  331. /*******************************************************************************************/
  332.  
  333. hook OnVehicleStreamIn(vehicleid, forplayerid) {
  334. printf("[DEBUG] OnVehicleStreamIn(%i, %i)", vehicleid, forplayerid);
  335. }
  336.  
  337. /*******************************************************************************************/
  338.  
  339. hook OnVehicleStreamOut(vehicleid, forplayerid) {
  340. printf("[DEBUG] OnVehicleStreamOut(%i, %i)", vehicleid, forplayerid);
  341. }
Advertisement
Add Comment
Please, Sign In to add comment