admin team?
#9

Here is a easier way.

pawn Code:
new gTeam[MAX_PLAYERS];
Forward
pawn Code:
forward SetPlayerTeamFromClass(playerid, classid);

On Gamemode init add this

pawn Code:
AddPlayerClassEx(1,100,0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
If not this
pawn Code:
AddPlayerClass(1,100,0, 0, 0, 0, 0, 0, 0, 0, 0, 0);

On the PlayerRequestSpawn put this

pawn Code:
public OnPlayerRequestSpawn(playerid)
{
    SetPlayerTeamFromClass(playerid, classid);
    return 1;
}
Easier and simple to make more class's

Then on the setupplayerteamclass put thispublic

pawn Code:
public SetPlayerTeamFromClass(playerid, classid)
{
    {
    if (classid == 100))
    {
        gTeam[playerid] = Admin;
        GameTextForPlayer(playerid, "Admin", 500, 5);
                SendClientMessage(playerid, /*Your color here example*/COLOR_RED, "This class is only for administrators");
        return 1;
    }
        return 1;
}
Reply


Messages In This Thread
admin team? - by oscar7610 - 23.04.2012, 19:01
Re: admin team? - by Jows - 23.04.2012, 19:09
Re: admin team? - by oscar7610 - 23.04.2012, 19:22
Re: admin team? - by Jows - 23.04.2012, 19:34
Re: admin team? - by oscar7610 - 23.04.2012, 20:50
Re: admin team? - by zSuYaNw - 23.04.2012, 20:56
Re: admin team? - by Elysian` - 23.04.2012, 21:25
Re: admin team? - by Burridge - 23.04.2012, 22:12
Re: admin team? - by ViruZz - 23.04.2012, 23:35
Re: admin team? - by Elysian` - 24.04.2012, 15:54

Forum Jump:


Users browsing this thread: 3 Guest(s)