Quote:
Originally Posted by hossa
I've had a small problem with weapon-config, I'm not sure what's wrong.
PHP код:
public OnPlayerDamage(&playerid, &Float:amount, &issuerid, &weapon, &bodypart)
{
new Float:hp;
if(team[playerid] == 1)
{
if(weapon == 34)
{
GetPlayerHealth(playerid, hp);
SetPlayerHealth(playerid, hp -34);
}
}
return 1;
}
The problem is, Once The player hits 0 or less than 0, The player stops taking damage and doesn't die.
|
What are you trying to accomplish?