[Include] [ INC ] yInv (Anti-Invulnerable) - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Filterscripts (
https://sampforum.blast.hk/forumdisplay.php?fid=17)
+---- Forum: Includes (
https://sampforum.blast.hk/forumdisplay.php?fid=83)
+---- Thread: [Include] [ INC ] yInv (Anti-Invulnerable) (
/showthread.php?tid=427895)
[ INC ] yInv (Anti-Invulnerable) -
Yiin - 03.04.2013
When player is using INV, callback OnPlayerUseInv(playerid) is called.
Pastebin:
http://pastebin.com/7rM6kQHb
Video:
http://*********/PUHe-Kathxs
Notes:
foreach.inc is required.
Re: [ INC ] yInv (Anti-Invulnerable) -
Niko_boy - 03.04.2013
explain more ? well quite simple thread
anyways nice
Re: [ INC ] yInv (Anti-Invulnerable) -
TheArcher - 03.04.2013
pawn Код:
public OnPlayerUpdate(playerid)
{
yInv_player[playerid][is_afk] = false;
yInv_player[playerid][afk] = false;
return CallLocalFunction("yInv_OnPlayerUpdate", "i", playerid);
}
Dafuq? :O
Re: [ INC ] yInv (Anti-Invulnerable) -
Yiin - 03.04.2013
Quote:
Originally Posted by TheArcher
pawn Код:
public OnPlayerUpdate(playerid) { yInv_player[playerid][is_afk] = false; yInv_player[playerid][afk] = false; return CallLocalFunction("yInv_OnPlayerUpdate", "i", playerid); }
Dafuq? :O
|
what is wrong with this one? If OnPlayerTakeDamage is not called, when player is in menu or alt-tabed, then additional afk checking is not required, but because im not sure about that, afk checking is integrated in this include.