AMX Mod X API Documentation

Signature
stock HamHook:RegisterHamPlayer(Ham:function, const Callback[], Post = 0){ return RegisterHam(function, "player", Callback, Post, true);}
Description

Hooks the virtual table for the player class.

An example would be: RegisterHam(Ham_TakeDamage, "player_hurt");

Look at the Ham enum for parameter lists.

Parameters
  • function The function to hook.
  • Callback The forward to call.
  • Post Whether or not to forward this in post.
Returns

Returns a handle to the forward. Use EnableHamForward/DisableHamForward to toggle the forward on or off.

Назад
Верх