#1

How i can make team kill (I mean kill own team)

I have setplayerteam but i want to damage same team, Because i want to players same team to duel
Reply
#2

You want the same team does not want to kill or be killed? I do not understand
Reply
#3

He means he want to remove anti-team kill from his script it must possible with

pawn Код:
public OnPlayerSpawn(playerid)
{
SetPlayerTeam(playerid, 0);
}
EDIT: You can read from

https://sampwiki.blast.hk/wiki/SetPlayerTeam
Reply
#4

Quote:
Originally Posted by NeverGetAlone
Посмотреть сообщение
How i can make team kill (I mean kill own team)

I have setplayerteam but i want to damage same team, Because i want to players same team to duel

pawn Код:
new pLastTeam[MAX_PLAYERS]; //global variable to store player last team

//before the duel;
pLastTeam[player1]=GetPlayerTeam(player1);
pLastTeam[player2]=GetPlayerTeam(player2);

SetPlayerTeam(player1,NO_TEAM);
SetPlayerTeam(player2,NO_TEAM);

//after the duel
SetPlayerTeam(player1,pLastTeam[player1]);
SetPlayerTeam(player2,pLastTeam[player2]);
Reply
#5

Quote:
Originally Posted by IceBilizard
Посмотреть сообщение
He means he want to remove anti-team kill from his script it must possible with

pawn Код:
public OnPlayerSpawn(playerid)
{
SetPlayerTeam(playerid, 0);
}
EDIT: You can read from

https://sampwiki.blast.hk/wiki/SetPlayerTeam
NO_TEAM is defined as id 255 not 0
cuz player in team 0 CANT hurt each other
like other teams
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)