21.11.2013, 17:54
Can anyone please tell me what does y_hooks do? I've been looking around the forum but I couldn't find anything.
Originally Posted by ******
y_hooks - Hook any callback in one line!
|
#if defined _ALS_OnPlayerUpdate
#undef OnPlayerUpdate
#else
#define _ALS_OnPlayerUpdate
#endif
#define OnPlayerUpdate hook_OnPlayerUpdate
hook OnPlayerUpdate( parameters )
{
}
hook OnPlayerDeath(playerid, killerid, reason)
{
SendClientMessage(playerid, -1, "You have died!");
}