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
#2

if(GetPlayerTeam(playerid) == your_cop_team)
{
GameTextForPlayer(issuerid,"~r~Don't attack your team mates!", 3000, 3);
}
Reply
#3

Closed message by myself
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)