SORRY WEGEN DOPPEL POST
Hallo,
Ich habe mal ein skin shop erstellt, mit /clothes so und wenn ich /clothes eingebe kann ich eigentlich mit
shift skins aussuchen, aber wenn shift drücke wird mir einfach kein skin angezeit da ist nur mein statdert skin.
Bitte um HILFE
Hier das mit shift:
if(newkeys == KEY_JUMP)
{
if(ChooseSkin[playerid] == 1)
{
new Skin = GetPlayerSkin(playerid);
//Männlichs
if(Spieler[playerid][Team] == 0)
{
if(Skin == ChooseableSkins[0])
{
SetPlayerSkin(playerid, ChooseableSkins[1]);
}
else if(Skin == ChooseableSkins[1])
{
SetPlayerSkin(playerid, ChooseableSkins[2]);
}
else if(Skin == ChooseableSkins[2])
{
SetPlayerSkin(playerid, ChooseableSkins[3]);
}
else if(Skin == ChooseableSkins[3])
{
SetPlayerSkin(playerid, ChooseableSkins[4]);
}
else if(Skin == ChooseableSkins[4])
{
SetPlayerSkin(playerid, ChooseableSkins[5]);
}
else if(Skin == ChooseableSkins[5])
{
SetPlayerSkin(playerid, ChooseableSkins[6]);
}
else if(Skin == ChooseableSkins[6])
{
SetPlayerSkin(playerid, ChooseableSkins[7]);
}
else if(Skin == ChooseableSkins[7])
{
SetPlayerSkin(playerid, ChooseableSkins[8]);
}
else if(Skin == ChooseableSkins[8])
{
SetPlayerSkin(playerid, ChooseableSkins[9]);
}
else if(Skin == ChooseableSkins[9])
{
SetPlayerSkin(playerid, ChooseableSkins[10]);
}
else if(Skin == ChooseableSkins[10])
{
SetPlayerSkin(playerid, ChooseableSkins[11]);
}
else if(Skin == ChooseableSkins[11])
{
SetPlayerSkin(playerid, ChooseableSkins[12]);
}
else if(Skin == ChooseableSkins[12])
{
SetPlayerSkin(playerid, ChooseableSkins[13]);
}
else if(Skin == ChooseableSkins[13])
{
SetPlayerSkin(playerid, ChooseableSkins[14]);
}
else if(Skin == ChooseableSkins[14])
{
SetPlayerSkin(playerid, ChooseableSkins[0]);
}
//Weiblich
else if(Skin == ChooseableSkinsWoman[0])
{
SetPlayerSkin(playerid, ChooseableSkinsWoman[1]);
}
else if(Skin == ChooseableSkinsWoman[1])
{
SetPlayerSkin(playerid, ChooseableSkinsWoman[2]);
}
else if(Skin == ChooseableSkinsWoman[2])
{
SetPlayerSkin(playerid, ChooseableSkinsWoman[3]);
}
else if(Skin == ChooseableSkinsWoman[3])
{
SetPlayerSkin(playerid, ChooseableSkinsWoman[4]);
}
else if(Skin == ChooseableSkinsWoman[4])
{
SetPlayerSkin(playerid, ChooseableSkinsWoman[5]);
}
else if(Skin == ChooseableSkinsWoman[5])
{
SetPlayerSkin(playerid, ChooseableSkinsWoman[6]);
}
else if(Skin == ChooseableSkinsWoman[6])
{
SetPlayerSkin(playerid, ChooseableSkinsWoman[7]);
}
else if(Skin == ChooseableSkinsWoman[7])
{
SetPlayerSkin(playerid, ChooseableSkinsWoman[8]);
}
else if(Skin == ChooseableSkinsWoman[8])
{
SetPlayerSkin(playerid, ChooseableSkinsWoman[9]);
}
else if(Skin == ChooseableSkinsWoman[9])
{
SetPlayerSkin(playerid, ChooseableSkinsWoman[10]);
}
else if(Skin == ChooseableSkinsWoman[10])
{
SetPlayerSkin(playerid, ChooseableSkinsWoman[11]);
}
else if(Skin == ChooseableSkinsWoman[11])
{
SetPlayerSkin(playerid, ChooseableSkinsWoman[12]);
}
else if(Skin == ChooseableSkinsWoman[12])
{
SetPlayerSkin(playerid, ChooseableSkinsWoman[13]);
}
else if(Skin == ChooseableSkinsWoman[13])
{
SetPlayerSkin(playerid, ChooseableSkinsWoman[0]);
}
}
}
}
Hier noch ein Plugin:
public ChoseSkin(playerid)
{
TogglePlayerControllable(playerid,0);
ChooseSkin[playerid] = 1;
SetPlayerFacingAngle(playerid, 1.8513);
SetPlayerCameraPos(playerid, 164.4374,-80.8010,1002.93);
SetPlayerCameraLookAt(playerid, 161.3135,-84.4192,1001.8047);
SetPlayerInterior(playerid,18);
SetPlayerVirtualWorld(playerid,playerid);
ClearChatbox(playerid,8);
SendClientMessage(playerid, COLOR_WEISS, "Du kannst dein Skin mit der {40A5FE}Shift {FFFFFF}Taste wechseln.");
SendClientMessage(playerid, COLOR_WEISS, "Mit der {40A5FE}Enter {FFFFFF}Taste wählst du den Skin aus.");
if(Spieler[playerid][Team] == 0)
{
if(Spieler[playerid][Geschlecht] == 1)
{
SetPlayerSkin(playerid, ChooseableSkins[0]);
}
else if(Spieler[playerid][Geschlecht] == 2)
{
SetPlayerSkin(playerid, ChooseableSkinsWoman[0]);
}
}
return 1;
}
MFG
Kania :>