2016-03-12 02:54:03 -05:00
|
|
|
--[[
|
|
|
|
|
|
|
|
LogoutCommand Script
|
|
|
|
|
|
|
|
Functions:
|
|
|
|
|
|
|
|
eventConfirm()
|
|
|
|
eventCountDown()
|
|
|
|
eventLogoutFade()
|
|
|
|
|
2016-06-19 18:52:34 -04:00
|
|
|
--]]
|
2016-03-12 02:54:03 -05:00
|
|
|
|
2016-06-19 18:52:34 -04:00
|
|
|
require ("global")
|
2016-03-12 02:54:03 -05:00
|
|
|
|
2016-06-19 18:52:34 -04:00
|
|
|
function onEventStarted(player, command, triggerName)
|
2016-03-12 02:54:03 -05:00
|
|
|
|
2016-06-19 18:52:34 -04:00
|
|
|
choice = callClientFunction(player, "delegateCommand", command, "eventConfirm");
|
2016-03-12 02:54:03 -05:00
|
|
|
|
2016-06-19 18:52:34 -04:00
|
|
|
if (choice == 1) then
|
|
|
|
player:QuitGame();
|
|
|
|
elseif (choice == 2) then
|
|
|
|
player:Logout();
|
2016-03-12 02:54:03 -05:00
|
|
|
end
|
|
|
|
|
2016-06-19 18:52:34 -04:00
|
|
|
player:EndEvent();
|
|
|
|
|
|
|
|
end
|