TEAM_x commands
#2

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
}
Reply


Messages In This Thread
TEAM_x commands - by SumX - 22.07.2012, 19:47
Re: TEAM_x commands - by [KHK]Khalid - 22.07.2012, 20:13
Re: TEAM_x commands - by SumX - 22.07.2012, 20:23
Re: TEAM_x commands - by [KHK]Khalid - 22.07.2012, 20:25

Forum Jump:


Users browsing this thread: 1 Guest(s)