SA-MP Forums Archive
[Ajuda] Alguem da uma forзa - 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] Alguem da uma forзa (/showthread.php?tid=631524)



Alguem da uma forзa - BrGabrielBr - 31.03.2017

Rapaziada tentei fazer esse comando mas nгo consegui int resolvi pedir a vocкs mais experiente tipo o comando e assim se eu sou setado de Admin Level 6 Fica em cima do meu nick Dono Do servidor se eu sou setado de Gm level 5 Fica no meu nick Gamemaster Se eu sou level 4 Fica SUBGAMEMASTER Tendeu ai tipo ADM ADMINISTRADOR FIXO ADMA ADMINISTRADO TEMPORБRIO ADMT ADMINISTRADOR TESTE e Tbm se sou setado de DM De Morro fica em cima do nick tbm Lider Facзгo Frente Gerente Vapor E Fogueteiro tendeu ? se sou setado de Lider Facзгo e Admin level 6 o Admin q deve aparecer se tive como me passa um comando desse Os cargos sгo :Admin Level 6 Dono Servidor Admin Level 5 GameMaster level 4 Fica SUBGAMEMASTER ADM ADMINISTRADOR FIXO ADMA ADMINISTRADO TEMPORБRIO ADMT ADMINISTRADOR TESTE Lider Facзгo DONO De Morro Frente Gerente Vapor e Fogueteiro


Re: Alguem da uma forзa - Lуs - 31.03.2017

https://sampwiki.blast.hk/wiki/SetPlayerChatBubble
https://sampwiki.blast.hk/wiki/CreatePlayer3DTextLabel


Respuesta: Alguem da uma forзa - BrGabrielBr - 31.03.2017

men pesquisei em tudo nгo do conta afs ta osso kkkk


Re: Alguem da uma forзa - MrJanitor - 31.03.2017

Nгo sei, espero ter ajudado


Re: Alguem da uma forзa - SamuelW - 31.03.2017

Deve tб procurando isso: https://sampforum.blast.hk/showthread.php?tid=334784


Re: Alguem da uma forзa - Rato22 - 31.03.2017

PHP код:
SetTimer("AtualizarChatBubble", 1000, true); //Junto com os Timers em OnGamemodeInit
forward AtualizarChatBubble();  //FINAL DO GAMEMODE
public AtualizarChatBubble()
{
for(new 
x=0; x < MAX_PLAYERS; x++)
{
if(
Player[x][SUA VARIБVEL] >= 1)
{
SetPlayerChatBubble(x, "Dono do Servidor", COR_AZUL, 100.0, 100000);
}
else if(
Player[x][SUA VARIБVEL] >= 1)
{
SetPlayerChatBubble(x, "Game Master", COR_AZUL, 100.0, 100000); 
}
else if(
Player[x][SUA VARНAVEL] >= 1)
{
SetPlayerChatBubble(x, "Sub Game Master", COR_AZUL, 100.0, 100000); 
}
else if(
Player[x][SUA VARIБVEL] >= 1)
{
SetPlayerChatBubble(x, "Administrador Fixo", COR_AZUL, 100.0, 100000); 
}
else if(
Player[x][SUA VARIБVEL] >= 1)
{
SetPlayerChatBubble(x, "Administrador Avanзado", COR_AZUL, 100.0, 100000); 
}
else if(
Player[x][SUA VARIБVEL] >= 1)
{
SetPlayerChatBubble(x, "Administrador Temporбrio", COR_AZUL, 100.0, 100000); 
}
else if(
Player[x][SUA VARIБVEL] >= 1)
{
SetPlayerChatBubble(x, "Lнder Facзгo", COR_AZUL, 100.0, 100000); 
}
else if(
Player[x][SUA VARIБVEL] >= 1)
{
SetPlayerChatBubble(x, "Dono do Morro", COR_AZUL, 100.0, 100000); 
}
else if(
Player[x][SUA VARIБVEL] >= 1)
{
SetPlayerChatBubble(x, "Frente", COR_AZUL, 100.0, 100000); 
}
else if(
Player[x][SUA VARIБVEL] >= 1)
{
SetPlayerChatBubble(x, "Gerente", COR_AZUL, 100.0, 100000); 
}
else if(
Player[x][SUA VARIБVEL] >= 1)
{
SetPlayerChatBubble(x, "Vapor", COR_AZUL, 100.0, 100000); 
}
else if(
Player[x][SUA VARIБVEL] >= 1)
{
SetPlayerChatBubble(x, "Fogueteiro", COR_AZUL, 100.0, 100000); 
}
}
} 



Respuesta: Alguem da uma forзa - BrGabrielBr - 31.03.2017

Rato tu й um mito obrigado por compreender <3


Respuesta: Alguem da uma forзa - BrGabrielBr - 31.03.2017

Rato pode me dizer como vou descobrir a VARIБVEL ? das Fac e dos admins ?


Re: Respuesta: Alguem da uma forзa - Rato22 - 31.03.2017

Quote:
Originally Posted by BrGabrielBr
Посмотреть сообщение
Rato pode me dizer como vou descobrir a VARIБVEL ? das Fac e dos admins ?
Vб em algum comando que sу administrador/Frente/gm utilize.

Exemplo: pAdmin,pFrente,pGerente,pVapor,pFogueteiro,pDM,pLi der...


Re: Alguem da uma forзa - Rato22 - 31.03.2017

PHP код:
SetTimer("AtualizarChatBubble", 1000, true); //Junto com os Timers em OnGamemodeInit 
forward AtualizarChatBubble();  //FINAL DO GAMEMODE 
public AtualizarChatBubble() 
{ 
for(new 
x=0; x < MAX_PLAYERS; x++) 
{ 
if(
Player[x][pAdmin] >= 6) 
{ 
SetPlayerChatBubble(x, "Dono do Servidor", COR_AZUL, 100.0, 100000); 
} 
else if(
Player[x][pAdmin] >= 5) 
{ 
SetPlayerChatBubble(x, "Game Master", COR_AZUL, 100.0, 100000);  
} 
else if(
Player[x][pAdmin] >= 4) 
{ 
SetPlayerChatBubble(x, "Sub Game Master", COR_AZUL, 100.0, 100000);  
} 
else if(
Player[x][pAdmin] >= 3) 
{ 
SetPlayerChatBubble(x, "Administrador Fixo", COR_AZUL, 100.0, 100000);  
} 
else if(
Player[x][pAdmin] >= 2) 
{ 
SetPlayerChatBubble(x, "Administrador Avanзado", COR_AZUL, 100.0, 100000);  
} 
else if(
Player[x][pAdmin] >= 1) 
{ 
SetPlayerChatBubble(x, "Administrador Temporбrio", COR_AZUL, 100.0, 100000);  
} 
else if(
Player[x][pLider] >= 1) 
{ 
SetPlayerChatBubble(x, "Lнder Facзгo", COR_AZUL, 100.0, 100000);  
} 
else if(
Player[x][pDM] >= 1) 
{ 
SetPlayerChatBubble(x, "Dono do Morro", COR_AZUL, 100.0, 100000);  
} 
else if(
Player[x][pFrente] >= 1) 
{ 
SetPlayerChatBubble(x, "Frente", COR_AZUL, 100.0, 100000);  
} 
else if(
Player[x][pGerente] >= 1) 
{ 
SetPlayerChatBubble(x, "Gerente", COR_AZUL, 100.0, 100000);  
} 
else if(
Player[x][pVapor] >= 1) 
{ 
SetPlayerChatBubble(x, "Vapor", COR_AZUL, 100.0, 100000);  
} 
else if(
Player[x][pFogueteiro] >= 1) 
{ 
SetPlayerChatBubble(x, "Fogueteiro", COR_AZUL, 100.0, 100000);  
} 
} 
} 
Ver se funciona...