SA-MP Forums Archive
[FilterScript] Buying clothes from shop[MF_Skins] - 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: Filterscripts (https://sampforum.blast.hk/forumdisplay.php?fid=17)
+--- Thread: [FilterScript] Buying clothes from shop[MF_Skins] (/showthread.php?tid=224191)

Pages: 1 2


Re: Buying clothes from shop[MF_Skins] - Ironboy - 08.03.2011

ty


Re: Buying clothes from shop[MF_Skins] - Ironboy - 13.04.2011

There is a new version.
You can download it from here

SolidFiles
MediaFire


Re: Buying clothes from shop[MF_Skins] - firestone - 18.05.2011

Nice! Bro!


Re: Buying clothes from shop[MF_Skins] - juraska - 18.05.2011

Nice i use this


Re: Buying clothes from shop[MF_Skins] - Ironboy - 26.05.2011

Thx


Re: Buying clothes from shop[MF_Skins] - Millionaire - 04.10.2011

Gang skins super


Re : Buying clothes from shop[MF_Skins] - TheBest6 - 04.10.2011

Thanks


Re: Buying clothes from shop[MF_Skins] - suhrab_mujeeb - 04.10.2011

Nice script but don't you think there is a little problem
Code:
case 0:
    	    {
	        	SetPlayerSkin(playerid,40);
	        	GivePlayerMoney(playerid,-1000);
				SendClientMessage(playerid,0xFF9900AA,"« You have bought this dress for $1000 »");
Dont you think you should use GetPlayerMoney?
for something like
Code:
        //under case 0 or 1 or 2 or .....
        if(GetPlayerMoney(playerid) < 1000)
        {
            SendClientMessage(playerid, COLOR_RED, "Hey looser, get some cash first");
        }
        else
        {
            SendClientMessage(playerid,0xFF9900AA, "« You have bought this dress for $1000 »");
            GivePlayerMoney(playerid,-1000);
        }
        return 1;
    }
because your code will give the player a skin even if he doesn't have cash and will take his cash too negative value, but the above code will check the player's cash before giving him a skin. Hope you understand the point.


Re: Buying clothes from shop[MF_Skins] - Ironboy - 04.10.2011

Quote:
Originally Posted by suhrab_mujeeb
View Post
Nice script but don't you think there is a little problem
Code:
case 0:
    	    {
	        	SetPlayerSkin(playerid,40);
	        	GivePlayerMoney(playerid,-1000);
				SendClientMessage(playerid,0xFF9900AA,"« You have bought this dress for $1000 »");
Dont you think you should use GetPlayerMoney?
for something like
Code:
        //under case 0 or 1 or 2 or .....
        if(GetPlayerMoney(playerid) < 1000)
        {
            SendClientMessage(playerid, COLOR_RED, "Hey looser, get some cash first");
        }
        else
        {
            SendClientMessage(playerid,0xFF9900AA, "« You have bought this dress for $1000 »");
            GivePlayerMoney(playerid,-1000);
        }
        return 1;
    }
because your code will give the player a skin even if he doesn't have cash and will take his cash too negative value, but the above code will check the player's cash before giving him a skin. Hope you understand the point.
This i released long before when i was a newbie,thats why its like that..


Respuesta: Buying clothes from shop[MF_Skins] - Zafiro - 04.10.2011

Awesome


Re: Buying clothes from shop[MF_Skins] - suhrab_mujeeb - 06.10.2011

Quote:
Originally Posted by Ironboy
View Post
This i released long before when i was a newbie,thats why its like that..
You aren't a newbie now, you can still edit it :P


Re: Buying clothes from shop[MF_Skins] - Ironboy - 07.10.2011

Quote:
Originally Posted by suhrab_mujeeb
View Post
You aren't a newbie now, you can still edit it :P
Yes but i dont have time to fix it :/


Re: Buying clothes from shop[MF_Skins] - Andrɘ - 05.01.2012

Doesnot work, just saying.


Re: Buying clothes from shop[MF_Skins] - hatchoe101 - 05.01.2012

I can't download it!


Re: Buying clothes from shop[MF_Skins] - Marko Koprivanac - 11.03.2012

I will be using this !!


Re: Buying clothes from shop[MF_Skins] - Lordzy - 26.03.2012

Gooood.


Re: Buying clothes from shop[MF_Skins] - Dare Devil..... - 16.06.2012

Can some one give me a Mirror?


Re: Buying clothes from shop[MF_Skins] - Lookin - 23.07.2012

not bad iron boy good to see your still around you still using satdm? also you know you dont have to change skins right?

regards

Former [bT] member from WAY back

Lookin