how to do an anti teamkill?
#1

hello everybody, well i have a doubt, i need to do a anti teamkill for a server, the idea is that the player puts a command like /team1 and every player that is in /team1 doesn't get hurted when a teammate attacks it, does anyone knows how to do it, i already tried with SetPlayerTeam but it doesnt work for me plz i need some help

Cya'
Reply
#2

Set their team to the same team.. lol.
E.G.
OnPlayerSpawn(playerid)
{
if(Team[playerid] == 1) SetPlayerTeam(playerid,1);
return 1;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)