Advertisement
NERYSVAN_TV

Adicionando Texto em cima da Cabeça

May 11th, 2024 (edited)
239
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 1.51 KB | Source Code | 0 0
  1. //No Inicio do GM Adicione
  2. forward TextChatBubble();
  3.  
  4. em OnGameModeInit adicione um Timer
  5. public OnGameModeInit()
  6. {
  7.     SetTimer("TextChatBubble" 1000, true);
  8.     return 1;
  9. }
  10. public TextChatBubble()                                    
  11. {                                                              
  12.     for(new i=0; i<MAX_PLAYERS; i++)
  13.    {                                                                                    
  14.         if(PlayerInfo[i][pAdmin] == 1342)//Level do Administrador                              
  15.         {                                                                                    
  16.              SetPlayerChatBubble(i,"Administrador", COLOR_RED,100.0, 1000);                                          
  17.         }
  18.          if(PlayerInfo[i][pVIP] > 0)//Level do VIP                              
  19.          {                                                                                    
  20.               SetPlayerChatBubble(i,"VIP", COLOR_RED,100.0, 1000);                                          
  21.          }
  22.          if(PlayerInfo[i][pHelper] > 0)//Level do Helper
  23.          {
  24.              SetPlayerChatBubble(i,"Helper", COLOR_RED,100.0, 1000);                                          
  25.          }                                                      
  26.     }                                                        
  27. }
  28.  
  29. //COLOR_RED = A Cor em que o Texto irá aparecer
  30. //100.0 = A Distancia em que você verá o texto
  31. //10000 = Tempo em que o Texto irá ficar na Cabeça em Milissegundos
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement