01.03.2013, 14:41
I have a problem that I can't click on Skin Cancel Prev and Next on the menu dialog.
PHP код:
public OnPlayerModelSelection(playerid, response, listid, modelid)
{
if(listid == skinlist)
{
if(response)
{
if(IsValidSkin(modelid) == 0)
{
if(GetPVarInt(playerid, "freeSkin") == 1)
{
SendClientMessageEx(playerid, COLOR_GREY, "That skin ID is either invalid or restricted to faction or family!");
ShowModelSelectionMenu(playerid, skinlist, "Select Skin");
}
else
{
SendClientMessageEx(playerid, COLOR_GREY, "That skin ID is either invalid or restricted to faction or family!");
ShowModelSelectionMenu(playerid, skinlist, "Select Skin");
}
}
else
{
if(GetPVarInt(playerid, "freeSkin") == 1)
{
PlayerInfo[playerid][pModel] = modelid;
SetPlayerSkin(playerid, modelid);
SetPVarInt(playerid, "freeSkin", 0);
}
else
{
if(GetPlayerCash(playerid) < 2500) return SendClientMessageEx(playerid, COLOR_GRAD2, "You can't afford these clothes!");
GameTextForPlayer(playerid, "~g~Skin purchased! ~n~ ~r~- $2500", 2000, 1);
GivePlayerCash(playerid, -2500);
PlayerInfo[playerid][pModel] = modelid;
SetPlayerSkin(playerid, modelid);
}
}
}
}
return 1;
}
PHP код:
CMD:buyclothes(playerid, params[])
{
if(IsAtClothShop(playerid))
{
ShowModelSelectionMenu(playerid, skinlist, "Skin cost: 2500$");
}
else
{
SendClientMessageEx( playerid, COLOR_WHITE, " You are not in a Clothing Shop!" );
}
return 1;
}