22.07.2012, 20:13
If you're using SetPlayerTeam to set teams, it's easy you can use GetPlayerTeam to get a player's team, example:
pawn Код:
// in your command
if(GetPlayerTeam(playerid) != TEAM_BALLAS) // if in ballas team
{
// Code ..
return SendClientMessage(playerid, -1, "You need to be at ballas team to use this command!"); // error message
}