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

28 lines
379 B
Lua
Raw Normal View History

--[[
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