mirror of
https://bitbucket.org/Ioncannon/project-meteor-server.git
synced 2025-05-20 08:26:59 -04:00
Updated Map Server namespace. Moved all other data folders (www and sql) to data folder. Renamed boot name to Project Meteor.
This commit is contained in:
27
Data/scripts/commands/LogoutCommand.lua
Normal file
27
Data/scripts/commands/LogoutCommand.lua
Normal file
@@ -0,0 +1,27 @@
|
||||
--[[
|
||||
|
||||
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
|
||||
Reference in New Issue
Block a user