Posts: 14
Threads: 7
Joined: Jul 2012
Reputation:
0
is player freeze ( TogglePlayerControllable ) I can kill him, its bug 0.3x or not ?
Posts: 977
Threads: 10
Joined: Apr 2011
Reputation:
0
Was the function behavior changed in 0.3x? It use to make the frozen player invincible.
Posts: 624
Threads: 38
Joined: Feb 2010
Reputation:
0
Before 0.3x players were invulnerable when frozen.
Beating and kicking does damage.
All weapons (except for RPGs, grenades and sniper rifles) do damage.
Explosions and fire (like from flame throwers) do nothing.
Drowning does nothing.
Tested with woot.
Posts: 434
Threads: 80
Joined: Oct 2008
Reputation:
0
Yes this had to be fixed
for rp dead, afk system ...
Max
Posts: 2,262
Threads: 260
Joined: Mar 2009
Reputation:
0
IT IS NOT A BUG.
But what I think should happen is freezing modes / types.
Posts: 977
Threads: 10
Joined: Apr 2011
Reputation:
0
If you are referring to earlier versions (I am yet to test anything on 0.3x) then no, players were invincible when they were frozen (TogglePlayerControllable(playerid, false)). I had MANY scripts all the way back from 0.2x relying on that to make players unable to be damaged. It may have been a bug or part of the API not being stable, but it sure was consistent (by that, I mean every time).
Posts: 977
Threads: 10
Joined: Apr 2011
Reputation:
0
Oh, gotcha. Sorry for the misunderstanding.
Posts: 406
Threads: 16
Joined: Nov 2007
Reputation:
0
What a tremendous shame. There was a "bug" (no idea if it was intended or not) with "The most popular cheat for sa-mp, which may or may not be censored on this forum", if you where frozen with TogglePlayerControllable, you would take damage if you were using it, and you wouldn't take damage if you wern't using it, was actually a fantastic cheat detection tool, as even when it was in panic mode, this detection would still work.
Posts: 434
Threads: 80
Joined: Oct 2008
Reputation:
0
So wi not simply add an param to the func?
TogglePlayerControlable(playerid,toggle,invulnerab ility);
Max
Posts: 1,767
Threads: 124
Joined: Mar 2010
Quote:
Originally Posted by scott1
So wi not simply add an param to the func?
TogglePlayerControlable(playerid,toggle,invulnerab ility);
Max
|
You can script it. But cameramove parameter would be good to have. But there's no chance i guess because in SA we did not seen frozen player with camera movements, only frozen camera and player.
Posts: 4,885
Threads: 57
Joined: Jun 2012
Reputation:
0
This is such an annoying fix and really causes problems with existing code that was based around the player not taking damage when TogglePlayerControllable() is used. I don't dispute the decision I dispute not being able to use the the old method.
Posts: 391
Threads: 46
Joined: Mar 2008
Reputation:
0
I also think that some of the functions shouldn't be changed in way how they work, to keep the compatiblity with the scripts.
Posts: 2,593
Threads: 34
Joined: Dec 2007
Old version TogglePlayerControllable(playerid, toggle); was better and normal ! with no kill! I dont know why he change this omg ;/ better add second function TogglePlayerControllableEx(playerid, toggle); and HERE hp can go down
Posts: 2,593
Threads: 34
Joined: Dec 2007
With GetPlayerHealth +TogglePlayerControllable + SetPlayerHealth? xD no thanks ! i want only freeze without chcecking player health