mirror of
https://bitbucket.org/Ioncannon/project-meteor-server.git
synced 2025-04-20 11:47:48 +00:00
27 lines
388 B
Lua
27 lines
388 B
Lua
--[[
|
|
|
|
LogoutCommand Script
|
|
|
|
Functions:
|
|
|
|
eventConfirm()
|
|
eventCountDown()
|
|
eventLogoutFade()
|
|
|
|
--]]
|
|
|
|
require ("global")
|
|
|
|
function onEventStarted(player, command, eventType, eventName)
|
|
|
|
choice = callClientFunction(player, "delegateCommand", command, "eventConfirm");
|
|
|
|
if (choice == 1) then
|
|
player:QuitGame();
|
|
elseif (choice == 2) then
|
|
player:Logout();
|
|
end
|
|
|
|
player:EndEvent();
|
|
|
|
end
|