10.05.2014, 17:57
Hello again. I want to create my own weapon damage system. But which function is checking how much damage which weapon take anyone know? I was searching but I didn`t find.. Anyone?
public OnPlayerTakeDamage(playerid, issuerid, Float: amount, weaponid)
{
new Float:HP;
GetPlayerHealth(playerid, HP);
if(weaponid == /*weapon id*/) SetPlayerHealth(playerid, /*the player's HP - normally it follows "HP - x", where x is the ammount of damage taken by each shot*/);
return 1;
}