Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <YSI\y_hooks>
- /*******************************************************************************************/
- hook OnActorStreamIn(actorid, forplayerid) {
- printf("[DEBUG] OnActorStreamIn(%i, %i)", actorid, forplayerid);
- }
- /*******************************************************************************************/
- hook OnActorStreamOut(actorid, forplayerid) {
- printf("[DEBUG] OnActorStreamOut(%i, %i)", actorid, forplayerid);
- }
- /*******************************************************************************************/
- hook OnDialogResponse(playerid, dialogid, response, listitem, inputtext[]) {
- printf("[DEBUG] OnDialogResponse(%i, %i, %s, %i, \"%s\")", playerid, dialogid, (response == 1)?("true"):("false"), listitem, inputtext);
- }
- /*******************************************************************************************/
- hook OnEnterExitModShop(playerid, enterexit, interiorid) {
- printf("[DEBUG] OnEnterExitModShop(%i, %i, %i)", playerid, enterexit, interiorid);
- }
- /*******************************************************************************************/
- hook OnFilterScriptExit() {
- print("[DEBUG] OnFilterScriptExit()");
- }
- /*******************************************************************************************/
- hook OnFilterScriptInit() {
- print("[DEBUG] OnFilterScriptInit()");
- }
- /*******************************************************************************************/
- hook OnGameModeExit() {
- print("[DEBUG] OnGameModeExit()");
- }
- /*******************************************************************************************/
- hook OnGameModeInit() {
- print("[DEBUG] OnGameModeInit()");
- }
- /*******************************************************************************************/
- hook OnIncomingConnection(playerid, ip_address[], port) {
- printf("[DEBUG] OnIncomingConnection(%i, \"%s\", %i)", playerid, ip_address, port);
- }
- /*******************************************************************************************/
- hook OnObjectMoved(objectid) {
- printf("[DEBUG] OnObjectMoved(%i)", objectid);
- }
- /*******************************************************************************************/
- hook OnPlayerClickMap(playerid, Float:fX, Float:fY, Float:fZ) {
- printf("[DEBUG] OnPlayerClickMap(%i, %f, %f, %f)", playerid, fX, fY, fZ);
- }
- /*******************************************************************************************/
- hook OnPlayerClickPlayer(playerid, clickedplayerid, source) {
- if(source != 0) // Read wikipedia for more information of "source"
- printf("[DEBUG] OnPlayerClickPlayer(%i, %i, %i)", playerid, clickedplayerid, source);
- else
- printf("[DEBUG] OnPlayerClickPlayer(%i, %i, CLICK_SOURCE_SCOREBOARD)", playerid, clickedplayerid);
- }
- /*******************************************************************************************/
- hook OnPlayerClickPlayerTD(playerid, PlayerText:playertextid) {
- printf("[DEBUG] OnPlayerClickPlayerTextDraw(%i, %i)", playerid, _:playertextid);
- }
- /*******************************************************************************************/
- hook OnPlayerClickTextDraw(playerid, Text:clickedid) {
- printf("[DEBUG] OnPlayerClickTextDraw(%i, %i)", playerid, _:clickedid);
- }
- /*******************************************************************************************/
- hook OnPlayerCommandText(playerid, cmdtext[]) {
- printf("[DEBUG] OnPlayerCommandText(%i, \"%s\")", playerid, cmdtext);
- }
- /*******************************************************************************************/
- hook OnPlayerConnect(playerid) {
- printf("[DEBUG] OnPlayerConnect(%i)", playerid);
- }
- /*******************************************************************************************/
- hook OnPlayerDeath(playerid, killerid, reason) {
- if(killerid != INVALID_PLAYER_ID)
- printf("[DEBUG] OnPlayerDeath(%i, %i, %i)", playerid, killerid, reason);
- else
- printf("[DEBUG] OnPlayerDeath(%i, INVALID_PLAYER_ID, %i)", playerid, reason);
- }
- /*******************************************************************************************/
- hook OnPlayerDisconnect(playerid, reason) {
- printf("[DEBUG] OnPlayerDisconnect(%i, %i)", playerid, reason);
- }
- /*******************************************************************************************/
- 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) {
- 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);
- }
- /*******************************************************************************************/
- hook OnPlayerEditObject(playerid, playerobject, objectid, response, Float:fX, Float:fY, Float:fZ, Float:fRotX, Float:fRotY, Float:fRotZ) {
- 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);
- }
- /*******************************************************************************************/
- hook OnPlayerEnterCheckpoint(playerid) {
- printf("[DEBUG] OnPlayerEnterCheckpoint(%i)", playerid);
- }
- /*******************************************************************************************/
- hook OnPlayerEnterRaceCP(playerid) {
- printf("[DEBUG] OnPlayerEnterRaceCheckpoint(%i)", playerid);
- }
- /*******************************************************************************************/
- hook OnPlayerEnterVehicle(playerid, vehicleid, ispassenger) {
- printf("[DEBUG] OnPlayerEnterVehicle(%i, %i, %s)", playerid, vehicleid, (ispassenger == 1)?("true"):("false"));
- }
- /*******************************************************************************************/
- hook OnPlayerExitVehicle(playerid, vehicleid) {
- printf("[DEBUG] OnPlayerExitVehicle(%i, %i)", playerid, vehicleid);
- }
- /*******************************************************************************************/
- hook OnPlayerExitedMenu(playerid) {
- printf("[DEBUG] OnPlayerExitedMenu(%i)", playerid);
- }
- /*******************************************************************************************/
- hook OnPlayerGiveDamage(playerid, damagedid, Float: amount, weaponid, bodypart) {
- printf("[DEBUG] OnPlayerGiveDamage(%i, %i, %f, %i, %i)", playerid, damagedid, amount, weaponid, bodypart);
- }
- /*******************************************************************************************/
- hook OnPlayerGiveDamageActor(playerid, damaged_actorid, Float: amount, weaponid, bodypart) {
- printf("[DEBUG] OnPlayerGiveDamageActor(%i, %i, %f, %i, %i)", playerid, damaged_actorid, amount, weaponid, bodypart);
- }
- /*******************************************************************************************/
- hook OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid) {
- printf("[DEBUG] OnPlayerInteriorChange(%i, %i, %i)", playerid, newinteriorid, oldinteriorid);
- }
- /*******************************************************************************************/
- hook OnPlayerKeyStateChange(playerid, newkeys, oldkeys) {
- printf("[DEBUG] OnPlayerKeyStateChange(%i, %i, %i)", playerid, newkeys, oldkeys);
- }
- /*******************************************************************************************/
- hook OnPlayerLeaveCheckpoint(playerid) {
- printf("[DEBUG] OnPlayerLeaveCheckpoint(%i)", playerid);
- }
- /*******************************************************************************************/
- hook OnPlayerLeaveRaceCP(playerid) {
- printf("[DEBUG] OnPlayerLeaveRaceCheckpoint(%i)", playerid);
- }
- /*******************************************************************************************/
- hook OnPlayerObjectMoved(playerid, objectid) {
- printf("[DEBUG] OnPlayerObjectMoved(%i, %i)", playerid, objectid);
- }
- /*******************************************************************************************/
- hook OnPlayerPickUpPickup(playerid, pickupid) {
- printf("[DEBUG] OnPlayerPickUpPickup(%i, %i)", playerid, pickupid);
- }
- /*******************************************************************************************/
- hook OnPlayerRequestClass(playerid, classid) {
- printf("[DEBUG] OnPlayerRequestClass(%i, %i)", playerid, classid);
- }
- /*******************************************************************************************/
- hook OnPlayerRequestSpawn(playerid) {
- printf("[DEBUG] OnPlayerRequestSpawn(%i)", playerid);
- }
- /*******************************************************************************************/
- hook OnPlayerSelectObject(playerid, type, objectid, modelid, Float:fX, Float:fY, Float:fZ) {
- printf("[DEBUG] OnPlayerSelectObject(%i, %i, %i, %f, %f, %f)", playerid, type, objectid, modelid, fX, fY, fZ);
- }
- /*******************************************************************************************/
- hook OnPlayerSelectedMenuRow(playerid, row) {
- printf("[DEBUG] OnPlayerSelectedMenuRow(%i, %i)", playerid, row);
- }
- /*******************************************************************************************/
- hook OnPlayerSpawn(playerid) {
- printf("[DEBUG] OnPlayerSpawn(%i)", playerid);
- }
- /*******************************************************************************************/
- hook OnPlayerStateChange(playerid, newstate, oldstate) {
- printf("[DEBUG] OnPlayerStateChange(%i, %i, %i)", playerid, newstate, oldstate);
- }
- /*******************************************************************************************/
- hook OnPlayerStreamIn(playerid, forplayerid) {
- printf("[DEBUG] OnPlayerStreamIn(%i, %i)", playerid, forplayerid);
- }
- /*******************************************************************************************/
- hook OnPlayerStreamOut(playerid, forplayerid) {
- printf("[DEBUG] OnPlayerStreamOut(%i, %i)", playerid, forplayerid);
- }
- /*******************************************************************************************/
- hook OnPlayerTakeDamage(playerid, issuerid, Float:amount, weaponid, bodypart) {
- if(issuerid != INVALID_PLAYER_ID)
- printf("[DEBUG] OnPlayerTakeDamage(%i, %i, %f, %i, %i)", playerid, issuerid, amount, weaponid, bodypart);
- else
- printf("[DEBUG] OnPlayerTakeDamage(%i, INVALID_PLAYER_ID, %f, %i, %i)", playerid, amount, weaponid, bodypart);
- }
- /*******************************************************************************************/
- hook OnPlayerText(playerid, text[]) {
- printf("[DEBUG] OnPlayerText(%i, \"%s\")", playerid, text);
- }
- /*******************************************************************************************/
- hook OnPlayerWeaponShot(playerid, weaponid, hittype, hitid, Float:fX, Float:fY, Float:fZ) {
- printf("[DEBUG] OnPlayerWeaponShot(%i, %i, %i, %i, %f, %f, %f)", playerid, weaponid, hittype, hitid, fX, fY, fZ);
- }
- /*******************************************************************************************/
- hook OnRconCommand(cmd[]) {
- printf("[DEBUG] OnRconCommand(\"%s\")", cmd);
- }
- /*******************************************************************************************/
- hook OnRconLoginAttempt(ip[], password[], success) {
- printf("[DEBUG] OnRconLoginAttempt(\"%s\", \"%s\", %s)", ip, password, (success == 1)?("true"):("false"));
- }
- /*******************************************************************************************/
- DEFINE_HOOK_REPLACEMENT(Status, St);
- hook OnVehicleDamageStUpd(vehicleid, playerid) {
- printf("[DEBUG] OnVehicleDamageStatusUpdate(%i, %i)", vehicleid, playerid);
- }
- /*******************************************************************************************/
- hook OnVehicleDeath(vehicleid, killerid) {
- printf("[DEBUG] OnVehicleDeath(%i, %i)", vehicleid, killerid);
- }
- /*******************************************************************************************/
- hook OnVehicleMod(playerid, vehicleid, componentid) {
- printf("[DEBUG] OnVehicleMod(%i, %i, %i)", playerid, vehicleid, componentid);
- }
- /*******************************************************************************************/
- hook OnVehiclePaintjob(playerid, vehicleid, paintjobid) {
- printf("[DEBUG] OnVehiclePaintjob(%i, %i, %i)", playerid, vehicleid, paintjobid);
- }
- /*******************************************************************************************/
- hook OnVehicleRespray(playerid, vehicleid, color1, color2) {
- printf("[DEBUG] OnVehicleRespray(%i, %i, %i, %i)", playerid, vehicleid, color1, color2);
- }
- /*******************************************************************************************/
- DEFINE_HOOK_REPLACEMENT(State, St);
- hook OnVehicleSirenStChange(playerid, vehicleid, newstate) {
- printf("[DEBUG] OnVehicleSirenStateChange(%i, %i, %i)", playerid, vehicleid, newstate);
- }
- /*******************************************************************************************/
- hook OnVehicleSpawn(vehicleid) {
- printf("[DEBUG] OnVehicleSpawn(%i)", vehicleid);
- }
- /*******************************************************************************************/
- hook OnVehicleStreamIn(vehicleid, forplayerid) {
- printf("[DEBUG] OnVehicleStreamIn(%i, %i)", vehicleid, forplayerid);
- }
- /*******************************************************************************************/
- hook OnVehicleStreamOut(vehicleid, forplayerid) {
- printf("[DEBUG] OnVehicleStreamOut(%i, %i)", vehicleid, forplayerid);
- }
Advertisement
Add Comment
Please, Sign In to add comment