pawn Код:
if(dialogid == 17)
{
if(!response) TogglePlayerControllable(playerid,1);
else
{
if(!strlen(inputtext)) return ShowPlayerDialog(playerid,17,DIALOG_STYLE_INPUT,"Select your Skin ID","Type the ID of the skin you wish to use: ","Select","Cancel");
new skinid = strval(inputtext);
switch (skinid)
{
case 1 .. 101, 108 .. 113, 119, 124 .. 162, 167 .. 172, 176 .. 273, 284, 289 .. 299:
{
SetPlayerSkin(playerid, skinid);
PlayerInfo[playerid][pSkin] = skinid;
SendClientMessage(playerid, COLOR_ORANGE, "Your Skin has been changed!");
TogglePlayerControllable(playerid,1);
GivePlayerCash(playerid, -350);
}
default:
{
SendClientMessage(playerid, COLOR_RED, "Invalid OR Faction Skin!");
ShowPlayerDialog(playerid,17,DIALOG_STYLE_INPUT,"Select your Skin ID","Type the ID of the skin you wish to use: ","Select","Cancel");
}
}
}
return 1;
}