SetPlayerTeam - TEAM SHoot - 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: SetPlayerTeam - TEAM SHoot (
/showthread.php?tid=311377)
SetPlayerTeam - TEAM SHoot -
spd_sahil - 16.01.2012
okay is there anyway i can enable and disable team shooting if im using SetPlayerTeam to set player's Teams..
ALSO
Say im in a minigame.. and minigame has 2 teams.. they fight each other.. team shoot is off.. that is default.. so when they get out of the game.. how do i reset their teams. so that the team shoot effect is still not on
AW: SetPlayerTeam - TEAM SHoot -
BigETI - 16.01.2012
pawn Код:
#define UnsetPlayerTeam(%0) SetPlayerTeam(%0, NO_TEAM)
And use it like this:
pawn Код:
//...
UnsetPlayerTeam(playerid);
//...
Re: SetPlayerTeam - TEAM SHoot -
henry jiggy - 16.01.2012
use an array with the player's ID number for your checks on who is on what team and only use SetPlayerTeam() for when you want to disable friendly fire example:
SetPlayerTeam(playerid,gteam[playerid]);
and to enable it the thing BigETI said above