Team - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Team (
/showthread.php?tid=542242)
Team -
NeverGetAlone - 18.10.2014
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
Respuesta: Team -
!R1Ch@rD! - 18.10.2014
You want the same team does not want to kill or be killed? I do not understand
Re: Team -
IceBilizard - 18.10.2014
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
Re: Team -
Quickie - 18.10.2014
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]);
Re: Team -
Quickie - 18.10.2014
Quote:
Originally Posted by IceBilizard
|
NO_TEAM is defined as id 255 not 0
cuz player in team 0 CANT hurt each other
like other teams