Formatting

This commit is contained in:
ChocoTaco 2019-02-15 03:38:41 -05:00
parent 4340e88211
commit d2c74f5164

View file

@ -7,16 +7,16 @@ package ObserverTimeout
function serverCmdClientMakeObserver( %client ) function serverCmdClientMakeObserver( %client )
{ {
//10 second cooldown on becoming an observer //10 second cooldown on becoming an observer
if( !%client.MakeObserverTimeout ) if( !%client.MakeObserverTimeout )
{ {
if ( isObject( Game ) && Game.kickClient != %client ) if ( isObject( Game ) && Game.kickClient != %client )
Game.forceObserver( %client, "playerChoose" ); Game.forceObserver( %client, "playerChoose" );
%client.MakeObserverTimeout = true; %client.MakeObserverTimeout = true;
%client.ObserverProtectStart = getSimTime(); %client.ObserverProtectStart = getSimTime();
schedule(10000, 0, "ResetMakeObserverTimeout", %client ); schedule(10000, 0, "ResetMakeObserverTimeout", %client );
} }
//5 second cooldown on the notification //5 second cooldown on the notification
else if( !%client.ObserverCooldownMsgPlayed ) else if( !%client.ObserverCooldownMsgPlayed )
{ {