[Pedido] Como fazer Chat Lideres
#1

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 !
Reply
#2

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.
Reply
#3

PHP код:
COMMAND:chatlider playeridparams[] ){ 

    new 
xCelulas 128 ], xNick 20+]

    if ( 
Variavel do Lider )
        return 
SendClientMessage playerid, -1"[ ERRO ]: Vocк nгo й lнder" ) ;

    if ( 
isnull params ) ) 
        return 
SendClientMessage playerid, -1"[ USE ]: /chatlider [Texto]" ) ;

    
GetPlayerName playeridxNick21 ) ;

    
format xCelulas128"Lнder %s: %s"xNickparams ) ;
    
xMensagensLider  ( -1xCelulas) ;
    return 
;
}

forward xMensagensLider xCor, const xCelulas [], xNivel ) ; public xMensagensLider xCor, const xCelulas[], xNivel )
{
    for(new 
0MAX_PLAYERSi++)
    if ( 
IsPlayerConnected ) )
    if ( 
Variavel do lider >= )
    
SendClientMessage ixCorxCelulas ) ;
    return 
true;

Reply
#4

zcmd
Reply
#5

le acima
Reply
#6

affs desisto rs' compilator fecha man, faz ai ? variavel do lider e essa PlayerInfo[playerid][pLider] e pode colocar qualquer cor msm
Reply
#7

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

Reply
#8

Код:
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.
Reply
#9

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

Reply
#10

Код:
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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)