SA-MP Forums Archive
Using the model previewing system - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Using the model previewing system (/showthread.php?tid=474592)



Using the model previewing system - DamonD - 08.11.2013

How do I use the new modeling preview system?


Re: Using the model previewing system - Vege - 08.11.2013

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...


Re: Using the model previewing system - PT - 08.11.2013

use this; https://sampforum.blast.hk/showthread.php?tid=407045


Re: Using the model previewing system - DamonD - 08.11.2013

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.


Re: Using the model previewing system - DamonD - 09.11.2013

Anyone?


Re: Using the model previewing system - DamonD - 16.11.2013

Still not answered. -_-