- 148
- 53
- Версия MoonLoader
- .026-beta
проблема в заголовке
lua:
require 'lib.moonloader'
require 'lib.sampfuncs'
function main()
if not isSampLoaded() or not isSampfuncsLoaded() then return end
while not isSampAvailable() do wait(100) end
sampAddChatMessage('setskinsantrope - Загружен. Использование - /sanskin "+/-"', -1)
sampRegisterChatCommand('sanskin', cmd_setsskin)
while true do
wait(0)
end
end
function cmd_setsskin (bebra)
if bebra "+" then sampSendClickTextdraw(459) printStringNow('~P~ skin~g~ +',1000) addOneOffSound(0.0,0.0,0.0, 1139) freezeCharPosition(PLAYER_PED, false) end
if bebra "-" then sampSendClickTextdraw(460) printStringNow('~P~ skin~g~ +',1000) addOneOffSound(0.0,0.0,0.0, 1139) freezeCharPosition(PLAYER_PED, false) end
if #bebra == 0 then sampAddChatMessage('Неверно введена команда', -1) end
end