[Ajuda] Colocar server em chat global
#1

Tenho uma gm q ta em chat de perto, como faзo pra colocar em chat global?
Reply
#2

Posta sua public OnPlayerText...
Reply
#3

Claro que tem.
Reply
#4

Quote:
Originally Posted by bruxo00
Посмотреть сообщение
Claro que tem.
Reply
#5

Mande sua "public onplayertext"
Reply
#6

PHP код:
// -- CHAT GLOBAL
    
foreach(Playeri)
    {
        if( 
pInfo][ Logado ] == true )
        {
            if( 
aInfoplayerid ][ Admin ] == && aInfoplayerid ][ Moderador ] == && pInfoplayerid ][ PLAYER_VIP ] == )
            {
                
strmidtmptext0strlentext ));
                if( 
strlentmp ) > 65 )
                {
                    
SendClientMessageplayeridCOLOR_ERRO"[ x ] Mensagem muito grande !" );
                    return 
0;
                }
                else
                {
                       new
                        
Float:chatXFloat:chatYFloat:chatZ
                    
;
                    
GetPlayerPosplayeridchatXchatYchatZ );
                    if( 
IsPlayerInRangeOfPointi15.0chatXchatYchatZ ) || aInfo][ Admin ] == && pInfo][ vchat ] == || aInfo][ Moderador ] == && pInfo][ vchat ] == )
                    {
                        
formatgstringsizeofgstring ), "• [ %d ] %s{FFFFFF}  %s"playeridPlayerNameplayerid ), tmp );
                        
SendClientMessageiGetPlayerColorplayerid ), gstring );
                    }
                    if( 
pInfoplayerid ][ Level ] < && aInfo][ Admin ] == || pInfoplayerid ][ Level ] < && aInfo][ Moderador ] == )
                    {
                        
formatgstringsizeofgstring ), "• ( N ) [ %d ] %s{FFFFFF}  %s"playeridPlayerNameplayerid ), tmp );
                        
SendClientMessageiGetPlayerColorplayerid ), gstring );
                    }
                    if( 
pInfoplayerid ][ Level ] > && aInfo][ Admin ] == && pInfo][ vchat2 ] == || aInfo][ Moderador ] == && pInfo][ vchat2 ] == )
                    {
                        
formatgstringsizeofgstring ), "• [ %d ] %s{FFFFFF}  %s"playeridPlayerNameplayerid ), tmp );
                        
SendClientMessageiGetPlayerColorplayerid ), gstring );
                    }
                 }
            }
            else
            {
                new
                    
Float:chatXFloat:chatYFloat:chatZ
                
;
                
GetPlayerPosplayeridchatXchatYchatZ );
                if( 
aInfoplayerid ][ Admin ] == )
                {
                     
strmidtmptext0strlentext ));
                     
formatgstringsizeofgstring ), "® [ %d ] %s{FFFFFF}  %s"playeridPlayerNameplayerid ), tmp );
                     if( 
pInfoplayerid ][ chat ] == )
                    {
                         if( 
IsPlayerInRangeOfPointi15.0chatXchatYchatZ ))
                        {
                            
SendClientMessageiGetPlayerColorplayerid ), gstring );
                         }
                    }
                    if( 
pInfoplayerid ][ chat ] == )
                    {
                         
SendClientMessageiGetPlayerColorplayerid ), gstring );
                    }
                }
                if( 
aInfoplayerid ][ Gerente ] == )
                {
                     
strmidtmptext0strlentext ));
                     
formatgstringsizeofgstring ), "® [ %d ] %s{FFFFFF}  %s"playeridPlayerNameplayerid ), tmp );
                     if( 
pInfoplayerid ][ chat ] == )
                    {
                         if( 
IsPlayerInRangeOfPointi15.0chatXchatYchatZ ))
                        {
                            
SendClientMessageiGetPlayerColorplayerid ), gstring );
                         }
                    }
                    if( 
pInfoplayerid ][ chat ] == )
                    {
                         
SendClientMessageiGetPlayerColorplayerid ), gstring );
                    }
                }
                if( 
aInfoplayerid ][ Moderador ] == )
                {
                     
strmidtmptext0strlentext ));
                    
formatgstringsizeofgstring ), "© [ %d ] %s{FFFFFF}  %s"playeridPlayerNameplayerid ), tmp );
                    if( 
pInfoplayerid ][ chat ] == )
                    {
                        if( 
IsPlayerInRangeOfPointi15.0chatXchatYchatZ ))
                        {
                             
SendClientMessageiGetPlayerColorplayerid ), gstring );
                         }
                    }
                     if( 
pInfoplayerid ][ chat ] == )
                     {
                         
SendClientMessageiGetPlayerColorplayerid ), gstring );
                    }
                }
                if( 
pInfoplayerid ][ PLAYER_VIP ] == && aInfoplayerid ][ Admin ] == )
                {
                    
strmidtmptext0strlentext ));
                     
formatgstringsizeofgstring ), "• [ %d ] [VIP] %s{FFFFFF}  %s"playeridPlayerNameplayerid ), tmp );
                    if( 
IsPlayerInRangeOfPointi15.0chatXchatYchatZ ))
                    {
                         
SendClientMessageiGetPlayerColorplayerid ), gstring );
                    }
                }
            }
        }
    }
    
formatdigitouChatplayerid ], 128"%s"text );
    return 
0;

Reply
#7

use assim
PHP код:
    foreach(Playeri)
    {
        if( 
pInfo][ Logado ] == true )
        {
            if( 
aInfoplayerid ][ Admin ] == && aInfoplayerid ][ Moderador ] == && pInfoplayerid ][ PLAYER_VIP ] == )
            {
                
strmidtmptext0strlentext ));
                if( 
strlentmp ) > 65 )
                {
                    
SendClientMessageplayeridCOLOR_ERRO"[ x ] Mensagem muito grande !" );
                    return 
0;
                }
                else
                {
                       new
                        
Float:chatXFloat:chatYFloat:chatZ
                    
;
                    
GetPlayerPosplayeridchatXchatYchatZ );
                    if(
aInfo][ Admin ] == && pInfo][ vchat ] == || aInfo][ Moderador ] == && pInfo][ vchat ] == )
                    {
                        
formatgstringsizeofgstring ), "• [ %d ] %s{FFFFFF}  %s"playeridPlayerNameplayerid ), tmp );
                        
SendClientMessageiGetPlayerColorplayerid ), gstring );
                    }
                    if( 
pInfoplayerid ][ Level ] < && aInfo][ Admin ] == || pInfoplayerid ][ Level ] < && aInfo][ Moderador ] == )
                    {
                        
formatgstringsizeofgstring ), "• ( N ) [ %d ] %s{FFFFFF}  %s"playeridPlayerNameplayerid ), tmp );
                        
SendClientMessageiGetPlayerColorplayerid ), gstring );
                    }
                    if( 
pInfoplayerid ][ Level ] > && aInfo][ Admin ] == && pInfo][ vchat2 ] == || aInfo][ Moderador ] == && pInfo][ vchat2 ] == )
                    {
                        
formatgstringsizeofgstring ), "• [ %d ] %s{FFFFFF}  %s"playeridPlayerNameplayerid ), tmp );
                        
SendClientMessageiGetPlayerColorplayerid ), gstring );
                    }
                 }
            }
            else
            {
                new
                    
Float:chatXFloat:chatYFloat:chatZ
                
;
                
GetPlayerPosplayeridchatXchatYchatZ );
                if( 
aInfoplayerid ][ Admin ] == )
                {
                     
strmidtmptext0strlentext ));
                     
formatgstringsizeofgstring ), "® [ %d ] %s{FFFFFF}  %s"playeridPlayerNameplayerid ), tmp );
                    if( 
pInfoplayerid ][ chat ] == )
                    {
                        
SendClientMessageiGetPlayerColorplayerid ), gstring );
                    }
                    if( 
pInfoplayerid ][ chat ] == )
                    {
                         
SendClientMessageiGetPlayerColorplayerid ), gstring );
                    }
                }
                if( 
aInfoplayerid ][ Gerente ] == )
                {
                     
strmidtmptext0strlentext ));
                     
formatgstringsizeofgstring ), "® [ %d ] %s{FFFFFF}  %s"playeridPlayerNameplayerid ), tmp );
                    if( 
pInfoplayerid ][ chat ] == )
                    {
                         
SendClientMessageiGetPlayerColorplayerid ), gstring );
                    }
                    if( 
pInfoplayerid ][ chat ] == )
                    {
                         
SendClientMessageiGetPlayerColorplayerid ), gstring );
                    }
                }
                if( 
aInfoplayerid ][ Moderador ] == )
                {
                     
strmidtmptext0strlentext ));
                    
formatgstringsizeofgstring ), "© [ %d ] %s{FFFFFF}  %s"playeridPlayerNameplayerid ), tmp );
                    if( 
pInfoplayerid ][ chat ] == )
                    {
                         
SendClientMessageiGetPlayerColorplayerid ), gstring );
                    }
                     if( 
pInfoplayerid ][ chat ] == )
                     {
                         
SendClientMessageiGetPlayerColorplayerid ), gstring );
                    }
                }
                if( 
pInfoplayerid ][ PLAYER_VIP ] == && aInfoplayerid ][ Admin ] == )
                {
                    
strmidtmptext0strlentext ));
                    
formatgstringsizeofgstring ), "• [ %d ] [VIP] %s{FFFFFF}  %s"playeridPlayerNameplayerid ), tmp );
                    
SendClientMessageiGetPlayerColorplayerid ), gstring );
                }
            }
        }
    }
    
formatdigitouChatplayerid ], 128"%s"text );
    return 
0;

Reply
#8

Lotou de Warning
Reply
#9

Mostra os warning's e as linhas
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)