OnPlayerWeaponShot Help?
#1

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?


PHP код:
public OnPlayerWeaponShot(playeridweaponidhittypehitidFloat:fXFloat:fYFloat:fZ

    if(
hittype == BULLET_HIT_TYPE_PLAYER
    { 
        if(
gTeam[hitid] == IsPlayerACop
        { 
            
SetPlayerWantedLevel(playeridGetPlayerWantedLevel(playerid) + 4);  
        } 
    } 
    return 
1

Reply


Messages In This Thread
OnPlayerWeaponShot Help? - by RedRex - 26.08.2017, 06:11
Re: OnPlayerWeaponShot Help? - by RedRex - 26.08.2017, 23:59
Re: OnPlayerWeaponShot Help? - by aoky - 27.08.2017, 00:04
Re: OnPlayerWeaponShot Help? - by RedRex - 27.08.2017, 00:08
Re: OnPlayerWeaponShot Help? - by Kane - 27.08.2017, 00:09
Re: OnPlayerWeaponShot Help? - by RedRex - 27.08.2017, 00:12
Re: OnPlayerWeaponShot Help? - by aoky - 27.08.2017, 00:13
Re: OnPlayerWeaponShot Help? - by RedRex - 27.08.2017, 00:18
Re: OnPlayerWeaponShot Help? - by aoky - 27.08.2017, 00:31
Re: OnPlayerWeaponShot Help? - by RedRex - 27.08.2017, 00:37

Forum Jump:


Users browsing this thread: 1 Guest(s)