[Ajuda] Ajuda Com /rbrall /rbqall
#1

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;
    } 
Reply
#2

Use variaveis e seja feliz
Reply
#3

Como Pode Me Dar Um Exemplo!!
Reply
#4

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

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

Ajuda!!!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)