mirror of
https://bitbucket.org/Ioncannon/project-meteor-server.git
synced 2025-04-21 20:27:47 +00:00
28 lines
379 B
Lua
28 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
|