Nicer notify

This commit is contained in:
ChocoTaco 2019-02-15 03:37:24 -05:00
parent 1773c06a6c
commit 4340e88211

View file

@ -14,15 +14,18 @@ function serverCmdClientMakeObserver( %client )
Game.forceObserver( %client, "playerChoose" );
%client.MakeObserverTimeout = true;
%client.ObserverProtectStart = getSimTime();
schedule(10000, 0, "ResetMakeObserverTimeout", %client );
}
//5 second cooldown on the notification
else if( !%client.ObserverCooldownMsgPlayed )
{
messageClient(%client, 'MsgObserverCooldown', '\c2Observer is on cooldown.' );
%wait = mFloor((10000 - (getSimTime() - %client.ObserverProtectStart)) / 1000);
messageClient(%client, 'MsgObserverCooldown', '\c3Observer Cooldown:\cr Please wait another %1 seconds.', %wait );
//messageClient(%client, 'MsgObserverCooldown', '\c2Observer is on cooldown.' );
%client.ObserverCooldownMsgPlayed = true;
schedule(5000, 0, "ResetObserverCooldownMsgPlayed", %client );
schedule(2000, 0, "ResetObserverCooldownMsgPlayed", %client );
}
}