[HELP] Clothes Store - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: [HELP] Clothes Store (
/showthread.php?tid=73234)
[HELP] Clothes Store -
Dol - 13.04.2009
I'm using Carlito's Roleplay and I was wondering if it's possible to make a clothes command like in LA-RP. Right now it uses this cheap /buyclothes [skinid] system, I would like it to be visual.
This is the code of the /buyclothes [skinid] skin:
Код:
}
if(strcmp(cmd, "/buyclothes", true) == 0)
{
if(IsPlayerConnected(playerid))
{
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_HOWTO1, "[How-To] /buyclothes [skinid]");
return 1;
}
new id = strval(tmp);
for(new i = 0; i < sizeof(Businesses); i++)
{
if (PlayerToPoint(25.0, playerid,Businesses[i][ExitX], Businesses[i][ExitY], Businesses[i][ExitZ]))
{
if(GetPlayerVirtualWorld(playerid) == i)
{
if(Businesses[i][BizType] == 6)
{
if(Businesses[i][Products] != 0)
{
if(GetPlayerCash(playerid) >= 100)
{
if(IsACopSkin(id) == 0)
{
if(IsValidSkin(id))
{
SetPlayerSkin(playerid,id);
GivePlayerCash(playerid,-100);
Businesses[i][Products]--;
Businesses[i][Till]+=100;
SendClientMessage(playerid, COLOR_GREEN, "Clothes purchased, $-100.");
SaveBusinesses();
return 1;
}
}
}
}
}
}
}
}
}
return 1;
Please help me!
Re: [HELP] Clothes Store -
Lastman - 13.04.2009
make a menu, i did it for mine on same gm
Re: [HELP] Clothes Store -
Dol - 13.04.2009
How?
Re: [HELP] Clothes Store -
Lastman - 13.04.2009
https://sampwiki.blast.hk/wiki/Creating_a_simple_Menu i did that
Re: [HELP] Clothes Store -
Dol - 13.04.2009
That doesnt make it visual either, just a menu with the ID's in it...
Re: [HELP] Clothes Store -
Lastman - 14.04.2009
well you can just describe the skin in menu option, if u want the skin to be seen. Take the code from LARP itself.