How would I.....?(Defining)
#1

Alright, I've seen this in a script:

/house store weapon weaponname

the problem is the weapon name, how do I define the name for each weapon id and check that the player actually has it? so i.e

/house store weapon ak47

How do I define it to the correct ID so it inserts it to mysql and then remove the weapon from the player. The actual issue is just how to define it.
I want basically is a function that:

knows weapon names i.e

Desert Eagle = 24.

So when a player types something like:

/give weapon playerid Desert Eagle, it gives them a deserteagle according to its ID.
Reply


Messages In This Thread
How would I.....?(Defining) - by Dokins - 07.12.2011, 16:04
Re: How would I.....?(Defining) - by xMichaelx - 07.12.2011, 16:20
Re: How would I.....?(Defining) - by Dokins - 07.12.2011, 16:22
Re: How would I.....?(Defining) - by xMichaelx - 07.12.2011, 16:25
Re: How would I.....?(Defining) - by Dokins - 07.12.2011, 16:27
Re: How would I.....?(Defining) - by Thresholdold - 07.12.2011, 16:28
Re: How would I.....?(Defining) - by Dokins - 07.12.2011, 16:31
Re: How would I.....?(Defining) - by xMichaelx - 07.12.2011, 16:32
Re: How would I.....?(Defining) - by Dokins - 07.12.2011, 16:35
Re: How would I.....?(Defining) - by Pinguinn - 07.12.2011, 17:39

Forum Jump:


Users browsing this thread: 1 Guest(s)