ts_get_user_tsgun doesn't get their current weapon, it gets the entity index of their special entity created to hold all of their weapon information. Use this instead:
Code:
new dummy, weaponid = ts_getuserwpn(playerid,dummy,dummy,dummy,dummy);
__________________
No longer around. Thanks your support, everyone! As always:
THIS ONES FOR YOU
3000 PTS