diff --git a/gamemodes/irresistible/helpers.pwn b/gamemodes/irresistible/helpers.pwn index 4c1c415..8b53d33 100644 --- a/gamemodes/irresistible/helpers.pwn +++ b/gamemodes/irresistible/helpers.pwn @@ -57,6 +57,20 @@ stock SendClientMessageFormatted( playerid, colour, format[ ], va_args<> ) } } +// purpose: send client message to all rcon admins +stock SendClientMessageToRCON( colour, format[ ], va_args<> ) +{ + static + out[ 144 ]; + + va_format( out, sizeof( out ), format, va_start<2> ); + + foreach ( new i : Player ) if ( IsPlayerAdmin( i ) ) { + SendClientMessage( i, colour, out ); + } + return 1; +} + // purpose: trim a string stock trimString( strSrc[ ] ) { diff --git a/gamemodes/sf-cnr.pwn b/gamemodes/sf-cnr.pwn index e8aeede..da3f9f4 100644 --- a/gamemodes/sf-cnr.pwn +++ b/gamemodes/sf-cnr.pwn @@ -103,8 +103,6 @@ new bool: False = false; /* Beast Functions */ -#define SendClientMessageToRCON(%1,%2,%3) \ - do{foreach(new fI : Player){if (IsPlayerAdmin(fI))format(szNormalString,sizeof(szNormalString),(%2),%3),SendClientMessage(fI,(%1),szNormalString);}}while(False) #define SendClientMessageToCops(%1,%2,%3) \ do{foreach(new fI : Player){if (p_Class[fI]==CLASS_POLICE)format(szNormalString,sizeof(szNormalString),(%2),%3),SendClientMessage(fI,(%1),szNormalString);}}while(False) #define SendClientMessageToFireman(%1,%2,%3) \