19.07.2017, 14:31
Here you go, Just an example.
Edit it for youself.
Edit it for youself.
PHP код:
public OnPlayerTakeDamage(playerid, issuerid, Float: amount, weaponid, bodypart)
{
if (Logged[playerid]==1 && issuerid == INVALID_PLAYER_ID)
{
new Float:hp;
if(weaponid == 54) GetPlayerHealth(playerid, hp), hp+=amount, SetPlayerHealth(playerid, hp);
}
return 1;
}