03.08.2017, 10:58
Do I want bigger baseball bats to do more damage?
When I used OnPlayerTakeDamage, I turned off pawno
Compiler error
When I used OnPlayerTakeDamage, I turned off pawno
PHP код:
public OnPlayerTakeDamage(playerid, issuerid, Float: amount, weaponid)
{
new Float:HP;
GetPlayerHealth(playerid, HP);
if(weaponid == 5) SetPlayerHealth(playerid, HP-10);
return 1;
}