SA-MP Forums Archive
[Ajuda] Colocar server em chat global - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Non-English (https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [Ajuda] Colocar server em chat global (/showthread.php?tid=585919)



Colocar server em chat global - Andelux - 17.08.2015

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


Re: Colocar server em chat global - n0minal - 17.08.2015

Posta sua public OnPlayerText...


Re: Colocar server em chat global - bruxo00 - 17.08.2015

Claro que tem.


Re: Colocar server em chat global - n0minal - 17.08.2015

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



Re: Colocar server em chat global - IgorLuiz - 17.08.2015

Mande sua "public onplayertext"


Respuesta: Colocar server em chat global - Andelux - 17.08.2015

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;




Re: Respuesta: Colocar server em chat global - IgorLuiz - 17.08.2015

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;




Respuesta: Colocar server em chat global - Andelux - 17.08.2015

Lotou de Warning


Re: Colocar server em chat global - Wellington1999 - 17.08.2015

Mostra os warning's e as linhas