mirror of
https://github.com/ChocoTaco1/TacoServer.git
synced 2026-03-06 13:10:21 +00:00
Nicer notify
This commit is contained in:
parent
1773c06a6c
commit
4340e88211
1 changed files with 5 additions and 2 deletions
|
|
@ -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 );
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue