How to Set Two Skins for one Faction/Team
#5

make another dialog let it be its id skin selection
first define it @ top of the script
PHP Code:
#define DIALOG_SKIN 456 //change the no according to your wish 
now on this part
PHP Code:
 if(classid == 0) {
        
SetPlayerSkin(playerid287);
        
GameTextForPlayer(playerid,"~G~Green",1000,4);
        
SetPlayerColor(playeridGREEN_COLOR);
        
gTeam[playerid] = 0;
            
ShowPlayerDialog(playerid,DIALOG_SKIN,DIALOG_STYLE_LIST,"Select Skin","Skin 1 for class 0 \nSkin2 for class 0");//name it as your own wish but remember this is only for this class
}
     if(
classid == 1) {
        
SetPlayerSkin(playerid124);
        
GameTextForPlayer(playerid,"~Y~Yellow",1000,4);
        
SetPlayerColor(playeridYELLOW_COLOR);
        
gTeam[playerid] = 2;
  
ShowPlayerDialog(playerid,DIALOG_SKIN,DIALOG_STYLE_LIST,"Select Skin","Skin for class 1 \nSkin 2 class 1");//name it as your own wish but remember this is only for this class
}
//do same for rest.................. 
now on ondialogresponse
PHP Code:
if(dialogid == DIALOG_SKIN)
{
if(
response)
{
if( 
gTeam[playerid] == 0)//for the team 1
{
switch(
listitem)
{
case 
: return SetPlayerSkin(playerid,skinidhere);
case 
1:return SetPlayerSkin(playerid,skinidhere);
}
}
if( 
gTeam[playerid] == 1)//for the team 2
{
switch(
listitem)
{
case 
: return SetPlayerSkin(playerid,skinidhere);
case 
1:return SetPlayerSkin(playerid,skinidhere);
}
}
}

i personally dont tested it but it works as you want
Reply


Messages In This Thread
How to Set Two Skins for one Faction/Team - by SaiyanZ - 16.04.2016, 13:38
Re: How to Set Two Skins for one Faction/Team - by [WSF]ThA_Devil - 16.04.2016, 13:41
Re: How to Set Two Skins for one Faction/Team - by SyS - 16.04.2016, 13:44
Re: How to Set Two Skins for one Faction/Team - by SaiyanZ - 16.04.2016, 14:28
Re: How to Set Two Skins for one Faction/Team - by SyS - 16.04.2016, 15:24
Re: How to Set Two Skins for one Faction/Team - by SaiyanZ - 17.04.2016, 11:47
Re: How to Set Two Skins for one Faction/Team - by Susenkus - 12.03.2019, 22:43
Re: How to Set Two Skins for one Faction/Team - by Susenkus - 13.03.2019, 17:28

Forum Jump:


Users browsing this thread: 2 Guest(s)