SA-MP Forums Archive
AFK Problem in 0.3z - 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: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: AFK Problem in 0.3z (/showthread.php?tid=494920)



AFK Problem in 0.3z - dimitri8 - 15.02.2014

I've to say thats wonderfull 0.3z cause there arent any lagshots BUT anyone in RP servers can now DM while player being AFK and they can abuse it alot, and no one will see who killed him...


Re: AFK Problem in 0.3z - Konstantinos - 15.02.2014

Do you refer to that bug was reported since the RC stage? If so, a solution already has been posted. In OnPlayerWeaponShot callback, check if the type is player and that player is afk (alt-tabbed) and if they are, return 0 to prevent the player from being hit.


Re: AFK Problem in 0.3z - dimitri8 - 15.02.2014

Well, I dont have that callback, what to do?


AW: Re: AFK Problem in 0.3z - Mellnik - 15.02.2014

Quote:
Originally Posted by dimitri8
Посмотреть сообщение
Well, I dont have that callback, what to do?
Adding it.
https://sampwiki.blast.hk/wiki/OnPlayerWeaponShot


Re: AFK Problem in 0.3z - dimitri8 - 15.02.2014

And thats would avoid that everyone can kills you when you AFK?


Re: AFK Problem in 0.3z - Konstantinos - 15.02.2014

By adding the callback to your mode only, no. You should do those checks I mentioned above and of course you need to have a system that detects when players are alt-tabbed. By searching you can find all of them!


Re: AFK Problem in 0.3z - dimitri8 - 15.02.2014

How can I've it? I'm not scripter proffesional... I've the code he brought me on WIki and now what?