Thread: [Release] CommandItems (1.0.1)
View Single Post
shanapu
Veteran Member
Join Date: Apr 2015
Location: .de
Old 05-21-2015 , 22:28   Re: CommandItems (1.0.1)
Reply With Quote #82

Quote:
Originally Posted by Marverlous View Post
these commanditems dissapear on single use, how can i make them stay in the user inventory?
Quote:
Originally Posted by Arrow768 View Post
Change
Code:
return Store_DeleteItem;
to
Code:
return Store_DoNothing;
recompile the plugin

and it should work
cause i needed both, a version with single use commands and a version that hold the commands after use, i make a "new version" (just replaced some "strings"(?)) to Hold command items that is compatible with command items single use...
Compiled with sm 1.6.4. works great with sm1.7.x and store 1.2.x.

Use the web panel to add command items. Open the web panel, navigate to Add New Item under the Items menu. In type, type commanditemhold. Change name, display_name, description and attrs to customize the new item.
Attached Files
File Type: sp Get Plugin or Get Source (store-commanditemshold.sp - 157 views - 3.6 KB)
File Type: smx store-commanditemshold.smx (11.0 KB, 138 views)
__________________
coding & free software
shanapu is offline