26.08.2017, 06:11
Hi. I need your help with OnPlayerWeaponShot How to i can create a When Player Take 1shot From Warrent the Cops cannot arrest him if he were wanted +4star. How to do that? I've adding this but when I push him i'll got +4 but i dont want Like this
Example: YOU CANNOT ARREST THIS PLAYER BECAUSE HE SHOOTING YOU!! Do you know what i mean? If a warrent shooted cops and the cop need arrest him Make it Cannot How?
Example: YOU CANNOT ARREST THIS PLAYER BECAUSE HE SHOOTING YOU!! Do you know what i mean? If a warrent shooted cops and the cop need arrest him Make it Cannot How?
PHP код:
public OnPlayerWeaponShot(playerid, weaponid, hittype, hitid, Float:fX, Float:fY, Float:fZ)
{
if(hittype == BULLET_HIT_TYPE_PLAYER)
{
if(gTeam[hitid] == IsPlayerACop)
{
SetPlayerWantedLevel(playerid, GetPlayerWantedLevel(playerid) + 4);
}
}
return 1;
}