SA-MP Forums Archive
[FilterScript] Dynamic Food stall creator with food items and textdraw menus! (Create tons of food stall in-game with no work at all) - 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] Dynamic Food stall creator with food items and textdraw menus! (Create tons of food stall in-game with no work at all) (/showthread.php?tid=425962)



Dynamic Food stall creator with food items and textdraw menus! (Create tons of food stall in-game with no work at all) - RajatPawar - 27.03.2013

Hey guys.
This is my n-th FS, you can create foodstalls for your server with this filterscript. It's very easy to use.

Commands:
/createfoodstall (Name of foodstall) (base price)
* /cfs *
/changeprice
/buystall
/changename
/offer
/reply
Here, baseprice is the price you want basically, for the basic item available - hotdog. It's got 5 items.
1) Hot dog
2) Pizza
3) Taco
4) Pork sandwich
5) A packet of nachos

With buystall, you can buy the stall, change the name, the price and with offer you can offer stall owners a new price. /reply to reply to offers.
-----------------------------------------------------------------------
Images:


--------------------------------------------------------------------------
What it does:
1) Creates a stall
2) A 3D text label
3) A Checkpoint
4) A Textdraw menu
5) Eat all you can for the baseprice
6) All this happens through enumerators.
-------------------------------------------------------------------------
How to create:
The thing spawns infront of you, with the breadth facing you and the checkpoint to your RIGHT. So if you want a road side stall, you should understand the above. If you can't, PM me or reply below.
---------------------------------------------------------------------------
Bugs/credits/requirements:
No bugs yet.
THIS FILTERSCRIPT USES MAPANDREAS.
Credits:
Kalcor - MapAndreas
Incognito - streamer
Y_Less - sscanf2
Zeex - ZCMD
Me - rInfoBox
---------------------------------------------------------------------------
How do I add my own items:
If you are a good scripter, you can, easily, following the below algorithm.
1) Adding the item to the textdraw menu under the /cfs command.
2) Adding it's switch case under OnPlayerEnterDynamicCP.
3) Done !
------------------------------------------------------------------------
Download:
http://pastebin.com/GXkjuCB1
Thanks, cheers.
-----------------------------------------------------------------------
Changelog:
Code:
Version 2:
Added /reply, /offer, /buystall, /changename, /changeprice and some commands with more 3D textlabels showing the owner, price and so on.
Version 1:
Released version with /createfoodstall, a name label and checkpoints with the stall facing you.



Re: Dynamic Food stall creator with food items and textdraw menus! (Create tons of food stall in-game with no work at al - DiGiTaL_AnGeL - 27.03.2013

You got some imagination there. ) Nice, and I like the design of the infobox a lot.


Re: Dynamic Food stall creator with food items and textdraw menus! (Create tons of food stall in-game with no work at al - RajatPawar - 27.03.2013

Quote:
Originally Posted by DiGiTaL_AnGeL
View Post
You got some imagination there. ) Nice, and I like the design of the infobox a lot.
Thanks ! And may I ask why the imagination part?


Re: Dynamic Food stall creator with food items and textdraw menus! (Create tons of food stall in-game with no work at al - TofuMike - 27.03.2013

Nice


Re: Dynamic Food stall creator with food items and textdraw menus! (Create tons of food stall in-game with no work at al - Mando - 27.03.2013

Wow!
+REP


Re: Dynamic Food stall creator with food items and textdraw menus! (Create tons of food stall in-game with no work at al - S4ba - 27.03.2013

cool


Re: Dynamic Food stall creator with food items and textdraw menus! (Create tons of food stall in-game with no work at al - RajatPawar - 27.03.2013

Thanks. Please do suggest more features for the next update, as I am drawing up a blank !


Re: Dynamic Food stall creator with food items and textdraw menus! (Create tons of food stall in-game with no work at al - davve95 - 27.03.2013

Nice!,


A idea: U can also put that hot dog guy behind there as a NPC!.


Re: Dynamic Food stall creator with food items and textdraw menus! (Create tons of food stall in-game with no work at al - matthew1211 - 27.03.2013

nice script


Re: Dynamic Food stall creator with food items and textdraw menus! (Create tons of food stall in-game with no work at al - RajatPawar - 28.03.2013

Updated version 2:
Total commerical system added !
Quote:

Version 2:
Added /reply, /offer, /buystall, /changename, /changeprice and some commands with more 3D textlabels showing the owner, price and so on.

You can buy the stall if it's on sale.
If it isn't, you can offer the owner some cash.
You reply to offers with /reply (YES/NO)
If you own it, you can /changename/price. Also added a 3D textlabel showing the owner and necessary info.
Cheers