Untitled
Guest 84 14th Apr, 2024
--[[
Script Name: Stop Bot on Player
Description: Stop bot when player out of friends list is on screen else enable.
Author: Ascer - example
]]
local FRIENDS = {"Dennis Rodman", "Wnz Wargod"} -- friends nicks to avoid
local PAUSE_LUA_SCRIPTS = false -- disable lua scripts too !WARRING script don't restore bot again, you will need to manually press Ctrl+P
-- DONT'T EDIT BELOW THIS LINE
local list = table.lower(FRIENDS)
Module.New("Stop Bot on Player", function ()
local players = Creature.iPlayers(7, false) -- get players on screen only
for i = 1, #players do
local player = players[i]
if not table.find(list, string.lower(player.name)) then
return Rifbot.setEnabled(false, PAUSE_LUA_SCRIPTS) -- disable player when player on screen.
end
end
Rifbot.setEnabled(true) -- enable bot not players found
end)
To share this paste please copy this url and send to your friends
RAW Paste Data
Recent Pastes
- C.H.1.L.Ds Vids-Pics Updated May 09
Markup | 9 | 2 hours ago
- Как повлияла пандемия на куринные крылышки
Dart | 12 | 9 hours ago
- Wanted to apprehend what your conception is on this point
Smarty | 11 | 10 hours ago
- Untitled
Markup | 123 | 15 hours ago
- Untitled
Markup | 21 | 15 hours ago
- Автосервис Ярославль
Bro | 113 | 15 hours ago
- Untitled
C# | 22 | 20 hours ago