How to make teams I really NEED it !!
#9

pawn Код:
enum pInfo
{
    pTeam
}
new PlayerInfo[MAX_PLAYERS][pInfo];
public OnPlayerSpawn(playerid)
{
    if(PlayerInfo[playerid][pTeam] == TEAMID)
    {
        //DO SOMETHING HERE
    }
    return 1;
}

CMD:yourcommand(playerid,params[])
{
    if(PlayerInfo[playerid][pTeam] == TEAMID)
    {
        //DO SOMETHING HERE
        return 1;
    }
    else { SendClientMessage(playerid, color, "Your not in TEAMID"); return 1; }
    return 1;
}
Reply


Messages In This Thread
How to make teams I really NEED it !! - by YanLanger - 30.06.2014, 17:17
Re: How to make teams I really NEED it !! - by YanLanger - 30.06.2014, 17:26
Re : How to make teams I really NEED it !! - by Clad - 30.06.2014, 17:34
Re: How to make teams I really NEED it !! - by YanLanger - 30.06.2014, 17:49
Re: How to make teams I really NEED it !! - by Twizted - 30.06.2014, 17:52
Re: How to make teams I really NEED it !! - by YanLanger - 30.06.2014, 17:54
Re: How to make teams I really NEED it !! - by Twizted - 30.06.2014, 17:57
Re: How to make teams I really NEED it !! - by YanLanger - 30.06.2014, 17:59
Re: How to make teams I really NEED it !! - by Dziugsas - 30.06.2014, 18:05
Re: How to make teams I really NEED it !! - by Juvanii - 30.06.2014, 22:14

Forum Jump:


Users browsing this thread: 7 Guest(s)