AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Making my drugmod commands into items (https://forums.alliedmods.net/showthread.php?t=48678)

Mike Johnson 12-18-2006 02:45

Making my drugmod commands into items
 
1 Attachment(s)
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?

dutchmeat 12-18-2006 04:24

Re: Making my drugmod commands into items
 
Do you want to make a Non-admin command or do you want to create items that spawn ?

Mike Johnson 12-18-2006 20:20

Re: Making my drugmod commands into items
 
Id like to create items that spawn.

and thank you for taking the time to help :-)

Mike Johnson 12-18-2006 23:04

Re: Making my drugmod commands into items
 
**EDIT**

dutchmeat 12-19-2006 04:17

Re: Making my drugmod commands into items
 
But the plugin already does that ? or admin only ?
Do you want the items to spawn randomly in the map or something like that ?

Mike Johnson 12-20-2006 23:21

Re: Making my drugmod commands into items
 
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.

The Specialist 12-20-2006 23:25

Re: Making my drugmod commands into items
 
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 :wink:

Mike Johnson 12-21-2006 22:22

Re: Making my drugmod commands into items
 
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?

JCobra 12-21-2006 23:29

Re: Making my drugmod commands into items
 
http://plugin.harbu.org

This isn't the Harbu plugin support forum. :)

XmINiX 12-22-2006 07:37

Re: Making my drugmod commands into items
 
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.


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

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