1
Fork 0
mirror of https://bitbucket.org/Ioncannon/project-meteor-server.git synced 2025-04-20 11:47:48 +00:00
project-meteor-server/data/scripts/commands/LogoutCommand.lua

27 lines
379 B
Lua

--[[
LogoutCommand Script
Functions:
eventConfirm()
eventCountDown()
eventLogoutFade()
--]]
require ("global")
function onEventStarted(player, command, triggerName)
choice = callClientFunction(player, "delegateCommand", command, "eventConfirm");
if (choice == 1) then
player:QuitGame();
elseif (choice == 2) then
player:Logout();
end
player:EndEvent();
end