08.12.2014, 13:16
hello how can I make the player receive wanted level when punch someone??
public OnPlayerGiveDamage(playerid, damagedid, Float: amount, weaponid, bodypart)
{
SetPlayerWantedLevel(playerid,level);
return 1;
}
public OnPlayerTakeDamage(playerid, issuerid, Float: amount, weaponid, bodypart)
{
if(issuerid != INVALID_PLAYER_ID)
{
if(weaponid == 0)
{
new level = GetPlayerWantedLevel(issuerid);
SetPlayerWantedLevel(issuerid, (level+1))
}
}
return 1;
}