Posts: 181
Threads: 10
Joined: Nov 2008
Reputation:
0
It will not. I posted this in the sa-mp bug report.
In many scenarios this function returns false values.
This function is unreliable.
Posts: 123
Threads: 5
Joined: Mar 2008
Reputation:
0
are you sure you don't ResetPlayerWeapons above this code?
Posts: 181
Threads: 10
Joined: Nov 2008
Reputation:
0
It doesn't matter, the function itself is bugged.
But yet besides that, when you die, sa-mp automaticly removes your weapons.
Posts: 303
Threads: 68
Joined: Dec 2008
Reputation:
0
When you die, your weapons automatically reset, you'll notice as soon as you die, look at the weapons. It changes to fist.
You could run it on a timer. Checking every second or two.
Then during the checks, to eliminate the possibility of checking while the player is dead. You can get their state, if it's wasted then return 1; to avoid gathering the weapon data.
Posts: 60
Threads: 23
Joined: Nov 2009
Reputation:
0
ok man
and
if i use onplayerdeath. it work ?