04.11.2010, 21:09
(
Last edited by iggy1; 04/11/2010 at 09:49 PM.
)
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!
pawn Code:
#define ALLOW_ALLWEAPONS
/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[]);
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.