[Pedido] Chat Bubble - 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: [Pedido] Chat Bubble (
/showthread.php?tid=632350)
Chat Bubble -
bilibil - 12.04.2017
Preciso de um chat bubble que fica escrito "Administrador" emcima da cabeзa
meu servidor й de mata mata se puderem ajudar fico grato
Re: Chat Bubble -
Toroi - 12.04.2017
https://sampwiki.blast.hk/wiki/Create3DTextLabel
https://sampwiki.blast.hk/wiki/Attach3DTextLabelToPlayer
Re: Chat Bubble -
Feelipe - 12.04.2017
pawn Код:
forward AtualizarChatBubble(); //Coloque junto as suas forwards
SetTimer("AtualizarChatBubble", 1000, true); //Coloque em ongamemodeinit
public AtualizarChatBubble()
{
for(new x=0; x < MAX_PLAYERS; x++)
{
if Sua variбvel de administrador
{
SetPlayerChatBubble(x, "Administrador", -1, 100.0, 10000); // -1 = cor .
}
}
}
Re: Chat Bubble -
Pedro1812 - 13.04.2017
coloque isso no fim da fs do Ladmin.
PHP код:
public admin() for(new I = 0; I < MAX_PLAYERS; I ++) if(IsPlayerConnected(I) && PlayerInfo[I][Level] >= 1) SetPlayerChatBubble(I,"Administrador(a)", 0xFF0000FF, 50.0, 1100);
procure na fs escrito:
PHP код:
// -------------------------------------------------------------------------------------------- MANDAR PARA GM
e coloque isso no fim dela.
PHP код:
forward admin();
public OnGameModeInit()
{
SetTimer("admin", 1000, true);
return 1;
}
Re: Chat Bubble -
Pedro1812 - 13.04.2017
Quote:
Originally Posted by DBxPlayer
Cara, nem todo mundo usa os filterscript que vocк usa, entгo tente pensar antes de postar.
|
ele disse que й servidor de mata mata, servidores de mata mata costuma a usar ladmin pois ele й mais praticado pra identificar cheaters etc.., entгo passei o "administrador(a)".
Re: Chat Bubble -
HoodScript - 13.04.2017
Quote:
Originally Posted by Feelipe
pawn Код:
forward AtualizarChatBubble(); //Coloque junto as suas forwards SetTimer("AtualizarChatBubble", 1000, true); //Coloque em ongamemodeinit
public AtualizarChatBubble() { for(new x=0; x < MAX_PLAYERS; x++) { if Sua variбvel de administrador { SetPlayerChatBubble(x, "Administrador", -1, 100.0, 10000); // -1 = cor . } } }
|
super desnecessбrio criar um timer pra ficar atualizando chatbubble й sу utilizar um textlabel no onplayerconnect