Ajuda comando /radio.
#1

Bom o comando funciona e tal.

Mais como poder ver й um comando sу pra cada organizaзгo..

pawn Код:
CMD:radio(playerid,params[])
    {
        if(Gang[playerid]!= ballas && Gang[playerid]!= aztecas && Gang[playerid]!= grove && Gang[playerid]!= vagos) return scm(playerid,Error,"Vocк nгo й de nenhuma organizaзгo!");
        {
            new str_op[128];
            if(sscanf(params, "s[128]", str_op))
            return SendClientMessage(playerid,Error,"Use: /rбdio [mensagem].");
            new player_name[MAX_PLAYER_NAME],
            str_msg[128];
            GetPlayerName(playerid,player_name,MAX_PLAYER_NAME);
            format(str_msg,sizeof str_msg,"Rбdio %s: %s",player_name,str_op);
            for(new slots = GetMaxPlayers(),i;i<slots; i++)
            scm(i,Neutra,str_msg);
        }
        return 1;
    }
Tipo desta forma todas as orgs vem o que a grove digitou por exemplo eu quero que quando um grove digitar so o cara da organizaзгo dele pode ler..
E que o texto dele fique com a cor verde.. e com as outras orgs tambйm no total sгo 4.
Reply
#2

tenta adaptar esse ao seu gm ou estuda ele =D


PHP код:
CMD:gangue(playeridparams[])  return cmd_ganguee(playeridparams);
CMD:ga(playeridparams[])  return cmd_ganguee(playeridparams);
CMD:ganguee(playeridparams[])
{
    if(
PlayerInfo[playerid][pMuted] == 1)
    {
        
SendClientMessage(playeridTEAM_CYAN_COLOR"Vocк nгo pode falar, pois foi calado");
        return 
1;
    }
    if(
PlayerInfo[playerid][pJailed] == 2)
    {
        
SendClientMessage(playerid0x9E50FFAA"Vocк nгo pode usar esse comando na cadeia !");
        return 
1;
    }
    
GetPlayerName(playeridNomesizeof(Nome));
    if(
isnull(params))        return SendClientMessage(playeridCOLOR_GRAD2"Digite: (/ga) [ORG CHAT]");
    if(
TentouDivulgar(params))
    {
        if(
cdivulgar[playerid] >= 6)
        {
            
SendClientMessage(playeridCOLOR_LIGHTBLUE"Aqui vocк nгo pode anunciar servidores !");
            
SendClientMessage(playeridCOLOR_LIGHTBLUE"Cuidado, Poderб ser banido.");
            
SendClientMessage(playeridCOLOR_LIGHTBLUE"Evite digitar muitos nъmeros consecutivos.");
            
PlayerPlaySound(playerid11330.00.00.0);
            
Kick(playerid);
        }
        
GetPlayerName(playeridNomeMAX_PLAYER_NAME);
        
format(STR128"AdmAviso: [%d]%s tentou divulgar: %s."playeridNomeparams);
        
ABroadCast(COLOR_YELLOWSTR1);
        
DivulgouLog(STR);
        
cdivulgar[playerid] += 1;
        return 
1;
    }
    if(
PlayerInfo[playerid][pLider] > || PlayerInfo[playerid][pMembro] > 0)
    {

        new 
leader PlayerInfo[playerid][pLider];
        new 
member PlayerInfo[playerid][pMembro];
        if(
member == 5)
        {
            if(
PlayerInfo[playerid][pCargo] == 6) { format(STRsizeof(STR), "* Chefгo (%s) %s. )) **"Nomeparams); }
            else if(
PlayerInfo[playerid][pCargo] == 5) { format(STRsizeof(STR), "* Sub-Chefe (%s) %s. )) **"Nomeparams); }
            else if(
PlayerInfo[playerid][pCargo] == 4) { format(STRsizeof(STR), "* Gangster (%s) %s. ))  **"Nomeparams); }
            else if(
PlayerInfo[playerid][pCargo] == 3) { format(STRsizeof(STR), "* Capanga (%s) %s. ))  **"Nomeparams); }
            else if(
PlayerInfo[playerid][pCargo] == 2) { format(STRsizeof(STR), "* Fogueteiro (%s) %s. ))  **"Nomeparams); }
            else if(
PlayerInfo[playerid][pCargo] == 1) { format(STRsizeof(STR), "* Novato (%s) %s. ))  **"Nomeparams); }
            else { 
format(STRsizeof(STR), "* Novato (%s) %s. ))  **"Nomeparams); }
            
SendFamilyMessage(PlayerInfo[playerid][pMembro], COLOR_GASTR);
        }
        if(
member == 6)
        {
            if(
PlayerInfo[playerid][pCargo] == 6) { format(STRsizeof(STR), "* Ahmed Yassin (%s) %s. )) **"Nomeparams); }
            else if(
PlayerInfo[playerid][pCargo] == 5) { format(STRsizeof(STR), "* Sub-Chefe (%s) %s. )) **"Nomeparams); }
            else if(
PlayerInfo[playerid][pCargo] == 4) { format(STRsizeof(STR), "* Bombadeador (%s) %s. ))  **"Nomeparams); }
            else if(
PlayerInfo[playerid][pCargo] == 3) { format(STRsizeof(STR), "* Terrorista (%s) %s. ))  **"Nomeparams); }
            else if(
PlayerInfo[playerid][pCargo] == 2) { format(STRsizeof(STR), "* Membro (%s) %s. ))  **"Nomeparams); }
            else if(
PlayerInfo[playerid][pCargo] == 1) { format(STRsizeof(STR), "* Homem-Bomba (%s) %s. ))  **"Nomeparams); }
            else { 
format(STRsizeof(STR), "* Homem-Bomba (%s) %s. ))  **"Nomeparams); }
            
SendFamilyMessage(PlayerInfo[playerid][pMembro], COLOR_GASTR);
        }
        if(
member == 8)
        {
            if(
PlayerInfo[playerid][pCargo] == 6) { format(STRsizeof(STR), "* Diretor (%s) %s. )) **"Nomeparams); }
            else if(
PlayerInfo[playerid][pCargo] == 5) { format(STRsizeof(STR), "* Vice-Diretor (%s) %s. )) **"Nomeparams); }
            else if(
PlayerInfo[playerid][pCargo] == 4) { format(STRsizeof(STR), "* Agente Especial (%s) %s. ))  **"Nomeparams); }
            else if(
PlayerInfo[playerid][pCargo] == 3) { format(STRsizeof(STR), "* Agente (%s) %s. ))  **"Nomeparams); }
            else if(
PlayerInfo[playerid][pCargo] == 2) { format(STRsizeof(STR), "* Assassino (%s) %s. ))  **"Nomeparams); }
            else if(
PlayerInfo[playerid][pCargo] == 1) { format(STRsizeof(STR), "* Aprendiz (%s) %s. ))  **"Nomeparams); }
            else { 
format(STRsizeof(STR), "* Aprendiz (%s) %s. ))  **"Nomeparams); }
            
SendFamilyMessage(PlayerInfo[playerid][pMembro], COLOR_GASTR);
        }
        if(
member == 9)
        {
            if(
PlayerInfo[playerid][pCargo] == 6) { format(STRsizeof(STR), "* Diretor de Produзгo (%s) %s. )) **"Nomeparams); }
            else if(
PlayerInfo[playerid][pCargo] == 5) { format(STRsizeof(STR), "* Produзгo (%s) %s. )) **"Nomeparams); }
            else if(
PlayerInfo[playerid][pCargo] == 4) { format(STRsizeof(STR), "* Editor Local (%s) %s. ))  **"Nomeparams); }
            else if(
PlayerInfo[playerid][pCargo] == 3) { format(STRsizeof(STR), "* Repуrter Nacional (%s) %s. ))  **"Nomeparams); }
            else if(
PlayerInfo[playerid][pCargo] == 2) { format(STRsizeof(STR), "* Repуrter Local (%s) %s. ))  **"Nomeparams); }
            else if(
PlayerInfo[playerid][pCargo] == 1) { format(STRsizeof(STR), "* Humorista (%s) %s. ))  **"Nomeparams); }
            else { 
format(STRsizeof(STR), "* Humorista (%s) %s )) **"Nomeparams); }
            
SendFamilyMessage(PlayerInfo[playerid][pMembro], COLOR_GASTR);
        }
        if(
member == 10)
        {
            if(
PlayerInfo[playerid][pCargo] == 6) { format(STRsizeof(STR), "* Chefe (%s) %s. )) **"Nomeparams); }
            else if(
PlayerInfo[playerid][pCargo] == 5) { format(STRsizeof(STR), "* Sub-Chefe (%s) %s. )) **"Nomeparams); }
            else if(
PlayerInfo[playerid][pCargo] == 4) { format(STRsizeof(STR), "* Taxista Profissional (%s) %s. ))  **"Nomeparams); }
            else if(
PlayerInfo[playerid][pCargo] == 3) { format(STRsizeof(STR), "* Taxista Experiente (%s) %s. ))  **"Nomeparams); }
            else if(
PlayerInfo[playerid][pCargo] == 2) { format(STRsizeof(STR), "* Taxista (%s) %s. ))  **"Nomeparams); }
            else if(
PlayerInfo[playerid][pCargo] == 1) { format(STRsizeof(STR), "* Taxista Em Treinamento (%s) %s. ))  **"Nomeparams); }
            else { 
format(STRsizeof(STR), "* Taxista em Treinamento (%s) %s. )) **"Nomeparams); }
            
SendFamilyMessage(PlayerInfo[playerid][pMembro], COLOR_GASTR);
        }
        if(
member == 14)
        {
            if(
PlayerInfo[playerid][pCargo] == 6) { format(STRsizeof(STR), "* Chefгo (%s) %s. )) **"Nomeparams); }
            else if(
PlayerInfo[playerid][pCargo] == 5) { format(STRsizeof(STR), "* Sub-Chefe (%s) %s. )) **"Nomeparams); }
            else if(
PlayerInfo[playerid][pCargo] == 4) { format(STRsizeof(STR), "* Gangster (%s) %s. ))  **"Nomeparams); }
            else if(
PlayerInfo[playerid][pCargo] == 3) { format(STRsizeof(STR), "* Capanga (%s) %s. ))  **"Nomeparams); }
            else if(
PlayerInfo[playerid][pCargo] == 2) { format(STRsizeof(STR), "* Fogueteiro (%s) %s. ))  **"Nomeparams); }
            else if(
PlayerInfo[playerid][pCargo] == 1) { format(STRsizeof(STR), "* Novato (%s) %s. ))  **"Nomeparams); }
            else { 
format(STRsizeof(STR), "* Novato (%s) %s. )) **"Nomeparams); }
            
SendFamilyMessage(PlayerInfo[playerid][pMembro], COLOR_GASTR);
        }
        if(
member == 15)
        {
            if(
PlayerInfo[playerid][pCargo] == 6) { format(STRsizeof(STR), "* Osama Bin Laden (%s) %s. )) **"Nomeparams); }
            else if(
PlayerInfo[playerid][pCargo] == 5) { format(STRsizeof(STR), "* Sub-Chefe (%s) %s. )) **"Nomeparams); }
            else if(
PlayerInfo[playerid][pCargo] == 4) { format(STRsizeof(STR), "* Bombadeador (%s) %s. ))  **"Nomeparams); }
            else if(
PlayerInfo[playerid][pCargo] == 3) { format(STRsizeof(STR), "* Terrorista (%s) %s. ))  **"Nomeparams); }
            else if(
PlayerInfo[playerid][pCargo] == 2) { format(STRsizeof(STR), "* Membro (%s) %s ))  **"Nomeparams); }
            else if(
PlayerInfo[playerid][pCargo] == 1) { format(STRsizeof(STR), "* Homem-Bomba (%s) %s. ))  **"Nomeparams); }
            else { 
format(STRsizeof(STR), "* Homem-Bomba (%s) %s. )) **"Nomeparams); }
            
SendFamilyMessage(PlayerInfo[playerid][pMembro], COLOR_GASTR);
        }
        if(
member == 17)
        {
            if(
PlayerInfo[playerid][pCargo] == 6) { format(STRsizeof(STR), "* Chefгo (%s) %s. )) **"Nomeparams); }
            else if(
PlayerInfo[playerid][pCargo] == 5) { format(STRsizeof(STR), "* Sub-Chefe (%s) %s. )) **"Nomeparams); }
            else if(
PlayerInfo[playerid][pCargo] == 4) { format(STRsizeof(STR), "* Gangster (%s) %s. ))  **"Nomeparams); }
            else if(
PlayerInfo[playerid][pCargo] == 3) { format(STRsizeof(STR), "* Capanga (%s) %s. ))  **"Nomeparams); }
            else if(
PlayerInfo[playerid][pCargo] == 2) { format(STRsizeof(STR), "* Fogueteiro (%s) %s. ))  **"Nomeparams); }
            else if(
PlayerInfo[playerid][pCargo] == 1) { format(STRsizeof(STR), "* Novato (%s) %s. ))  **"Nomeparams); }
            else { 
format(STRsizeof(STR), "* Novato (%s) %s. )) **"Nomeparams); }
            
SendFamilyMessage(PlayerInfo[playerid][pMembro], COLOR_GASTR);
        }
        if(
member == 18)
        {
            if(
PlayerInfo[playerid][pCargo] == 6) { format(STRsizeof(STR), "* Chefгo (%s) %s. )) **"Nomeparams); }
            else if(
PlayerInfo[playerid][pCargo] == 5) { format(STRsizeof(STR), "* Sub-Chefe (%s) %s. )) **"Nomeparams); }
            else if(
PlayerInfo[playerid][pCargo] == 4) { format(STRsizeof(STR), "* Gangster (%s) %s. ))  **"Nomeparams); }
            else if(
PlayerInfo[playerid][pCargo] == 3) { format(STRsizeof(STR), "* Capanga (%s) %s. ))  **"Nomeparams); }
            else if(
PlayerInfo[playerid][pCargo] == 2) { format(STRsizeof(STR), "* Fogueteiro (%s) %s. ))  **"Nomeparams); }
            else if(
PlayerInfo[playerid][pCargo] == 1) { format(STRsizeof(STR), "* Novato (%s) %s. ))  **"Nomeparams); }
            else { 
format(STRsizeof(STR), "* Novato (%s) %s. )) **"Nomeparams); }
            
SendFamilyMessage(PlayerInfo[playerid][pMembro], COLOR_GASTR);
        }
        if(
member == 19)
        {
            if(
PlayerInfo[playerid][pCargo] == 6) { format(STRsizeof(STR), "* Chefгo (%s) %s. )) **"Nomeparams); }
            else if(
PlayerInfo[playerid][pCargo] == 5) { format(STRsizeof(STR), "* Sub-Chefe (%s) %s. )) **"Nomeparams); }
            else if(
PlayerInfo[playerid][pCargo] == 4) { format(STRsizeof(STR), "* Gangster (%s) %s. ))  **"Nomeparams); }
            else if(
PlayerInfo[playerid][pCargo] == 3) { format(STRsizeof(STR), "* Capanga (%s) %s. ))  **"Nomeparams); }
            else if(
PlayerInfo[playerid][pCargo] == 2) { format(STRsizeof(STR), "* Fogueteiro (%s) %s. ))  **"Nomeparams); }
            else if(
PlayerInfo[playerid][pCargo] == 1) { format(STRsizeof(STR), "* Novato (%s) %s. ))  **"Nomeparams); }
            else { 
format(STRsizeof(STR), "* Novato (%s) %s. )) **"Nomeparams); }
            
SendFamilyMessage(PlayerInfo[playerid][pMembro], COLOR_GASTR);
        }
        if(
member == 20)
        {
            if(
PlayerInfo[playerid][pCargo] == 6) { format(STRsizeof(STR), "* Chefгo (%s) %s. )) **"Nomeparams); }
            else if(
PlayerInfo[playerid][pCargo] == 5) { format(STRsizeof(STR), "* Sub-Chefe (%s) %s. )) **"Nomeparams); }
            else if(
PlayerInfo[playerid][pCargo] == 4) { format(STRsizeof(STR), "* Gangster (%s) %s. ))  **"Nomeparams); }
            else if(
PlayerInfo[playerid][pCargo] == 3) { format(STRsizeof(STR), "* Capanga (%s) %s. ))  **"Nomeparams); }
            else if(
PlayerInfo[playerid][pCargo] == 2) { format(STRsizeof(STR), "* Fogueteiro (%s) %s. ))  **"Nomeparams); }
            else if(
PlayerInfo[playerid][pCargo] == 1) { format(STRsizeof(STR), "* Novato (%s) %s. ))  **"Nomeparams); }
            else { 
format(STRsizeof(STR), "* Novato (%s) %s. )) **"Nomeparams); }
            
SendFamilyMessage(PlayerInfo[playerid][pMembro], COLOR_GASTR);
        }
        if(
member == 21)
        {
            if(
PlayerInfo[playerid][pCargo] == 6) { format(STRsizeof(STR), "* Motoqueiro-Chefгo (%s) %s. )) **"Nomeparams); }
            else if(
PlayerInfo[playerid][pCargo] == 5) { format(STRsizeof(STR), "* Motoqueiro-Sub (%s) %s. )) **"Nomeparams); }
            else if(
PlayerInfo[playerid][pCargo] == 4) { format(STRsizeof(STR), "* Motoqueiro-Experiente (%s) %s. ))  **"Nomeparams); }
            else if(
PlayerInfo[playerid][pCargo] == 3) { format(STRsizeof(STR), "* Motoqueiro-Profissional (%s) %s. ))  **"Nomeparams); }
            else if(
PlayerInfo[playerid][pCargo] == 2) { format(STRsizeof(STR), "* Motoqueiro-Aprendiz (%s) %s. ))  **"Nomeparams); }
            else if(
PlayerInfo[playerid][pCargo] == 1) { format(STRsizeof(STR), "* Motoqueiro-Novato (%s) %s. ))  **"Nomeparams); }
            else { 
format(STRsizeof(STR), "* Motoqueiro-Novato (%s) %s. )) **"Nomeparams); }
            
SendFamilyMessage(PlayerInfo[playerid][pMembro], COLOR_GASTR);
        }
        if(
member == 22)
        {
            if(
PlayerInfo[playerid][pCargo] == 6) { format(STRsizeof(STR), "* Motoqueiro-Chefгo (%s) %s. )) **"Nomeparams); }
            else if(
PlayerInfo[playerid][pCargo] == 5) { format(STRsizeof(STR), "* Motoqueiro-Sub (%s) %s. )) **"Nomeparams); }
            else if(
PlayerInfo[playerid][pCargo] == 4) { format(STRsizeof(STR), "* Motoqueiro-Experiente (%s) %s. ))  **"Nomeparams); }
            else if(
PlayerInfo[playerid][pCargo] == 3) { format(STRsizeof(STR), "* Motoqueiro-Profissional (%s) %s. ))  **"Nomeparams); }
            else if(
PlayerInfo[playerid][pCargo] == 2) { format(STRsizeof(STR), "* Motoqueiro-Aprendiz (%s) %s. ))  **"Nomeparams); }
            else if(
PlayerInfo[playerid][pCargo] == 1) { format(STRsizeof(STR), "* Motoqueiro-Novato (%s) %s. ))  **"Nomeparams); }
            else { 
format(STRsizeof(STR), "* Motoqueiro-Novato (%s) %s. )) **"Nomeparams); }
            
SendFamilyMessage(PlayerInfo[playerid][pMembro], COLOR_GASTR);
        }
        if(
member == 13)
        {
            if(
PlayerInfo[playerid][pCargo] == 6) { format(STRsizeof(STR), "* Don (%s) %s. )) **"Nomeparams); }
            else if(
PlayerInfo[playerid][pCargo] == 5) { format(STRsizeof(STR), "* Consiglieri (%s) %s. )) **"Nomeparams); }
            else if(
PlayerInfo[playerid][pCargo] == 4) { format(STRsizeof(STR), "* Capo (%s) %s. ))  **"Nomeparams); }
            else if(
PlayerInfo[playerid][pCargo] == 3) { format(STRsizeof(STR), "* Soldatto (%s) %s. ))  **"Nomeparams); }
            else if(
PlayerInfo[playerid][pCargo] == 2) { format(STRsizeof(STR), "* Assossiado (%s) %s. ))  **"Nomeparams); }
            else if(
PlayerInfo[playerid][pCargo] == 1) { format(STRsizeof(STR), "* Novizio (%s) %s. ))  **"Nomeparams); }
            else { 
format(STRsizeof(STR), "* Novizio (%s) %s. )) **"Nomeparams); }
            
SendFamilyMessage(PlayerInfo[playerid][pMembro], COLOR_GASTR);
        }
        if(
member == 12)
        {
            if(
PlayerInfo[playerid][pCargo] == 6) { format(STRsizeof(STR), "* Don (%s) %s. )) **"Nomeparams); }
            else if(
PlayerInfo[playerid][pCargo] == 5) { format(STRsizeof(STR), "* Capo Bastone (%s) %s. )) **"Nomeparams); }
            else if(
PlayerInfo[playerid][pCargo] == 4) { format(STRsizeof(STR), "* Capo Regime (%s) %s. ))  **"Nomeparams); }
            else if(
PlayerInfo[playerid][pCargo] == 3) { format(STRsizeof(STR), "* Sgarrista (%s) %s. ))  **"Nomeparams); }
            else if(
PlayerInfo[playerid][pCargo] == 2) { format(STRsizeof(STR), "* Picciotto (%s) %s. ))  **"Nomeparams); }
            else if(
PlayerInfo[playerid][pCargo] == 1) { format(STRsizeof(STR), "* Associate (%s) %s. ))  **"Nomeparams); }
            else { 
format(STRsizeof(STR), "* Associate (%s) %s. )) **"Nomeparams); }
            
SendFamilyMessage(PlayerInfo[playerid][pMembro], COLOR_GASTR);
        }
        if(
member == 24)
        {
            if(
PlayerInfo[playerid][pCargo] == 6) { format(STRsizeof(STR), "* Mecanico-Chefe (%s) %s. )) **"Nomeparams); }
            else if(
PlayerInfo[playerid][pCargo] == 5) { format(STRsizeof(STR), "* Sub-Chefe (%s) %s. )) **"Nomeparams); }
            else if(
PlayerInfo[playerid][pCargo] == 4) { format(STRsizeof(STR), "* Mecanico Profissional (%s) %s. ))  **"Nomeparams); }
            else if(
PlayerInfo[playerid][pCargo] == 3) { format(STRsizeof(STR), "* Mecanico Experiente (%s) %s. ))  **"Nomeparams); }
            else if(
PlayerInfo[playerid][pCargo] == 2) { format(STRsizeof(STR), "* Mecanico Aprendiz (%s) %s. ))  **"Nomeparams); }
            else if(
PlayerInfo[playerid][pCargo] == 1) { format(STRsizeof(STR), "* Mecanico Em Treinamento (%s) %s. ))  **"Nomeparams); }
            else { 
format(STRsizeof(STR), "* Mecanico em Treinamento (%s) %s. )) **"Nomeparams); }
            
SendFamilyMessage(PlayerInfo[playerid][pMembro], COLOR_GASTR);
        }
        if(
leader == 5)
        {
            
format(STRsizeof(STR), "* Chefгo (%s) %s. )) **"Nomeparams);
            
SendFamilyMessage(PlayerInfo[playerid][pLider], COLOR_GASTR);
        }
        if(
leader == 6)
        {
            
format(STRsizeof(STR), "* Ahmed Yassin (%s) %s. )) **"Nomeparams);
            
SendFamilyMessage(PlayerInfo[playerid][pLider], COLOR_GASTR);
        }
        if(
leader == 8)
        {
            
format(STRsizeof(STR), "* Diretor (%s) %s. )) **"Nomeparams);
            
SendFamilyMessage(PlayerInfo[playerid][pLider], COLOR_GASTR);
        }
        if(
leader == 9)
        {
            
format(STRsizeof(STR), "* Diretor de Producao (%s) %s. )) **"Nomeparams);
            
SendFamilyMessage(PlayerInfo[playerid][pLider], COLOR_GASTR);
        }
        if(
leader == 10)
        {
            
format(STRsizeof(STR), "* Chefe (%s) %s. )) **"Nomeparams);
            
SendFamilyMessage(PlayerInfo[playerid][pLider], COLOR_GASTR);
        }
        if(
leader == 14)
        {
            
format(STRsizeof(STR), "* Chefгo (%s) %s. )) **"Nomeparams);
            
SendFamilyMessage(PlayerInfo[playerid][pLider], COLOR_GASTR);
        }
        if(
leader == 15)
        {
            
format(STRsizeof(STR), "* Osama Bin Laden (%s) %s. )) **"Nomeparams);
            
SendFamilyMessage(PlayerInfo[playerid][pLider], COLOR_GASTR);
        }
        if(
leader == 17)
        {
            
format(STRsizeof(STR), "* Chefгo (%s) %s. )) **"Nomeparams);
            
SendFamilyMessage(PlayerInfo[playerid][pLider], COLOR_GASTR);
        }
        if(
leader == 18)
        {
            
format(STRsizeof(STR), "* Chefгo (%s) %s. )) **"Nomeparams);
            
SendFamilyMessage(PlayerInfo[playerid][pLider], COLOR_GASTR);
        }
        if(
leader == 19)
        {
            
format(STRsizeof(STR), "* Chefгo (%s) %s. )) **"Nomeparams);
            
SendFamilyMessage(PlayerInfo[playerid][pLider], COLOR_GASTR);
        }
        if(
leader == 20)
        {
            
format(STRsizeof(STR), "* Chefгo (%s) %s. )) **"Nomeparams);
            
SendFamilyMessage(PlayerInfo[playerid][pLider], COLOR_GASTR);
        }
        if(
leader == 21)
        {
            
format(STRsizeof(STR), "* Motoqueiro-Chefгo (%s) %s. )) **"Nomeparams);
            
SendFamilyMessage(PlayerInfo[playerid][pLider], COLOR_GASTR);
        }
        if(
leader == 22)
        {
            
format(STRsizeof(STR), "* Motoqueiro-Chefгo (%s) %s. )) **"Nomeparams);
            
SendFamilyMessage(PlayerInfo[playerid][pLider], COLOR_GASTR);
        }
        if(
leader == 13)
        {
            
format(STRsizeof(STR), "* Don (%s) %s. )) **"Nomeparams);
            
SendFamilyMessage(PlayerInfo[playerid][pLider], COLOR_GASTR);
        }
        if(
leader == 12)
        {
            
format(STRsizeof(STR), "* Don (%s) %s. )) **"Nomeparams);
            
SendFamilyMessage(PlayerInfo[playerid][pLider], COLOR_GASTR);
        }
        if(
leader == 24)
        {
            
format(STRsizeof(STR), "* Mecanico-Chefe (%s) %s. )) **"Nomeparams);
            
SendFamilyMessage(PlayerInfo[playerid][pLider], COLOR_GASTR);
        }
        
printf("%s"STR);
    }
    else
    {
        
SendClientMessage(playeridCOLOR_GRAD2"Vocк nгo faz parte de nenhuma famнlia !");
    }
    return 
1;

Reply
#3

Cara eu quero algo simples...
Reply
#4

kkk' eu to numa preguiзa de retirar sу uma parte do codigo kkkk ' mais й isso :
PHP код:
        if(member == 6// se ele for membro da org 6 ele pode ver o que digitou entendeu ? e a parte de baixo estб mostrando qual й o cargo dele na org pra mostrar o cargo dele antes da mensagem, entгo quer dizer que sу quem й da org 6 vк essa if
        
{
            if(
PlayerInfo[playerid][pCargo] == 6) { format(STRsizeof(STR), "* Ahmed Yassin (%s) %s. )) **"Nomeparams); }
            else if(
PlayerInfo[playerid][pCargo] == 5) { format(STRsizeof(STR), "* Sub-Chefe (%s) %s. )) **"Nomeparams); }
            else if(
PlayerInfo[playerid][pCargo] == 4) { format(STRsizeof(STR), "* Bombadeador (%s) %s. ))  **"Nomeparams); }
            else if(
PlayerInfo[playerid][pCargo] == 3) { format(STRsizeof(STR), "* Terrorista (%s) %s. ))  **"Nomeparams); }
            else if(
PlayerInfo[playerid][pCargo] == 2) { format(STRsizeof(STR), "* Membro (%s) %s. ))  **"Nomeparams); }
            else if(
PlayerInfo[playerid][pCargo] == 1) { format(STRsizeof(STR), "* Homem-Bomba (%s) %s. ))  **"Nomeparams); }
            else { 
format(STRsizeof(STR), "* Homem-Bomba (%s) %s. ))  **"Nomeparams); }
            
SendFamilyMessage(PlayerInfo[playerid][pMembro], COLOR_GASTR);
        } 




@Edit

Tenta aew

[php]CMD:radio(playerid,params[])
{
if(Gang[playerid]!= ballas && Gang[playerid]!= aztecas && Gang[playerid]!= grove && Gang[playerid]!= vagos) return scm(playerid,Error,"Vocк nгo й de nenhuma organizaзгo!");
{
new str_op[128];
if(sscanf(params, "s[128]", str_op))
return SendClientMessage(playerid,Error,"Use: /rбdio [mensagem].");
new player_name[MAX_PLAYER_NAME],
str_msg[128];
GetPlayerName(playerid,player_name,MAX_PLAYER_NAME );
if(Gang[playerid]!= ballas && Gang[playerid]!= aztecas && Gang[playerid]!= grove && Gang[playerid]!= vagos)
{
format(str_msg,sizeof str_msg,"Rбdio %s: %s",player_name,str_op);
}
for(new slots = GetMaxPlayers(),i;i<slots; i++)
scm(i,Neutra,str_msg);
}
return 1;
}[php]
Reply
#5

No caso nгo teria cargos cara, eu sу quero o que disse acima.. Й simples mais nгo sei fazer.
Reply
#6

PHP код:
CMD:radio(playerid,params[])
    {
        if(
Gang[playerid]!= ballas && Gang[playerid]!= aztecas && Gang[playerid]!= grove && Gang[playerid]!= vagos) return scm(playerid,Error,"Vocк nгo й de nenhuma organizaзгo!");
        {
            new 
str_op[128];
            if(
sscanf(params"s[128]"str_op))
            return 
SendClientMessage(playerid,Error,"Use: /rбdio [mensagem].");
            new 
player_name[MAX_PLAYER_NAME],
            
str_msg[128];
            
GetPlayerName(playerid,player_name,MAX_PLAYER_NAME);
            if(
Gang[playerid]!= ballas)
            {
            
format(str_msg,sizeof str_msg,"Rбdio Ballas: %s",player_name,str_op);
            }
            if(
Gang[playerid]!= aztecas)
            {
            
format(str_msg,sizeof str_msg,"Rбdio Aztecas: %s",player_name,str_op);
            }
            if(
Gang[playerid]!= grove &&)
            {
            
format(str_msg,sizeof str_msg,"Rбdio Groove: %s",player_name,str_op);
            }
            if(
Gang[playerid]!= vagos)
            {
            
format(str_msg,sizeof str_msg,"Rбdio Vagos: %s",player_name,str_op);
            }
            for(new 
slots GetMaxPlayers(),i;i<slotsi++)
            
scm(i,Neutra,str_msg); 
        }
        return 
1;
    } 
tenta aew =D acho que assim dб
Reply
#7

@Edit Mlz double post
Reply
#8

Vou testar obrigado..

se poder veja meu tуpico do textdraw.

seu cуdigo tinha alguns erros de operadores e outras coisas mais eu arrumei obrigado por dar a base, agora quero ver se vai dar pra o ballas ver a mensagem do grove isso que nгo quero..
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)