Anti DeathMatch (OnPlayerTakeDamage)
#1

pawn Код:
if(gTeam[issuerid] == TEAM_COP || gTeam[playerid] == TEAM_CIVIL && GetPlayerWantedLevel(playerid) <=4)
{
    GetPlayerHealth(playerid, hp);
    GetPlayerArmour(playerid, armour);
    if(GetPlayerWeapon(issuerid))   SetPlayerHealth(playerid, hp-0);        SetPlayerArmour(playerid, armour-0);
}
For those that didn't understand what i am trying to do here,the answer is simple: i am trying to stop cops from killing innocent players with a wanted level below 4.
This is working 90% but it actually makes the civilians lose their health,if you use a weapon that shoots bullets fast,such as M4,MP5,etc.
So can anyone help me fix this? Fix as there won't be any health loss?

Thanks in advance.
Reply


Messages In This Thread
Anti DeathMatch (OnPlayerTakeDamage) - by [rG]Cold - 08.11.2014, 23:15
Respuesta: Anti DeathMatch (OnPlayerTakeDamage) - by EzeHermes - 08.11.2014, 23:26
Re: Anti DeathMatch (OnPlayerTakeDamage) - by [rG]Cold - 08.11.2014, 23:28
Re: Anti DeathMatch (OnPlayerTakeDamage) - by Banana_Ghost - 09.11.2014, 06:56
Re: Anti DeathMatch (OnPlayerTakeDamage) - by Quickie - 09.11.2014, 07:12
Re: Anti DeathMatch (OnPlayerTakeDamage) - by Banana_Ghost - 09.11.2014, 07:15
Re: Anti DeathMatch (OnPlayerTakeDamage) - by DavidBilla - 09.11.2014, 07:38
Re: Anti DeathMatch (OnPlayerTakeDamage) - by Pottus - 09.11.2014, 07:51
Re: Anti DeathMatch (OnPlayerTakeDamage) - by dominik523 - 09.11.2014, 08:27
Re: Anti DeathMatch (OnPlayerTakeDamage) - by Sasino97 - 09.11.2014, 09:20

Forum Jump:


Users browsing this thread: 1 Guest(s)