need Help
#1

i have team cop and team civi and i wanted to do anti team kill but just for cops... not and for civilians
i mean when a cop to not get damages.
so i added this it works but when i select civilian team i get slapped and warned for team kill agains other civilians
so can anyone tell me how to do it just for cops
pawn Код:
public OnPlayerTakeDamage(playerid, issuerid, Float: amount, weaponid)
{
    if(gTeam[issuerid] == gTeam[playerid]) // here how do i add if gteam cop attacks other cops
    {
        GameTextForPlayer(issuerid,"~r~Don't attack your team mates!", 3000, 3);
    }
Reply


Messages In This Thread
need Help - by iThePunisher - 18.03.2014, 11:12
Re: need Help - by VishvaJeet - 18.03.2014, 13:22
Re: need Help - by MuhoX - 18.03.2014, 13:33

Forum Jump:


Users browsing this thread: 1 Guest(s)