[Include] i-shop (shop creation)
#1

i-shop
Introduction
With this include you can create shops ingame on command (checkpoints that bring up weapon dialogs ect that have 3d text displaying the shop name and a map icon). At the moment it only has weaponshops but in the next update it will hopefully have a bug-free car ownership shop spawner too and more configurable! You will need some includes zcmd and y_hooks also two plugins sscanf2 and the streamer plugin to compile/run.

Pastebin
>> Click Me To Download ishop! <<

Usage
first download the file and put it in your your pawno include folder.
Put this in your gamemode/filterscript with other includes and compile.
pawn Code:
//just compile this with your gamemode!
#include <ishop>
//Done!
If you dont want heavy weps like rpg's comment the following line
pawn Code:
#define ALLOW_ALLWEAPONS
Commands (all rcon otherwise it will return "UNKNOWN COMMAND"
/createshop [shopname][shoptype] - Creates a shop with the name of your choice. If its null it will create a weaponshop called "weapon shop"

/deleteshop [shopname] - deletes the shop of your choice. if null it will delete the last shop created.

/deleteallshops - will delete all shops.

Callbacks
pawn Code:
forward OnPlayerBoughtWeapon(playerid, weaponid, weaponname[]);
forward OnPlayerEnterShopCp(playerid, shopid, shopname[]);
Requirements & Links
Includes
zcmd
y_hooks
Plugins
sscanf2 (include needed too)
streamer 2.5(include needed too)

Please report any bugs and/or suggestions.

Credits to
****** for sscanf, y_hooks and IsPlayerinRangeofPoint function.
ZeeX for zcmd
Incognito for the streamer plugin
Chuck norris

ps, forgive the presentation im crap with bbcode.
Reply


Messages In This Thread
i-shop (shop creation) - by iggy1 - 04.11.2010, 21:09
Re: i-shop (shop creation) - by vyper - 04.11.2010, 21:44
Re: i-shop (shop creation) - by barneystinson - 04.11.2010, 21:59
Re: i-shop (shop creation) - by iggy1 - 04.11.2010, 22:01
Re: i-shop (shop creation) - by barneystinson - 04.11.2010, 22:20
Re: i-shop (shop creation) - by iggy1 - 04.11.2010, 22:31
Re: i-shop (shop creation) - by Kewizzle - 04.11.2010, 23:21
Re: i-shop (shop creation) - by iggy1 - 04.11.2010, 23:33
Re: i-shop (shop creation) - by PANTHER12 - 05.11.2010, 01:36
Re: i-shop (shop creation) - by iggy1 - 05.11.2010, 07:08

Forum Jump:


Users browsing this thread: 1 Guest(s)