1
0
mirror of https://github.com/RaidMax/IW4M-Admin.git synced 2025-06-10 15:20:48 -05:00

Game Interface ported to T5. (#254)

* Implement game interface for IW5 and T5
This commit is contained in:
xerxes-at
2022-10-05 16:49:00 +02:00
committed by GitHub
parent 2d3761b430
commit 447737c117
5 changed files with 1054 additions and 13 deletions

View File

@ -578,7 +578,11 @@ NotifyClientEvent( eventInfo )
event.origin = origin;
event.target = target;
LogDebug( "NotifyClientEvent->" + event.data );
if ( IsDefined( event.data ) )
{
LogDebug( "NotifyClientEvent->" + event.data );
}
if ( int( eventInfo[3] ) != -1 && !IsDefined( origin ) )
{
LogDebug( "origin is null but the slot id is " + int( eventInfo[3] ) );
@ -700,7 +704,7 @@ OnExecuteCommand( event )
}
// send back the response to the origin, but only if they're not the target
if ( response != "" && IsPlayer( event.origin ) && event.origin != event.target )
if ( IsDefined( response ) && response != "" && IsPlayer( event.origin ) && event.origin != event.target )
{
event.origin IPrintLnBold( response );
}