Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function onRunCommand(cmd)
- sCmd, sParams = cmd:match("(.+) (.+)")
- if sCmd == "!we" then
- if sParams then
- act = true; pass = sParams;
- printLog("[WOL-RP_EXPLT] Sended")
- else
- printLog("[WOL-RP_EXPLT] Error! Type a params. <!we passw>")
- end
- return true
- end
- if cmd == "!st" then
- waiting = true
- clickTextDraw(29)
- return true
- end
- if sCmd == "!au" then
- sendDialog(2, 1, 65535, sParams)
- return true
- end
- end
- function onDialogShow(id, style, title, btn1, btn2, data)
- if id == 2 then return true end
- if waiting and id == 1932 then
- f = io.open("last_stats.txt", "w+")
- f:write(data)
- f:flush()
- f:close()
- printLog("[WOL-RP_EXPLT] Stats saved")
- return true
- end
- if nop then return true end
- end
- function onScriptUpdate()
- if act then
- clickTextDraw(28)
- sendDialog(9973, 1, 3, "")
- sendDialog(15467, 1, 3, pass)
- nop = true; act = false;
- end
- end
Add Comment
Please, Sign In to add comment