mirror of
				https://bitbucket.org/Ioncannon/project-meteor-server.git
				synced 2025-05-20 08:26:59 -04: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
 |