27.02.2013, 17:11
title says all?
public OnPlayerTakeDamage(playerid, issuerid, Float: amount, weaponid)
{
if(issuerid != INVALID_PLAYER_ID)
{
if(weaponid == 34)// id weapon
{
SetPlayerHealth(playerid, 50.0);
if (GetPlayerHealth(playerid,health) < 50.0)
{
SetPlayerHealth(playerid, 0.0);
}
} // two shoot to kill player
}
return 1;
}