weapon name
#1

Hey. I want to know how to do the following.

I want that if you type this command you don't have to type the ID of the weapon but the name.

pawn Код:
if(sscanf(params,"ddd",id,weapon,price)) return SendClientMessage(playerid,-1,"{F81414}*Command Failed* {FFFFFF}Correct Usage: {00C0FF}/sellweapon [playerid] [weaponname] [price]");
Now it's like:


/sellweapon 0 24 1000

I want it like this:

/sellweapon 0 deagle 1000

How to do it?
Reply


Messages In This Thread
weapon name - by bartje01 - 09.12.2011, 21:27
Re: weapon name - by bartje01 - 09.12.2011, 22:07
Re: weapon name - by bartje01 - 09.12.2011, 23:16

Forum Jump:


Users browsing this thread: 1 Guest(s)