One more player in team?
#1

Hi!


I wounder if there are anyway to add

AddPlayerClass to a team I just have 1

AddPlayerClass in every team.. How could I add more to a team/class ??..

I'm not full sure how to do becuase I haven't workt with just this "team system"
Before..

Abit of a code:

pawn Код:
public OnPlayerRequestClass( playerid, classid ) //  This is called when a player is on class selection
{
    switch ( classid )
    {
        case 0:
        {
            GameTextForPlayer( playerid, "~p~TEAM Clowns", 300, 3 );
            SetPlayerTeam( playerid, TEAM_ClOWNS);
            gTeam[playerid] = TEAM_ClOWNS; // Sets the player's team to TEAM_CLOWNS
        }

        case 1: // If the classid is 1
        {
            GameTextForPlayer( playerid, "~I~TEAM Hobos", 300, 3 );
            SetPlayerTeam( playerid, TEAM_HOBOS ); // Sets the player's team to TEAM_HOBOS
            gTeam[playerid] = TEAM_HOBOS;
        }

As I don't remember exactily what this team system is named so posted some code ^^ ...

Well maybe it's a mess with the explain.. Pretty hard to explain.. But I will try better if you don't understand.
Reply


Messages In This Thread
One more player in team? - by davve95 - 01.01.2013, 15:41
Re: One more player in team? - by [HK]Ryder[AN] - 01.01.2013, 15:53
Re: One more player in team? - by Chrillzen - 01.01.2013, 16:35
Re: One more player in team? - by davve95 - 01.01.2013, 17:37

Forum Jump:


Users browsing this thread: 1 Guest(s)