Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function main()
- sampRegisterChatCommand("givemoney", func)
- wait(-1)
- end
- function func(param)
- id, money = param:match("^(%d+)%s+(%d+)$")
- if id ~= nil and money ~= nil then
- id1 = tonumber(id); money1 = tonumber(money)
- colvo = 0
- lua_thread.create(function()
- repeat
- sampSendChat("/pay "..id.." 5000")
- colvo = colvo + 5000
- wait(2100)
- until colvo >= money1
- sampAddChatMessage("Вы успешно передали "..colvo, -1)
- colvo = 0
- end)
- else sampAddChatMessage("Введите \"/givemoney [id] [money]", -1)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement