Please note, this is a STATIC archive of website www.tutorialspoint.com from 11 May 2019, cach3.com does not collect or store any user information, there is no "phishing" involved.
Tutorialspoint

Execute Lua Online

local hook = require 'lib.samp.events'
local path = "moonloader\\config\\autocap.txt"
local autocap = 1
local ka = 0
local spam = 1

function main()
	repeat wait(100) until isSampAvailable()
	sampAddChatMessage("[Autocap]", 0xff878787)
	sampRegisterChatCommand("reset", cmd_lastt)
end	
function hook.onServerMessage(color,text)
	if string.find(text, "%[%A+PAYDAY%A+%]") then
		sampSendChat("/mafbizz")
	elseif string.find(text, "saka uzbrukt bandas zonai") then
		banda1, banda2 = string.match(text, "%[%a+%]%s(%a+)%s(%a+)%s")
		sampAddChatMessage(string.format("%s | Iespamoja: %s %s ]", (os.date("[Teras sakums: {78a1c9}%H:%M:%S{FFFFFF}")), banda1, banda2), -1)
	elseif string.find(text, "uzvar zonas iegushanu$") then
		if string.find(text, "(%[F%] Banda)") then
			local file = io.open("moonloader\\config\\autocap.txt", "w")
			sampAddChatMessage(os.date("[Teras beigas: {78a1c9}%H:%M:%S{FFFFFF} ]"), -1)
			caca = os.date("Ieprieksejas teras beigas: %H:%M:%S")
			file:write(caca)
			file:close()
		end
	end			
end


Advertisements
Loading...

We use cookies to provide and improve our services. By using our site, you consent to our Cookies Policy.