Como fazer Chat Lideres -
MoitaGreen - 12.06.2013
Queria Que me passassem como colocar chat de lideres, ja usei search mais nao tem nгo, ai as variaveis das orgs coloquem tipo "variavel" // Aqui a variavel Do lider, sei la, algo assim, ai eu coloco a variavel do lider apenas, PS" tenho 23 orgs "
Obrigado !
Re: Como fazer Chat Lideres -
AlucardSnow - 12.06.2013
ZCMD?
STRCMP?
pawn Код:
CMD:al(playerid, params[])
{
new xRL[128], xNome[21];
for( new i; i < MAX_PLAYERS; i++ )
{
if(IsPlayerAdmin(playerid)) // Coloca a variбvel de lider no lugar do IsPlayerAdmin
{
if(sscanf(params, "s",texto))
{
SendClientMessage(playerid,-1,"[Command]: /al");
}
else
{
GetPlayerName(playerid, xNome, 20);
format(Str, sizeof(Str), "%s: %s", xNome, texto);
SendClientMessage(i, -1, xRL);
}
}
else SendClientMessage(playerid, -1,"Vocк nгo й adminRcon");
}
return true;
}
Edite ao seu gosto.
Re: Como fazer Chat Lideres -
smiiir - 12.06.2013
PHP код:
COMMAND:chatlider ( playerid, params[] ){
new xCelulas [ 128 ], xNick [ 20+1 ]
if ( Variavel do Lider < 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 ;
}
forward xMensagensLider ( xCor, const xCelulas [], xNivel ) ; public xMensagensLider ( xCor, const xCelulas[], xNivel )
{
for(new i = 0; i < MAX_PLAYERS; i++)
if ( IsPlayerConnected ( i ) )
if ( Variavel do lider >= 1 )
SendClientMessage ( i, xCor, xCelulas ) ;
return true;
}
Re: Como fazer Chat Lideres -
MoitaGreen - 12.06.2013
zcmd
Re: Como fazer Chat Lideres -
smiiir - 12.06.2013
le acima
Re: Como fazer Chat Lideres -
MoitaGreen - 12.06.2013
affs desisto rs' compilator fecha man, faz ai ? variavel do lider e essa PlayerInfo[playerid][pLider] e pode colocar qualquer cor msm
Re: Como fazer Chat Lideres -
smiiir - 12.06.2013
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 ;
}
Re: Como fazer Chat Lideres -
MoitaGreen - 12.06.2013
Код:
C:\Users\User\Desktop\Paulo\[GM] Brasil Style Of Life\gamemodes\BrasilStyleOfLifeRp.pwn(45695) : error 017: undefined symbol "cl"
C:\Users\User\Desktop\Paulo\[GM] Brasil Style Of Life\gamemodes\BrasilStyleOfLifeRp.pwn(45699) : error 001: expected token: ";", but found "if"
C:\Users\User\Desktop\Paulo\[GM] Brasil Style Of Life\gamemodes\BrasilStyleOfLifeRp.pwn(45702) : error 017: undefined symbol "isnull"
C:\Users\User\Desktop\Paulo\[GM] Brasil Style Of Life\gamemodes\BrasilStyleOfLifeRp.pwn(45707) : error 017: undefined symbol "params"
C:\Users\User\Desktop\Paulo\[GM] Brasil Style Of Life\gamemodes\BrasilStyleOfLifeRp.pwn(45708) : error 017: undefined symbol "xMensagensLider"
C:\Users\User\Desktop\Paulo\[GM] Brasil Style Of Life\gamemodes\BrasilStyleOfLifeRp.pwn(45712) : warning 225: unreachable code
C:\Users\User\Desktop\Paulo\[GM] Brasil Style Of Life\gamemodes\BrasilStyleOfLifeRp.pwn(45712) : error 029: invalid expression, assumed zero
C:\Users\User\Desktop\Paulo\[GM] Brasil Style Of Life\gamemodes\BrasilStyleOfLifeRp.pwn(45712) : error 017: undefined symbol "xMensagensLider"
C:\Users\User\Desktop\Paulo\[GM] Brasil Style Of Life\gamemodes\BrasilStyleOfLifeRp.pwn(45712) : error 029: invalid expression, assumed zero
C:\Users\User\Desktop\Paulo\[GM] Brasil Style Of Life\gamemodes\BrasilStyleOfLifeRp.pwn(45712) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
9 Errors.
Re: Como fazer Chat Lideres -
smiiir - 12.06.2013
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 ;
}
Re: Como fazer Chat Lideres -
MoitaGreen - 12.06.2013
Код:
C:\Users\User\Desktop\Paulo\[GM] Brasil Style Of Life\gamemodes\BrasilStyleOfLifeRp.pwn(45695) : error 029: invalid expression, assumed zero
C:\Users\User\Desktop\Paulo\[GM] Brasil Style Of Life\gamemodes\BrasilStyleOfLifeRp.pwn(45695) : error 017: undefined symbol "xMensagensLider"
C:\Users\User\Desktop\Paulo\[GM] Brasil Style Of Life\gamemodes\BrasilStyleOfLifeRp.pwn(45695) : error 029: invalid expression, assumed zero
C:\Users\User\Desktop\Paulo\[GM] Brasil Style Of Life\gamemodes\BrasilStyleOfLifeRp.pwn(45695) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
4 Errors.