SA-MP Forums Archive
Starting Skin - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Starting Skin (/showthread.php?tid=551032)



Starting Skin - lwilson - 16.12.2014

Код:
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


Re: Starting Skin - XStormiest - 16.12.2014

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


Re: Starting Skin - AdHaM612 - 16.12.2014

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;
}



Re: Starting Skin - XStormiest - 16.12.2014

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;
}



Re: Starting Skin - lwilson - 16.12.2014

What if More Than 1 Skin?