AFK Problem in 0.3z
#1

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...
Reply
#2

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.
Reply
#3

Well, I dont have that callback, what to do?
Reply
#4

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

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

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!
Reply
#7

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


Forum Jump:


Users browsing this thread: 1 Guest(s)