mirror of
https://github.com/ChocoTaco1/TacoServer.git
synced 2026-07-16 00:24:35 +00:00
Formatting
This commit is contained in:
parent
4340e88211
commit
d2c74f5164
1 changed files with 4 additions and 4 deletions
|
|
@ -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 )
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue