Quote:
Originally Posted by Kwarde
pawn Код:
stock GetGunName(gunid, output[], len[]) { switch(gunid){ case 0: return format(output, len, "Fists"); case 1: return format(output, len, "Brass Knuckles"); } return 0; }
edit that thing yourself with all ID's. Try that. usage:
pawn Код:
new gunname[50]; GetGunName(gunid, gunname, 50); format(str, 128, "You equpped an %s (%d)", gunname, gunid);
idk if it's gonna work. Just try it. I gotta go now. Can't help you no more.
Here are all the gun names + ID: http://weedarr.wikidot.com/gunlist
|
Better: Use the native GetWeaponName function.
https://sampwiki.blast.hk/wiki/GetWeaponName