19.08.2014, 06:50
I need script for one hit kill for hitman with sniper?
Could anyone help me?
Could anyone help me?
public OnPlayerTakeDamage(playerid, issuerid, Float:amount, weaponid, bodypart)
{
if(issuerid != INVALID_PLAYER_ID && issuerid != playerid) //If the player who issued it was not an invalid player or the player themself
{
if(weaponid == 34) SetPlayerHealth(playerid, 0.0); //Kill the player
}
return 1;
}
if(weaponid == 34 && PlayerInfo[issuerid][pMember] == 8) SetPlayerHealth(playerid, 0.0);