Starting Skin
#1

Код:
if(PlayerInfo[playerid][pSex] == 1) {
 		PlayerInfo[playerid][pSkin] = 299;
	} else {
   	PlayerInfo[playerid][pSkin] = 192;
    }
	SetPlayerSkin(playerid, 299);
	Refund(playerid);

	TogglePlayerControllable(playerid, true);
	return 1;
}
pSex == 1 = Male
pSex == 2 = Female

But even i choose Female always start with Skin 299 (It's Male) Little Help Please
Reply
#2

pawn Код:
if(PlayerInfo[playerid][pSex] == 1)
       PlayerInfo[playerid][pSkin] = 299;
     else
       PlayerInfo[playerid][pSkin] = 192;
   
     Refund(playerid);
     TogglePlayerControllable(playerid, true);
     return 1;
}
Try this.
Reply
#3

pawn Код:
if(PlayerInfo[playerid][pSex] == 1) {
        PlayerInfo[playerid][pSkin] = 299;
                SetPlayerSkin(playerid,299);
    } else {
    PlayerInfo[playerid][pSkin] = 192;
        SetPlayerSkin(playerid,192);
    }
    Refund(playerid);

    TogglePlayerControllable(playerid, true);
    return 1;
}
Reply
#4

Lol now I see, thanks AdHaM, I forgot he actually forgot to set player's skin.
pawn Код:
if(PlayerInfo[playerid][pSex] == 1)
       PlayerInfo[playerid][pSkin] = 299;
     else
       PlayerInfo[playerid][pSkin] = 192;
   
     SetPlayerSkin(playerid, PlayerInfo[playerid][pSkin]);
     Refund(playerid);
     TogglePlayerControllable(playerid, true);
     return 1;
}
Reply
#5

What if More Than 1 Skin?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)