mirror of
				https://bitbucket.org/Ioncannon/project-meteor-server.git
				synced 2025-05-20 08:26:59 -04:00 
			
		
		
		
	
		
			
				
	
	
		
			21 lines
		
	
	
		
			380 B
		
	
	
	
		
			Lua
		
	
	
	
	
	
			
		
		
	
	
			21 lines
		
	
	
		
			380 B
		
	
	
	
		
			Lua
		
	
	
	
	
	
| require ("global")
 | |
| 
 | |
| function init(npc)
 | |
| 	return false, false, 0, 0;	
 | |
| end
 | |
| 
 | |
| function onEventStarted(player, npc, triggerName)
 | |
| 
 | |
| 	choice = callClientFunction(player, "askLogout", player);
 | |
| 	
 | |
| 	if (choice == 2) then
 | |
| 		player:QuitGame();
 | |
| 	elseif (choice == 3) then
 | |
| 		player:Logout();
 | |
| 	elseif (choice == 4) then
 | |
| 		player:SendMessage(33, "", "Heck the bed");
 | |
| 	end
 | |
| 	
 | |
| 	player:EndEvent();
 | |
| 	
 | |
| end |