11.11.2011, 12:42
GetPlayerHealth doesn't work like that.
You have to store the health in a float, like this:
Wow, that's just.. wow..
You're setting that player's score to -1. You aren't decreasing it. If you want to decrease it you need to use this:
You have to store the health in a float, like this:
pawn Код:
new Float:hp;
GetPlayerHealth(id, hp);
You're setting that player's score to -1. You aren't decreasing it. If you want to decrease it you need to use this:
pawn Код:
SetPlayerScore(id, GetPlayerScore(id)-10);