[FilterScript] GlassesShop - 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] GlassesShop (
/showthread.php?tid=282030)
GlassesShop -
sk47 - 09.09.2011
Description:
This filterscript in essence is a glasses shop.
When you enter the command, you are teleported to Binco infront of a mirror and you can choose glasses.
Glasses' price is $100. As soon as you buy glasses and exit the shop, you get teleported back to your location.
Controls:
/glasses command - to the dressing room.
"Left" key- choose previous glasses.
"Right" key - choose next glasses.
"Sprint" key - buy glasses.
"Enter/exit a car" key - Exit the shop.
Settings:
To change the glasses' price change #define GLASSES_COST value to your own.
Author: sk47(me)
Date:02.12.2010
Attention! Script works only for version
0.3c
Pastebin
New version: Added a TextDraw with hints.
TextDraw's author:
SlootLite
Pastebin V2
Date:09.05.2011
Screenshots:
Re: GlassesShop -
Xx_OutLawZ_xX - 09.09.2011
Good Job, The arrow keys comes in handy.
Re: GlassesShop -
FireCat - 09.09.2011
Nice
Re: GlassesShop -
Kaperstone - 09.09.2011
my windows ditected a virus in the website where you hosted the image's :\
but anyway its look good

GJ
lol you have a little fail :
pawn Код:
if(PRESSED(KEY_SPRINT) && GetPVarInt(playerid,"BuyGlasses") == 1)
{
if(GetPlayerMoney(playerid) < GLASSES_COST) return
SendClientMessage(playerid,0xFFFFFFFF,"У вас не хватает денег"); // its in russian
//SendClientMessage(playerid,0xFFFFFFFF,"You Dont Have Enough Money!"); Translated :)
RemovePlayerAttachedObject(playerid, 2);
SetPlayerAttachedObject(playerid,2,Glasses[playerid], 2, 0.1, 0.03, 0.0, 0.0, 90.0, 90.0);