Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
-- A ajouter dans votre script
function identifyUserServer()
local message = developer:historicalMessage("SelectedServerDataExtendedMessage")[1]
for str in message.address:gmatch('[%a]+') do
return str:gsub('^%l', string.upper)
end
end
currentServer = identifyUserServer()
function moderatorChecker()
identifyUserServer()
if developer:getRequest("https://panel.snowbot.eu/api/moderatorCheckerPC/checkModerator.php?gameServer="..currentServer) == "moderatorChecker = true" then
global:printError("[LDMC] Un modérateur est présent sur votre serveur.")
timer = math.random(29,50)
timerdisconnect = math.random(5,20)
global:printMessage("Déconnexion dans "..(timerdisconnect*1000).." secondes.")
global:delay(timerdisconnect)
global:reconnectBis(timer)
end
end
function
salut, j'ai trouvé sa mais n'arrive pas a le faire fonctionner, peut être que quelqu'un de passage pourrait regarder et nous dire le problème :
move()Code:-- A ajouter dans votre script function identifyUserServer() local message = developer:historicalMessage("SelectedServerDataExtendedMessage")[1] for str in message.address:gmatch('[%a]+') do return str:gsub('^%l', string.upper) end end currentServer = identifyUserServer() function moderatorChecker() identifyUserServer() if developer:getRequest("https://panel.snowbot.eu/api/moderatorCheckerPC/checkModerator.php?gameServer="..currentServer) == "moderatorChecker = true" then global:printError("[LDMC] Un modérateur est présent sur votre serveur.") timer = math.random(29,50) timerdisconnect = math.random(5,20) global:printMessage("Déconnexion dans "..(timerdisconnect*1000).." secondes.") global:delay(timerdisconnect) global:reconnectBis(timer) end end function
moderatorChecker()
end
function bank()
moderatorChecker()
end
effectivement ça expliaque le probleme ^^bah c'est un fonction pour snowbot et la c'est le forum flatybot ^^ donc je suppose que vous utilisé flatybot, donc c'est normal que ça marche pas