|
#10025575
11-07-2009, 04:23 PM
|
|||
|
|||
|
my single ak47 code i made for cider. Hey i made a code you you can buy ak47s single instead of haveing to buy them in packs of
10. --[[ Name: "sh_cider_ak47single.lua". Product: "Cider (Roleplay)". --]] if ( !cider.plugin.get("Generic") ) then return; end; -- Define the item table. local ITEM = {}; -- Set some information about the item. ITEM.name = "1 AK47"; ITEM.size = 2; ITEM.cost = 3500; ITEM.team = TEAM_ARMSDEALER; ITEM.model = "models/weapons/w_rif_ak47.mdl"; ITEM.batch = 1; ITEM.store = true; ITEM.weapon = true; ITEM.plural = "AK47s"; ITEM.uniqueID = "cider_ak47"; ITEM.description = "A very powerful rifle which is great at long range."; -- Called when a player uses the item. function ITEM:onUse(player) if ( !player:HasWeapon(self.uniqueID) ) then player:Give(self.uniqueID); player:SelectWeapon(self.uniqueID); -- Return here because we're going to use the item. return; end; -- Select the weapon. player:SelectWeapon(self.uniqueID); -- Return false because we already have this item out. return false; end; -- Called when a player drops the item. function ITEM:onDrop(player, position) end; -- Called when a player destroys the item. function ITEM:onDestroy(player) end; -- Register the item. cider.item.register(ITEM); If you would like tyo test or have it go ahead im allways here to help Ventmob community, or if you reply with what type of item you would like i will be more than happy to help i cant code plugins for cider tho kk thanks - shaneman Last Edit: July 11, 2009, 04:25:45 PM by shaneman |
|
#10025580
11-07-2009, 04:35 PM
|
|||
|
|||
|
Re: my single ak47 code i made for cider. 1) That's ********
2) Applejack's item system doesn't work like that. |
|
#10025681
11-07-2009, 09:52 PM
|
|||
|
|||
|
Re: my single ak47 code i made for cider. 3) The AK works perfectly
4) If its possible to buy 1 at a time, then more people goes weapon dealer to buy weapons for them self |
|
#10026286
13-07-2009, 09:26 PM
|
|||
|
|||
|
Re: my single ak47 code i made for cider. 5) that would promote the RDM because all the noobs would have an ak
__________________ ![]() |
|
#10026292
13-07-2009, 09:38 PM
|
|||
|
|||
|
Re: my single ak47 code i made for cider. thanks dude, lexi only knows how to code weapons that come in batches of 10, good job you came around though.
|
| Users Browsing this Thread: 0 (0 members and 0 guests) |