1
Fork 0
mirror of https://bitbucket.org/Ioncannon/project-meteor-server.git synced 2025-04-20 11:47:48 +00:00
project-meteor-server/data/scripts/commands/ActivateCommand.lua

22 lines
349 B
Lua
Raw Normal View History

2017-03-14 18:33:33 -04:00
require ("global")
--[[
ActivateCommand Script
Switches between active and passive mode states
--]]
function onEventStarted(player, command, triggerName)
2016-06-15 03:41:23 +01:00
if (player:GetState() == 0) then
player:ChangeState(2);
2016-06-15 03:41:23 +01:00
elseif (player:GetState() == 2) then
player:ChangeState(0);
end
player:endEvent();
sendSignal("playerActive");
end