sampRegisterChatCommand('hgun', function(arg)
local gunId, ammo = tostring(arg):match('^(%d+)%s+(%d+)$');
if (not gunId or not ammo) then
return sampAddChatMessage('use /hgun [gunId (0-64)] [ammo]', -1);
end
print('Input:');
print('gun id', gunId);
print('ammo', ammo);
end)