Estou desenvolvendo um script no qual se ele não passar em um teste ele é banido, o mesmo não apresenta erros no debugscript 3 mas tambem não está banindo.
-- client
function Calcular()
if (acertos >= 7) then
setTimer(function()
removeEventHandler("onClientRender", root, draw_WhiteList)
setElementData(localPlayer, "WhiteList", true)
stopSound(musica)
triggerEvent("PsT_msgDx", root, "#ff8c00✘ #ffffffINFO #ff8c00✘➺ #a9a9a9WhiteList #ffffffconcluída!, tenha um bom jogo.")
end, 2000, 1)
else
setTimer(function()
triggerServerEvent("PsT:Banir", localPlayer)
end, 2000, 1)
end
end
-- server
addEvent("PsT:Banir", true)
addEventHandler("PsT:Banir", root, function()
banPlayer(source, false, false, true, "[WhiteList] Você foi banido por 1 hora!", 3600)
end)