31.12.2011, 23:04
PHP код:
public OnPlayerTakeDamage(playerid, issuerid, Float:amount, weaponid)
{
if(issuerid != INVALID_PLAYER_ID)
{
new rand = 10 + random(10);
new Float:health;
GetPlayerHealth(playerid, health);
if(weaponid == 24) SetPlayerHealth(playerid,health-rand);
if(weaponid == 22) SetPlayerHealth(playerid,health-rand);
}
return 1;
}
What is wrong?