11.05.2013, 10:08
Grazie, provo e ti faccio sapere.
I dont think that stock is bugged since i use it for my anti weapon hack and it works like a charm, however:
Quote:
in your sammo command the reason why you may be getting "Fist" as the weapon given could be because of this stock: GetWeaponNameByID
Please show this. |
pawn Код:
stock GetWeaponNameByID(wid)
{
new gunname[32];
switch (wid)
{
case 1 .. 17,
22 .. 43,
46 : GetWeaponName(wid,gunname,sizeof(gunname));
case 0: format(gunname,32,"%s","Fist");
case 18: format(gunname,32,"%s","Molotov Cocktail");
case 44: format(gunname,32,"%s","Night Vis Goggles");
case 45: format(gunname,32,"%s","Thermal Goggles");
default: format(gunname,32,"%s","Invalid Weapon Id");
}
return gunname;
}