SetPlayerTeam - TEAM SHoot
#1

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
Reply
#2

pawn Код:
#define UnsetPlayerTeam(%0) SetPlayerTeam(%0, NO_TEAM)
And use it like this:

pawn Код:
//...
UnsetPlayerTeam(playerid);
//...
Reply
#3

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)