18.05.2012, 22:43
Just use the custom specifier weapon, it should be included in the newest sscanf include
pawn Код:
// we use k<function>
if(sscanf(params, "uk<weapon>d", id, sWeapon, ammo)) return SendClientMessage(playerid, 0x66666666, "Usage: /giveweapon [Player ID] [Weapon ID] [Ammo] * You can only give 5000 ammo with the weapon *");
// If its an invalid weapon the custom function returns -1
if(sWeapon == -1) return SendClientMessage(playerid, 0x66666666, "That weapon model or ID doesn't exist.");

