• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Server] Problems with y_hooks
#4
(2021-01-31, 10:31 PM)Pinch Wrote:
Code:
// Taken from YSI (sh00k)

DEFINE_HOOK_REPLACEMENT__(Checkpoint, CP );

DEFINE_HOOK_REPLACEMENT__(Container , Cnt);

DEFINE_HOOK_REPLACEMENT__(Inventory , Inv);

DEFINE_HOOK_REPLACEMENT__(Dynamic? , Dyn);

DEFINE_HOOK_REPLACEMENT__(TextDraw? , TD );

DEFINE_HOOK_REPLACEMENT__(Update? ? , Upd);

DEFINE_HOOK_REPLACEMENT__(Object? ? , Obj);

DEFINE_HOOK_REPLACEMENT__(Command? , Cmd);

Most of the times just opening library's testing sample will tell you literally all that library offers



(2021-02-01, 12:08 AM)Markski Wrote: You can use DEFINE_HOOK_REPLACEMENT__ to create shorter keywords and get under the 31 character limit, as stated above.



For example, setting the line DEFINE_HOOK_REPLACEMENT__(Checkpoint, CP ); somewhere by the top of your script will allow you to define the hook for OnPlayerEnterRaceCheckpoint as OnPlayerEnterRaceCP



Thanks, it worked.
  Reply


Messages In This Thread
Problems with y_hooks - by Frajola - 2021-01-31, 10:17 PM
RE: Problems with y_hooks - by Pinch - 2021-01-31, 10:31 PM
RE: Problems with y_hooks - by Frajola - 2021-02-01, 12:46 AM
RE: Problems with y_hooks - by Markski - 2021-02-01, 12:08 AM

Forum Jump: