29.08.2011, 17:14
k, ill explain more:
U add ur skins like this:
Now in the callback OnPlayerRequestClass u tell the script what text u wanna have shown for what skin.
Like:
Also u should use AddPlayerClassEx for setting up teams.
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
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