1
0
mirror of https://github.com/RaidMax/IW4M-Admin.git synced 2025-06-10 07:13:58 -05:00

validate game interface commands to ensure it's enabled before trying to execute

This commit is contained in:
RaidMax
2022-02-18 10:15:11 -06:00
parent 1306f2ad63
commit cbe28360df
2 changed files with 43 additions and 4 deletions

View File

@ -578,7 +578,7 @@ HideImpl()
return;
}
if ( self.isHidden )
if ( IsDefined( self.isHidden ) && self.isHidden )
{
self IPrintLnBold( "You are already hidden" );
return;
@ -682,7 +682,7 @@ NightModeImpl()
foreach( player in level.players )
{
self ToggleNightMode();
player ToggleNightMode();
}
}