[Ajuda] Coisa Simples que n consigo faser
#1

Ola a todos queria uma ajudinha aqui de como aumentar o tanto de br que por enquanto so ta dando para colocar uma e queria que podesse colocar umas 5 codigo

pawn Код:
if(strcmp(cmdtext, "/barreiragangue", true)==0 || strcmp(cmdtext, "/gangbr", true)==0)
    {
        new org = GetPlayerOrg(playerid);
        if(org == 5 || org == 14 || org == 17 || org == 18 || org == 19 || org == 20 || org == 21 || org == 24 || org == 25 || org == 27)
        {
        if(PlayerPaintballing[playerid] != 0)
        {
            SendClientMessage(playerid,COLOR_YELLOW," Vocк nгo pode por Blockeios no evento!");
            return 1;
        }
        if (pRoadgang[playerid] != 0) return SendClientMessage(playerid, COLOR_GREY, "Vocк sу pode criar 1 Blockeio por vez, /gangrbr - para remover teu Blockeio");
        new Float:X, Float:Y, Float:Z, Float:A;
        GetPlayerPos(playerid, X, Y, Z);
        GetPlayerFacingAngle(playerid, A);
        pRoadgang[playerid] = F_CreateObject(845, X+1, Y, Z, 0.0, 0.0, A+180, 300.0);
        pRoadgang2[playerid] = F_CreateObject(1358, X+2, Y, Z, 0.0, 0.0, A+180, 300.0);
        pRoadgang3[playerid] = F_CreateObject(18451, X, Y+5, Z, 0.0, 0.0, A+180, 300.0);
        pRoadgang4[playerid] = F_CreateObject(12957, X, Y+9, Z, 0.0, 0.0, A+180, 300.0);
        SetPlayerPos(playerid, X, Y, Z+4);
        GameTextForPlayer(playerid, "~w~Blockeio ~r~Criado", 5000, 5);
        SendClientMessage(playerid, COLOR_GREEN, "Blockeio Posto Use /gangrbr Para Retira-la!");
        format(string, sizeof(string), "[Gangster]: %s Coloco Um Blockeio De Gangue.", PlayerName(playerid));
        for(new i = 0; i < MAX_PLAYERS; i++)
        {
            if(IsPlayerConnected(i))
            {
                if(org == 5 || org == 14 || org == 17 || org == 18 || org == 19 || org == 20 || org == 21 || org == 23 || org == 22 || org == 24 || org == 25 || org == 27)
                {
                    SendClientMessage(i, COR_GRO, string);
                    if (PlayerInfo[i][pCargo] >= 5 || PlayerInfo[i][pLider] > 0)
                    {
                        //SendClientMessage(i, TEAM_BLUE_COLOR, "Vocк pode remover todas as barreiras usando /rbrgangall");
                    }
                 }
               }
            }
        }
        return 1;
    }
    if(strcmp(cmdtext, "/removerbarreira", true)==0 || strcmp(cmdtext, "/gangrbr", true)==0)
    {
        new org = GetPlayerOrg(playerid);
        if(org == 5 || org == 14 || org == 17 || org == 18 || org == 19 || org == 20 || org == 21 || org == 23 || org == 22 || org == 24 || org == 25 || org == 27)
        {
        if (pRoadgang[playerid] != 0)
        {
            RemoveRoadgang(playerid);
            SendClientMessage(playerid, COLOR_GREY, "Vocк Tirou os Blockeios!");
        }
        else { return SendClientMessage(playerid, COLOR_GREY, "Vocк nгo criou um Blockeios!"); }
        format(string, sizeof(string), "[Gangster]: %s Retirou Teu Blockeio De Gangue.", PlayerName(playerid));
        for(new i = 0; i < MAX_PLAYERS; i++)
        {
            if(IsPlayerConnected(i))
            {
                if(org == 5 || org == 14 || org == 17 || org == 18 || org == 19 || org == 20 || org == 21 || org == 23 || org == 22 || org == 24 || org == 25 || org == 27)
                {
                    SendClientMessage(i, COR_GRO, string);
                }
              }
            }
        }
        return 1;
    }
Reply
#2

PHP код:
if(strcmp(cmdtext"/barreiragangue"true)==|| strcmp(cmdtext"/gangbr"true)==0)
    {
        new 
org GetPlayerOrg(playerid);
        if(
org == || org == 14 || org == 17 || org == 18 || org == 19 || org == 20 || org == 21 || org == 24 || org == 25 || org == 27)
        {
        if(
PlayerPaintballing[playerid] != 0)
        {
               
SendClientMessage(playerid,COLOR_YELLOW," Vocк nгo pode por Blockeios no evento!");
               return 
1;
        }
        new 
Float:XFloat:YFloat:ZFloat:A;
        
GetPlayerPos(playeridXYZ);
        
GetPlayerFacingAngle(playeridA);
        
pRoadgang[playerid] = F_CreateObject(845X+1YZ0.00.0A+180300.0);
        
pRoadgang2[playerid] = F_CreateObject(1358X+2YZ0.00.0A+180300.0);
        
pRoadgang3[playerid] = F_CreateObject(18451XY+5Z0.00.0A+180300.0);
        
pRoadgang4[playerid] = F_CreateObject(12957XY+9Z0.00.0A+180300.0);
        
SetPlayerPos(playeridXYZ+4);
        
GameTextForPlayer(playerid"~w~Blockeio ~r~Criado"50005);
        
SendClientMessage(playeridCOLOR_GREEN"Blockeio Posto Use /gangrbr Para Retira-la!");
        
format(stringsizeof(string), "[Gangster]: %s Coloco Um Blockeio De Gangue."PlayerName(playerid));
        for(new 
0MAX_PLAYERSi++)
        {
            if(
IsPlayerConnected(i))
            {
                if(
org == || org == 14 || org == 17 || org == 18 || org == 19 || org == 20 || org == 21 || org == 23 || org == 22 || org == 24 || org == 25 || org == 27)
                {
                    
SendClientMessage(iCOR_GROstring);
                    if (
PlayerInfo[i][pCargo] >= || PlayerInfo[i][pLider] > 0)
                    {
                        
//SendClientMessage(i, TEAM_BLUE_COLOR, "Vocк pode remover todas as barreiras usando /rbrgangall");
                    
}
                 }
               }
            }
        }
        return 
1;
    }
    if(
strcmp(cmdtext"/removerbarreira"true)==|| strcmp(cmdtext"/gangrbr"true)==0)
    {
        new 
org GetPlayerOrg(playerid);
        if(
org == || org == 14 || org == 17 || org == 18 || org == 19 || org == 20 || org == 21 || org == 23 || org == 22 || org == 24 || org == 25 || org == 27)
        {
        if (
pRoadgang[playerid] != 0)
        {
            
RemoveRoadgang(playerid);
            
SendClientMessage(playeridCOLOR_GREY"Vocк Tirou os Blockeios!");
        }
        else { return 
SendClientMessage(playeridCOLOR_GREY"Vocк nгo criou um Blockeios!"); }
        
format(stringsizeof(string), "[Gangster]: %s Retirou Teu Blockeio De Gangue."PlayerName(playerid));
        for(new 
0MAX_PLAYERSi++)
        {
            if(
IsPlayerConnected(i))
            {
                if(
org == || org == 14 || org == 17 || org == 18 || org == 19 || org == 20 || org == 21 || org == 23 || org == 22 || org == 24 || org == 25 || org == 27)
                {
                    
SendClientMessage(iCOR_GROstring);
                }
              }
            }
        }
        return 
1;
    } 
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)