mirror of
https://bitbucket.org/Ioncannon/project-meteor-server.git
synced 2025-04-20 11:47:48 +00:00
23 lines
No EOL
378 B
Lua
23 lines
No EOL
378 B
Lua
require ("global")
|
|
|
|
--[[
|
|
|
|
ActivateCommand Script
|
|
|
|
Switches between active and passive mode states
|
|
|
|
--]]
|
|
|
|
function onEventStarted(player, command, triggerName)
|
|
|
|
if (player:GetState() == 0) then
|
|
player:ChangeState(2);
|
|
sendSignal("playerActive");
|
|
elseif (player:GetState() == 2) then
|
|
player:ChangeState(0);
|
|
sendSignal("playerPassive");
|
|
end
|
|
|
|
player:endEvent();
|
|
|
|
end |