Video: SA-MP 0.3z Bug 1: Players in AFK mode can be killed -
..Bobby.. - 18.01.2014
[ame]http://www.youtube.com/watch?v=IzWaR8N3QZY[/ame]
This bug can be found in both RC1 and RC2
Re: Video: SA-MP 0.3z Bug 1: Players in AFK mode can be killed -
Riddick94 - 18.01.2014
That is not a bug.
Re: Video: SA-MP 0.3z Bug 1: Players in AFK mode can be killed -
FlawPaw - 18.01.2014
http://forum.sa-mp.com/forumdisplay.php?f=20
Re: Video: SA-MP 0.3z Bug 1: Players in AFK mode can be killed -
..Bobby.. - 18.01.2014
Quote:
Originally Posted by Riddick94
That is not a bug.
|
That guy's health doesnt drop but he died anyway so its obviously bug
Re: Video: SA-MP 0.3z Bug 1: Players in AFK mode can be killed -
sampreader - 18.01.2014
not a bug script designed
Re: Video: SA-MP 0.3z Bug 1: Players in AFK mode can be killed -
Pottus - 18.01.2014
It's not a bug, just check if the player is paused then return 0; in OnPlayerWeaponShot() simple. It's a good idea I think no more pausing.
@Edit - Also wanted to add you tested this on our server and we currently have anti-lag enabled with this version due to the "Ghost Shot Bug".
Re: Video: SA-MP 0.3z Bug 1: Players in AFK mode can be killed -
Lordzy - 18.01.2014
@FlawPAw, it's related to 0.3z. So it's much better in posting here so that it could be fixed on further RC releases.
OT :
Confirming about this. I don't know if it is done as a feature which would hurt AFK players too, if so, the HP bar doesn't get reduced. Though, I'd like if it's not reducing the HP when player goes AFK.
Re: Video: SA-MP 0.3z Bug 1: Players in AFK mode can be killed -
MP2 - 18.01.2014
It doesn't go down when they're AFK because their game is closed, so it can't process damage. When they unpause it processes the damage then. It's good, because people can't pause to avoid death now.
Re: Video: SA-MP 0.3z Bug 1: Players in AFK mode can be killed -
Mauzen - 18.01.2014
Usually they die when they come back. So I guess this isnt a bug, but the script manages the damage, so he dies without even knowing.
Re: Video: SA-MP 0.3z Bug 1: Players in AFK mode can be killed -
Jefff - 18.01.2014
Should be function bool:IsPlayerPaused(playerid) because checking with timer and OPU is slow
Re: Video: SA-MP 0.3z Bug 1: Players in AFK mode can be killed -
Swisher - 18.01.2014
This is a good thing in my opinion
Re: Video: SA-MP 0.3z Bug 1: Players in AFK mode can be killed -
PawnoQ - 18.01.2014
no more ping/lag protection and /esc to avoid death in SAMP, how great is that!!!
Re: Video: SA-MP 0.3z Bug 1: Players in AFK mode can be killed -
newbienoob - 18.01.2014
It's great to avoid esc abuser.
Re: Video: SA-MP 0.3z Bug 1: Players in AFK mode can be killed -
Cypress - 18.01.2014
I've scripted this future on my server before 0.3z's appearance. I think it would be even better if players health bar would get updated so you could know that you are applying damage to player since a lot of newbies won't probably know that because health bar remains un-updated.
EDIT: Is OnPlayerDeath getting called when you kill a paused player though? I didn't see any death message when you killed that player.
Re : Video: SA-MP 0.3z Bug 1: Players in AFK mode can be killed -
HitnKill - 18.01.2014
It's better! Because lot of player abused ECHAP/F8 for don't take the damage on TDM and other... Very good idea !
And on SAMP we can't detect directly when an player ECHAP/...
Re: Video: SA-MP 0.3z Bug 1: Players in AFK mode can be killed -
StreetGT - 18.01.2014
No more ESC buguse.
Re: Video: SA-MP 0.3z Bug 1: Players in AFK mode can be killed -
ev0lution - 18.01.2014
Quote:
Originally Posted by Jefff
Should be function bool:IsPlayerPaused(playerid) because checking with timer and OPU is slow
|
You don't need to use a timer, you can use GetTickCount to store the last update time of the player in OnPlayerUpdate, and to check if they're paused or timing out, check if (GetTickCount() - last update time) is more than 1 or 2 seconds. That is probably how any such native function would work anyway, because once the client pauses it stops sending updates, so it couldn't notify the server any other way.
If this is an intended feature then it's fantastic, 10/10 - pausing to avoid death was always very annoying to deal with.
Re: Video: SA-MP 0.3z Bug 1: Players in AFK mode can be killed -
Edvin - 18.01.2014
Quote:
Originally Posted by Jefff
Should be function bool:IsPlayerPaused(playerid) because checking with timer and OPU is slow
|
Very good idea, checking if the player is paused without timers or anything would be better.
EDIT: Bug confirmed.
Re: Video: SA-MP 0.3z Bug 1: Players in AFK mode can be killed -
..Bobby.. - 22.01.2014
Fixed...
Re: Video: SA-MP 0.3z Bug 1: Players in AFK mode can be killed -
Zhao - 22.01.2014
This seems to have been removed in RC3. Which is unfortunate because it was a good thing against people who pause to avoid death. We had OnPlayerWeaponShot to prevent this if we wanted to.