Raised This Month: $ Target: $400
 0% 

Making my drugmod commands into items


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Mike Johnson
Junior Member
Join Date: Dec 2006
Old 12-18-2006 , 02:45   Making my drugmod commands into items
Reply With Quote #1

Ok so I recently downloaded Pinkfairie's 2005 drugmod 'Pinkdrug' and it works fine if I do the commands like amx_extasy name, but I want to make these into items that people can use and activate themselves.

can anyone tell me the MySQL item command line for this?
Attached Files
File Type: sma Get Plugin or Get Source (Pinkdrug.sma - 611 views - 28.2 KB)
Mike Johnson is offline
dutchmeat
Senior Member
Join Date: Sep 2006
Old 12-18-2006 , 04:24   Re: Making my drugmod commands into items
Reply With Quote #2

Do you want to make a Non-admin command or do you want to create items that spawn ?
__________________
before you criticize someone, you should walk a mile in their shoes. that way, when you criticize them, you're a mile away and you have their shoes.
dutchmeat is offline
Mike Johnson
Junior Member
Join Date: Dec 2006
Old 12-18-2006 , 20:20   Re: Making my drugmod commands into items
Reply With Quote #3

Id like to create items that spawn.

and thank you for taking the time to help :-)
Mike Johnson is offline
Mike Johnson
Junior Member
Join Date: Dec 2006
Old 12-18-2006 , 23:04   Re: Making my drugmod commands into items
Reply With Quote #4

**EDIT**
Mike Johnson is offline
dutchmeat
Senior Member
Join Date: Sep 2006
Old 12-19-2006 , 04:17   Re: Making my drugmod commands into items
Reply With Quote #5

But the plugin already does that ? or admin only ?
Do you want the items to spawn randomly in the map or something like that ?
__________________
before you criticize someone, you should walk a mile in their shoes. that way, when you criticize them, you're a mile away and you have their shoes.
dutchmeat is offline
Mike Johnson
Junior Member
Join Date: Dec 2006
Old 12-20-2006 , 23:21   Re: Making my drugmod commands into items
Reply With Quote #6

The plugin only lets admins do the commands like amx_weed mike. I want it so they can be items that I can make NPC's sell or players sell.
Mike Johnson is offline
The Specialist
BANNED
Join Date: Nov 2006
Old 12-20-2006 , 23:25   Re: Making my drugmod commands into items
Reply With Quote #7

take out the parts that say
Code:
  if(cmd_access(id,level,cid,1) return PLUGIN_HANDLED;
Thats the part of the script where they check admin access
The Specialist is offline
Send a message via AIM to The Specialist
Mike Johnson
Junior Member
Join Date: Dec 2006
Old 12-21-2006 , 22:22   Re: Making my drugmod commands into items
Reply With Quote #8

dont I have to add something that I put into the command line for that particular item like servercmd item_weed <id> or something somewhere in the plugin?
Mike Johnson is offline
JCobra
Senior Member
Join Date: Mar 2006
Location: Canada
Old 12-21-2006 , 23:29   Re: Making my drugmod commands into items
Reply With Quote #9

http://plugin.harbu.org

This isn't the Harbu plugin support forum.
__________________
User has abandoned this account.

Last edited by JCobra; 12-22-2006 at 00:18.
JCobra is offline
Send a message via AIM to JCobra
XmINiX
Senior Member
Join Date: Nov 2006
Location: Your basement
Old 12-22-2006 , 07:37   Re: Making my drugmod commands into items
Reply With Quote #10

But it is a Scritping help forum...
Ok... So this plugin needs to be redone :/..... Like it needs to be imported into HarbeRPItems.sma so it will have a Mysql Connection.
LOL Talk About copying from the Tutorial in the doc
Code:
 //Drink Menu
 new keys = MENU_KEY_0|MENU_KEY_1|MENU_KEY_2|MENU_KEY_3|MENU_KEY_4|MENU_KEY_5|MENU_KEY_6|MENU_KEY_7|MENU_KEY_8|MENU_KEY_9
 register_menucmd(register_menuid("Which Drink?"), keys, "giveWeapon")
 register_clcmd("say /drinkmenu", "showWeaponMenu")
&
Code:
 //711 Menu
 new keys1 = MENU_KEY_0|MENU_KEY_1|MENU_KEY_2|MENU_KEY_3|MENU_KEY_4
 register_menucmd(register_menuid("Buy what?"), keys1, "giveWeapon1")
 register_clcmd("say /711menu", "showWeaponMenu1")
But anyway here is what you register to make a item IN HarbuRPItems.sma!!!
Code:
 register_srvcmd("item_extasy", "item_extasy")
that is one idk what all is in Pinks plugin.
__________________
+Karma me if i am helpful!

Last edited by XmINiX; 12-22-2006 at 07:47.
XmINiX is offline
Send a message via AIM to XmINiX Send a message via MSN to XmINiX Send a message via Yahoo to XmINiX
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 06:54.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode