18.03.2014, 11:12
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
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);
}