pawn Код:
ClassSel_SetupCharSelection(playerid)
{
new Keys,ud,lr;
GetPlayerKeys(playerid,Keys,ud,lr);
if( (Keys & KEY_FIRE) || (Keys & KEY_SECONDARY_ATTACK) )
{
PlayerInfo[playerid][Skin] = GetPlayerSkin(playerid);
TogglePlayerControllable(playerid, 1);
SpawnPlayer(playerid);
return 1;
}
if(lr > 0)
{
switch (PlayerInfo[playerid][Org])
{
case 1:
{
if(GetPlayerSkin(playerid) == 265) return SetPlayerSkin(playerid, 266);
if(GetPlayerSkin(playerid) == 266) return SetPlayerSkin(playerid, 267);
if(GetPlayerSkin(playerid) == 267) return SetPlayerSkin(playerid, 280);
}
case 2:
{
if(GetPlayerSkin(playerid) == 285) return SetPlayerSkin(playerid, 286);
if(GetPlayerSkin(playerid) == 286) return SetPlayerSkin(playerid, 285);
}
else if(lr < 0)
{
switch (PlayerInfo[playerid][Org])
{
case 1:
{
if(GetPlayerSkin(playerid) == 288) return SetPlayerSkin(playerid, 284);
if(GetPlayerSkin(playerid) == 284) return SetPlayerSkin(playerid, 283);
if(GetPlayerSkin(playerid) == 283) return SetPlayerSkin(playerid, 282);
}
case 2:
{
if(GetPlayerSkin(playerid) == 286) return SetPlayerSkin(playerid, 285);
if(GetPlayerSkin(playerid) == 285) return SetPlayerSkin(playerid, 286);
}
}
}
return 1;
}
O problema й que nгo alterna as skins no LEFT and RIGHT, e nгo seleciona a skin no LMB