09.12.2011, 21:27
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.
Now it's like:
/sellweapon 0 24 1000
I want it like this:
/sellweapon 0 deagle 1000
How to do it?
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]");
/sellweapon 0 24 1000
I want it like this:
/sellweapon 0 deagle 1000
How to do it?