How to Make Text for Team Selection?
#7

k, ill explain more:

U add ur skins like this:

pawn Code:
AddPlayerClass(/*blablabla*/);//skin or class 1
AddPlayerClass(/*blablabla*/);//skin or class 2
AddPlayerClass(/*blablabla*/);//skin or class 3
Now in the callback OnPlayerRequestClass u tell the script what text u wanna have shown for what skin.
Like:

pawn Code:
if (classid == 0)//this means: when the player looks at the skin 1 it shows
    {
    GameTextForPlayer(playerid, "Human", 500, 5);//the text humans
    gTeam[playerid] = TEAM1;//sets this skin to team1
    SetPlayerTeam(playerid,TEAM1);
    }
    else if (classid == 1)//and then if the skin is the 2nd skin we have set up with AddPlayerClass
    {
   //...do stuff...
    }
//and so on
Also u should use AddPlayerClassEx for setting up teams.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)