Posts: 194
Threads: 79
Joined: Jun 2013
Reputation:
0
How do I use the new modeling preview system?
Posts: 73
Threads: 18
Joined: Sep 2013
Reputation:
0
Use adri1's edit of zamaroht's textdraw editor t create textdraw preview models ingame!
Then get the exported code onto your GM/filterscript under OnGameModeInit and use it anywhere you like by using showplayertextdraw...
That's it I guess...
Posts: 194
Threads: 79
Joined: Jun 2013
Reputation:
0
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.