12.06.2013, 16:35
PHP код:
forward xMensagensLider ( xCor, const xCelulas [], xNivel ) ; public xMensagensLider ( xCor, const xCelulas[], xNivel )
{
for(new i = 0; i < MAX_PLAYERS; i++)
if ( IsPlayerConnected ( i ) )
if ( PlayerInfo [ playerid ] [ pLider ] >= 1 )
SendClientMessage ( i, xCor, xCelulas ) ;
return true;
}
COMMAND:chatlider ( playerid, params[] ){
new xCelulas [ 128 ], xNick [ 20+1 ] ;
if ( PlayerInfo [ playerid ] [ pLider ] < 1 )
return SendClientMessage ( playerid, -1, "[ ERRO ]: Vocк nгo й lнder" ) ;
if ( isnull ( params ) )
return SendClientMessage ( playerid, -1, "[ USE ]: /chatlider [Texto]" ) ;
GetPlayerName ( playerid, xNick, 21 ) ;
format ( xCelulas, 128, "Lнder %s: %s", xNick, params ) ;
xMensagensLider ( -1, xCelulas, 1 ) ;
return 1 ;
}