Using the model previewing system
#4

Thanks, any idea how I could use this on an NGG edit for the /buyclothes cmd? Here's its code:

CMD:buyclothes(playerid, params[])
{
if(IsAtClothShop(playerid))
{
ShowPlayerDialog( playerid, 3495, DIALOG_STYLE_INPUT, "Skin Selection","Please enter a Skin ID!\n\nNote: Skin Changes cost $2500.", "Buy", "Cancel" );
}
else
{
SendClientMessageEx( playerid, COLOR_WHITE, " You are not in a Clothing Shop!" );
}
return 1;
}

if( dialogid == 3495) //buyclothes
{
new skinid = strval(inputtext);
if(!response)
{
}
else
{
if(IsValidSkin(strval(inputtext)) == 0)
{
if(GetPVarInt(playerid, "freeSkin") == 1)
{
SendClientMessageEx(playerid, COLOR_GREY, "That skin ID is either invalid or restricted to faction or family!");
ShowPlayerDialog( playerid, 3495, DIALOG_STYLE_INPUT, "Skin Selection","Please enter a Skin ID!", "Buy", "Cancel" );
}
else
{
SendClientMessageEx(playerid, COLOR_GREY, "That skin ID is either invalid or restricted to faction or family!");
ShowPlayerDialog( playerid, 3495, DIALOG_STYLE_INPUT, "Skin Selection","Please enter a Skin ID!\n\nNote: Skin Changes cost $2500.", "Buy", "Cancel" );
}
}
else
{
if(GetPVarInt(playerid, "freeSkin") == 1)
{
PlayerInfo[playerid][pModel] = skinid;
SetPlayerSkin(playerid, skinid);
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] = skinid;
SetPlayerSkin(playerid, skinid);
}
}
}
return 1;
}

Basically I need it converted to the model selection system as a pose to the shitty dialog.
Reply


Messages In This Thread
Using the model previewing system - by DamonD - 08.11.2013, 21:50
Re: Using the model previewing system - by Vege - 08.11.2013, 21:53
Re: Using the model previewing system - by PT - 08.11.2013, 22:02
Re: Using the model previewing system - by DamonD - 08.11.2013, 22:22
Re: Using the model previewing system - by DamonD - 09.11.2013, 14:52
Re: Using the model previewing system - by DamonD - 16.11.2013, 11:36

Forum Jump:


Users browsing this thread: 3 Guest(s)