SA-MP Forums Archive
[Ajuda] Ajuda Com /rbrall /rbqall - 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] Ajuda Com /rbrall /rbqall (/showthread.php?tid=409456)



Ajuda Com /rbrall /rbqall - lucasbjs0 - 21.01.2013

Aew Galera e eu to com um probleminha aki, Tipo Quando Um Lider De Org De Policia Digita /rbrall ou /rbrall que significa /rbrall= Remover Todas Barreiras /rbqall= Remover Todos Bloqueios.

Bom Quando um Lider De Org Policia Digita /rbrall ele remove todas as barreiras do server mais eu queria saber se tem como ele apenas remover as barreiras da org dele.

ai quando ele fosse digitar /rbrall aparecia "Todas as Barreias Da B.O.P.E Foram Tiradas Por Fulanode_Tal"

Bom EU Ja Consegui Criar O anuncio de quando o cara for digitar o /rbrall ou /rbqall e aparecer "Todas as Barreias da B.O.P.E Foram Tiradas Por Fulanode_Tal"

/rbqall

PHP код:
      if(strcmp(cmd"/removerbloqueioall"true)==|| strcmp(cmd"/rbqall"true)==0)
    {
    if (
PlayerInfo[playerid][pLider] != && PlayerInfo[playerid][pCargo] != && PlayerInfo[playerid][pLider] != 2  && PlayerInfo[playerid][pCargo] != && PlayerInfo[playerid][pLider] != && PlayerInfo[playerid][pCargo] != && PlayerInfo[playerid][pLider] != 11 && PlayerInfo[playerid][pCargo] != 5
     
&& PlayerInfo[playerid][pLider] != 16 && PlayerInfo[playerid][pCargo] != && PlayerInfo[playerid][pAdmin] >= && GetPlayerOrg(playerid) != && GetPlayerOrg(playerid) != && GetPlayerOrg(playerid) != && GetPlayerOrg(playerid) != 11 && GetPlayerOrg(playerid) != 16 && IsACop(playerid)) return SendClientMessage(playeridCOLOR_GREY"Vocк nгo й um oficial ou Seu Cargo e Baixo !");
    {
    for(new 
0MAX_PLAYERSi++)
    {
                if(
IsPlayerConnected(i))
                {
                    if(
pRoadCones[i] != 0)
                    {
                        
RemoveRoadCones(i);
                    }
                }
            }
            
format(stringsizeof(string), "Todos Os Bloqueios Da %s Foram Tirados Por %s. ID:[%d]"NomeORG(playerid), PlayerName(playerid), playerid);
            for(new 
0MAX_PLAYERSi++)
            {
                if(
IsPlayerConnected(i))
                {
                    if(
IsACop(i))
                    {
                        
SendClientMessage(iTEAM_BLUE_COLORstring);
                    }
                }
            }
}
return 
true;

/rbrall

PHP код:
     if(strcmp(cmd"/removertodasbarreiras"true)==|| strcmp(cmd"/rbrall"true)==0)
    {
     if (
PlayerInfo[playerid][pLider] != && PlayerInfo[playerid][pCargo] != && PlayerInfo[playerid][pLider] != 2  && PlayerInfo[playerid][pCargo] != && PlayerInfo[playerid][pLider] != && PlayerInfo[playerid][pCargo] != && PlayerInfo[playerid][pLider] != 11 && PlayerInfo[playerid][pCargo] != 5
      
&& PlayerInfo[playerid][pLider] != 16 && PlayerInfo[playerid][pCargo] != && PlayerInfo[playerid][pAdmin] >= && GetPlayerOrg(playerid) != && GetPlayerOrg(playerid) != && GetPlayerOrg(playerid) != && GetPlayerOrg(playerid) != 11 && GetPlayerOrg(playerid) != 16 && IsACop(playerid)) return SendClientMessage(playeridCOLOR_GREY"Vocк nгo й um oficial ou Seu Cargo e Baixo !");
        {
            for(new 
0MAX_PLAYERSi++)
            {
                if(
pRoadblock[i] != 0)
                {
                    
RemoveRoadblock(i);
                }
            }
            
format(stringsizeof(string), "Todos Os Bloqueios Da %s Foram Tirados Por %s. ID:[%d]"NomeORG(playerid), PlayerName(playerid), playerid);
            for(new 
0MAX_PLAYERSi++)
            {
                if(
IsPlayerConnected(i))
                {
                    if(
IsACop(i))
                    {
                        
SendClientMessage(iTEAM_BLUE_COLORstring);
                    }
                }
            }
          }
        return 
true;
    } 



Re: Ajuda Com /rbrall /rbqall - tonisantolia - 21.01.2013

Use variaveis e seja feliz


Re: Ajuda Com /rbrall /rbqall - lucasbjs0 - 21.01.2013

Como Pode Me Dar Um Exemplo!!


Re: Ajuda Com /rbrall /rbqall - tonisantolia - 21.01.2013

Quote:
Originally Posted by lucasbjs0
Посмотреть сообщение
Como Pode Me Dar Um Exemplo!!
Sabe pelomenos o que й uma variavel? e.e


Re: Ajuda Com /rbrall /rbqall - lucasbjs0 - 21.01.2013

um pouco, mais eu so to sem um minimo de noзгo de como se faiz por isso vim aki nee...


Re: Ajuda Com /rbrall /rbqall - lucasbjs0 - 21.01.2013

Ajuda!!!