Developer question: creating a permanent item
I am trying to make a simple item for store.
My question is, how to check if the a client have a item? and how to save the item for the client (permanently)? I think as below but I am not sure :? My plugin PHP Code:
|
Re: Developer question: creating a permanent item
There's one thing you should change: In Store_GetEquippedItemsByType the 2nd parameter is the type name, not the category. That's also true for Store_RegisterItemType. Type name is a lowered-case, no spaces, and maximum 32 characters string. Change it to watergun, and also change it in the web panel (In edit item, change the item type to watergun).
Oh, and add Code:
g_watergun[client] = equipped; I'll write a tutorial for creating permanent items soon. |
Re: Developer question: creating a permanent item
1 Attachment(s)
Quote:
but Code:
g_watergun[client] = equipped; As appreciation I share my article that I created I had to create a new category to add items. I have also added a simple tracers item. "alongub" you can check my plugin and tell me if all is fine? surely I will make more items :) Added: this plugin is working in my servers |
Re: Developer question: creating a permanent item
yeah, it looks great
|
All times are GMT -4. The time now is 13:00. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.