Well. I was wondering, how do I get the GUNID as well?
Code:
// Get some of their current settings
new currclip, currammo, currmode, currextra;
ts_getuserwpn(id,currclip,currammo,currmode,currextra);
set_pdata_int(tsgun,tsweaponoffset[weapon],ammo); // set their ammo
// Grenade or knife, set clip
if(weapon == 24 || weapon == 25 || weapon == 35) {
set_pdata_int(tsgun,41,ammo); // special clip storage
set_pdata_int(tsgun,839,ammo); // more special clip storage
currclip = ammo; // change what we send to WeaponInfo
ammo = 0; // once again, change what we send to WeaponInfo
}
else { // Not a grenade or knife, set ammo
set_pdata_int(tsgun,850,ammo); // special ammo storage
}
I mean I got it to give me the clip, ammo, mode, extras. IT works fine, but how do I get it to give me the gunid, seperately? Thanks.