Created
November 3, 2022 07:28
-
-
Save Rmlyy/e399d6627abcefe8dc1b821691c78fc4 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
script_name('Fish-Utils') | |
script_author('Rmly') | |
script_version('1.0') | |
local sampev = require 'samp.events' | |
local prefix = "{0ed2e8}[FISH-UTILS]:{b9bcbd}" | |
function main() | |
repeat wait(100) until isSampAvailable() | |
local ts = thisScript() | |
sampAddChatMessage(string.format('%s %s for Ruby Nephrite v%s {b9bcbd}by {0ed2e8}%s {b9bcbd}', prefix, ts.name, ts.version, table.concat(ts.authors))) | |
end | |
function sampev.onServerMessage(color, text) | |
if text == ">> {FFFFFF}You failed to catch the fish." then | |
lua_thread.create(function () | |
-- sampAddChatMessage(string.format( "%s Fishing in 60s...", prefix )) | |
wait(60010) | |
-- sampAddChatMessage(string.format( "%s Fishing now!", prefix )) | |
sampSendChat('/fish') | |
end) | |
end | |
if text == "{FF0000}>> {FFFFFF}Ai prins un {FF0000}Zander{FFFFFF}." then | |
lua_thread.create(function () | |
wait(5010) | |
sampSendChat('/fish') | |
end) | |
end | |
if text == "Fish >> {FFFFFF}You caught {0077ed}Trophy Fish{FFFFFF} - {33AA33}$2.000.000{FFFFFF}." then | |
sampAddChatMessage(string.format( "%s {ff0303}Caught Trophy Fish. Running /stop now!", prefix )) | |
sampSendChat('/stop') | |
end | |
if text == "Error: {FFFFFF}Your backpack is full !!" then | |
sampAddChatMessage(string.format( "%s {ff0303}BACKPACK FULL!!!!", prefix )) | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment