07.12.2011, 16:04
(
Последний раз редактировалось Dokins; 07.12.2011 в 17:29.
)
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.
/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.