TDM teams
#1

Hey I'm having some trouble with adding more than 1 skin for each team, I've tried a variety of things and it either doesn't work or it would be 4v2 and on the RequestClass section some cops have CRIMINALS over them and some criminals have COPS, how would I go about adding more than 1 skin for each team? This is the tutorial I got the script from.

https://sampforum.blast.hk/showthread.php?tid=346614
Reply
#2

pawn Код:
new YourTeamNameSkins[] = {
    8,
    42,
    6
};

//OnplayerSpawn
switch(gTeam[playerid])
             {
                  case TEAM_YourTeamName:
                  {
                       
                        SetPlayerSkin(playerid, YourTeamNameSkin[random(3)]);
     return 1;

}

//rest of your onplayerspawn code/other teams

//Sorry for the terrible indentations, forums broke it
Just took a little of my own code, it should give you a basic idea of what to do.
Reply
#3

Quote:
Originally Posted by (*|Flake|*)
Посмотреть сообщение
pawn Код:
new YourTeamNameSkins[] = {
    8,
    42,
    6
};

//OnplayerSpawn
switch(gTeam[playerid])
             {
                  case TEAM_YourTeamName:
                  {
                       
                        SetPlayerSkin(playerid, YourTeamNameSkin[random(3)]);
     return 1;

}

//rest of your onplayerspawn code/other teams

//Sorry for the terrible indentations, forums broke it
Just took a little of my own code, it should give you a basic idea of what to do.
That would work but the GameModeText section where you see that names of the teams above the player's heads would not be updated.
Reply
#4

Quote:
Originally Posted by Wizardking
Посмотреть сообщение
That would work but the GameModeText section where you see that names of the teams above the player's heads would not be updated.
pawn Код:
public OnPlayerRequestClass(playerid, classid)
{
        switch(classid)
        {
        case 0:
        {
            GameTextForPlayer(playerid, "TeamName", 5000, 2);
       
        }
        case 1:
        {
       
        //Rest of your OnplayerRequestClass stuff here
        //Each class is a team according to your AddPlayerClass
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)