SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Filterscripts

Reply
 
Thread Tools Display Modes
Old 27/03/2013, 02:03 PM   #1
RajatPawar
High-roller
 
RajatPawar's Avatar
 
Join Date: Aug 2011
Location: ヽ༼ຈل͜ຈ༽ノ
Posts: 2,179
Reputation: 311
Default Dynamic Food stall creator with food items and textdraw menus! (Create tons of food stall in-game with no work at all)

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

Last edited by RajatPawar; 28/03/2013 at 11:20 AM.
RajatPawar is offline   Reply With Quote
Old 27/03/2013, 02:08 PM   #2
DiGiTaL_AnGeL
High-roller
 
DiGiTaL_AnGeL's Avatar
 
Join Date: Aug 2012
Location: România
Posts: 1,923
Reputation: 104
Default Re: Dynamic Food stall creator with food items and textdraw menus! (Create tons of food stall in-game with no work at al

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

DiGiTaL_AnGeL is offline   Reply With Quote
Old 27/03/2013, 02:12 PM   #3
RajatPawar
High-roller
 
RajatPawar's Avatar
 
Join Date: Aug 2011
Location: ヽ༼ຈل͜ຈ༽ノ
Posts: 2,179
Reputation: 311
Default Re: Dynamic Food stall creator with food items and textdraw menus! (Create tons of food stall in-game with no work at al

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?
RajatPawar is offline   Reply With Quote
Old 27/03/2013, 02:25 PM   #4
TofuMike
Big Clucker
 
Join Date: Feb 2013
Posts: 80
Reputation: 8
Default Re: Dynamic Food stall creator with food items and textdraw menus! (Create tons of food stall in-game with no work at al

Nice
TofuMike is offline   Reply With Quote
Old 27/03/2013, 02:32 PM   #5
Mando
Little Clucker
 
Mando's Avatar
 
Join Date: Feb 2013
Posts: 45
Reputation: -16
Default Re: Dynamic Food stall creator with food items and textdraw menus! (Create tons of food stall in-game with no work at al

Wow!
+REP
__________________

Tutorials

Gamemodes
Mando is offline   Reply With Quote
Old 27/03/2013, 03:14 PM   #6
S4ba
Huge Clucker
 
S4ba's Avatar
 
Join Date: Jul 2012
Posts: 204
Reputation: 26
Default Re: Dynamic Food stall creator with food items and textdraw menus! (Create tons of food stall in-game with no work at al

cool
S4ba is offline   Reply With Quote
Old 27/03/2013, 04:27 PM   #7
RajatPawar
High-roller
 
RajatPawar's Avatar
 
Join Date: Aug 2011
Location: ヽ༼ຈل͜ຈ༽ノ
Posts: 2,179
Reputation: 311
Default Re: Dynamic Food stall creator with food items and textdraw menus! (Create tons of food stall in-game with no work at al

Thanks. Please do suggest more features for the next update, as I am drawing up a blank !
RajatPawar is offline   Reply With Quote
Old 27/03/2013, 04:44 PM   #8
davve95
High-roller
 
davve95's Avatar
 
Join Date: Nov 2009
Location: Sweden
Posts: 3,139
Reputation: 234
Default Re: Dynamic Food stall creator with food items and textdraw menus! (Create tons of food stall in-game with no work at al

Nice!,


A idea: U can also put that hot dog guy behind there as a NPC!.
davve95 is offline   Reply With Quote
Old 27/03/2013, 06:52 PM   #9
matthew1211
Big Clucker
 
Join Date: Jul 2012
Posts: 162
Reputation: 25
Default Re: Dynamic Food stall creator with food items and textdraw menus! (Create tons of food stall in-game with no work at al

nice script
matthew1211 is offline   Reply With Quote
Old 28/03/2013, 11:21 AM   #10
RajatPawar
High-roller
 
RajatPawar's Avatar
 
Join Date: Aug 2011
Location: ヽ༼ຈل͜ຈ༽ノ
Posts: 2,179
Reputation: 311
Default Re: Dynamic Food stall creator with food items and textdraw menus! (Create tons of food stall in-game with no work at al

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
RajatPawar is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[FilterScript] F.s - Food System LeMoi Lançamentos/Releases 13 28/12/2012 07:57 PM
Food Pasa Help Archive 3 26/07/2011 07:13 PM
Food/Drinks GaGlets(R) Help Archive 6 08/07/2010 01:10 AM
[Help please] Food Menu L30 Help Archive 2 04/07/2009 01:26 AM


All times are GMT. The time now is 08:57 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.