local on = require "lib.samp.events"
local gun = {
[0] = '9mm',
[1] = 'Silenced 9mm',
[2] = 'Desert Eagle',
[3] = 'Shotgun',
[4] = 'Sawnoff Shotgun',
[5] = 'Combat Shotgun',
[6] = 'Micro SMG/Uzi',
[7] =' MP5',
[8] = 'AK-47',
[9] = 'M4',
[10] = 'Sniper Rifle'
}
function main()
if not isSampLoaded() or not isSampfuncsLoaded() then return end
while not isSampAvailable() do wait(100) end
_, myid = sampGetPlayerIdByCharHandle(PLAYER_PED)
while true do wait(0)
end
end
function on.onSetPlayerSkillLevel(playerId, skill, level)
if playerId == myid and level > 20 or level > 200 then
sampSendChat('/clist 32')
print(playerId..'id '..gun[skill]..' '..level..' уровень')
end
end