08.10.2018, 23:30
Quote:
|
Okay so CallLocalFunction is slower than a direct call, so if i were you i'd do it like this:
Код:
#if defined OnPlayerPause
OnPlayerPause(playerid);
#endif
Код:
#if defined OnPlayerPause
forward OnPlayerPause(playerid);
#endif
You should also mention the usage of y_hooks along with the credits in the post. There's also the protection against double including, this: Код:
#if defined afkChecker_included_
#endinput
#endif
#define afkChecker_included_
|
Quote:
|
Here's my implementation for an afk checker with a pause checker too. LINK
|


