[Ajuda] /Equipar bugado Por favor
#1

e o seguinte quando o player cop entra dentro do enforce fala que ele nao e 1 oficial mas somente para as orgs rota policia federal policia civil e gate bope e policia militar funciona normal

PHP код:
if(strcmp(cmd"/equipar"true) == 0)
    {
        if(
PlayerInfo[playerid][pJailed] != 0)
        {
               
SendClientMessage(playerid,COLOR_GREY," Vocк nгo pode equipar na cadeia!");
               return 
1;
        }
        if(
OnDuty[playerid] != 1)
        {
               
SendClientMessage(playeridCOLOR_GREY"   Vocк nгo Bateu o cartгo!");
               return 
1;
        }
        if (
IsACop(playerid))
         {
             new 
tmpcar GetPlayerVehicleID(playerid);
             
GetPlayerName(playeridsendernameMAX_PLAYER_NAME);
            if(
IsAEnforcerCar(tmpcar)||PlayerToPoint(2playerid,255.3,77.4,1003.6) || PlayerToPoint(2,playerid,-1616.1294,681.1594,7.1875)
            || 
PlayerToPoint(2,playerid,230.1107,165.2237,1003.0234) || PlayerToPoint(2playerid,240.7396,112.9709,1003.2188) || PlayerToPoint(2playerid,1530.5187,-1702.5320,6.2252)
            || 
PlayerToPoint(2playerid,302.7606,-1529.7537,24.9219) || PlayerToPoint(2playerid,-1345.8823,492.5301,11.2027)|| PlayerToPoint(2playerid,326.2920,306.9357,999.1484)
            || 
PlayerToPoint(2playerid,1709.7542,-1642.8513,20.2188)|| PlayerToPoint(2playerid,962.1068,-2535.4353,28.7781) || HouseEntered[playerid] != 255)
            {
                
ResetPlayerWeaponsEx(playerid);
                
SetPlayerArmour(playerid100.0);
                
SetPlayerHealth(playerid100.0);
                if (
PlayerInfo[playerid][pLider] == 1)
                {
                       
format(stringsizeof(string), "[Policia Militar] %s pega seus equipamentos de lнder."sendername);
                    
ProxDetector(30.0playeridstringCOLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
                    
GivePlayerWeapon(playerid11);
                    
GivePlayerWeapon(playerid1710);
                    
GivePlayerWeapon(playerid164);
                    
GivePlayerWeapon(playerid3410);
                    
GivePlayerWeapon(playerid3140);
                    
GivePlayerWeapon(playerid2930);
                    
GivePlayerWeapon(playerid2520);
                    
GivePlayerWeapon(playerid2413);
                    
GivePlayerWeapon(playerid41400);
                    
GivePlayerWeapon(playerid31);
                    return 
1;
                }
                if(
PlayerInfo[playerid][pLider] == 2)
                {
                    
format(stringsizeof(string), "[Bope] %s pega seus equipamentos de lнder."sendername);
                    
ProxDetector(30.0playeridstringCOLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
                    
GivePlayerWeapon(playerid11);
                    
GivePlayerWeapon(playerid1710);
                    
GivePlayerWeapon(playerid164);
                    
GivePlayerWeapon(playerid3410);
                    
GivePlayerWeapon(playerid3140);
                    
GivePlayerWeapon(playerid2930);
                    
GivePlayerWeapon(playerid2520);
                    
GivePlayerWeapon(playerid2413);
                    
GivePlayerWeapon(playerid41400);
                    
GivePlayerWeapon(playerid31);
                    return 
1;
                }
                if (
PlayerInfo[playerid][pLider] == 16)
                {
                    
format(stringsizeof(string), "[Policia Civil] %s pega seus equipamentos de lнder."sendername);
                    
ProxDetector(30.0playeridstringCOLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
                    
GivePlayerWeapon(playerid11);
                    
GivePlayerWeapon(playerid1710);
                    
GivePlayerWeapon(playerid164);
                    
GivePlayerWeapon(playerid3410);
                    
GivePlayerWeapon(playerid3140);
                    
GivePlayerWeapon(playerid2930);
                    
GivePlayerWeapon(playerid2520);
                    
GivePlayerWeapon(playerid2413);
                    
GivePlayerWeapon(playerid41400);
                    
GivePlayerWeapon(playerid31);
                    return 
1;
                }
                if(
PlayerInfo[playerid][pLider] == 11)
                {
                    
format(stringsizeof(string), "[Policia Federal] %s pega seus equipamentos de lнder."sendername);
                    
ProxDetector(30.0playeridstringCOLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
                    
GivePlayerWeapon(playerid11);
                    
GivePlayerWeapon(playerid1710);
                    
GivePlayerWeapon(playerid164);
                    
GivePlayerWeapon(playerid3410);
                    
GivePlayerWeapon(playerid3140);
                    
GivePlayerWeapon(playerid2930);
                    
GivePlayerWeapon(playerid2520);
                    
GivePlayerWeapon(playerid2413);
                    
GivePlayerWeapon(playerid41400);
                    
GivePlayerWeapon(playerid31);
                    return 
1;
                }
                if(
PlayerInfo[playerid][pLider] == 23)
                {
                    
format(stringsizeof(string), "[Rota] %s pega seus equipamentos de lнder."sendername);
                    
ProxDetector(30.0playeridstringCOLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
                    
GivePlayerWeapon(playerid11);
                    
GivePlayerWeapon(playerid1710);
                    
GivePlayerWeapon(playerid164);
                    
GivePlayerWeapon(playerid3410);
                    
GivePlayerWeapon(playerid3140);
                    
GivePlayerWeapon(playerid2930);
                    
GivePlayerWeapon(playerid2520);
                    
GivePlayerWeapon(playerid2413);
                    
GivePlayerWeapon(playerid41400);
                    
GivePlayerWeapon(playerid31);
                    return 
1;
                }
                if(
PlayerInfo[playerid][pLider] == 3)
                {
                    
format(stringsizeof(string), "[Exercito] %s pega seus equipamentos de lнder."sendername);
                    
ProxDetector(30.0playeridstringCOLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
                    
GivePlayerWeapon(playerid11);
                    
GivePlayerWeapon(playerid1710);
                    
GivePlayerWeapon(playerid164);
                    
GivePlayerWeapon(playerid3410);
                    
GivePlayerWeapon(playerid3140);
                    
GivePlayerWeapon(playerid2930);
                    
GivePlayerWeapon(playerid2520);
                    
GivePlayerWeapon(playerid2413);
                    
GivePlayerWeapon(playerid41400);
                    
GivePlayerWeapon(playerid31);
                    return 
1;
                }
                 if(
PlayerInfo[playerid][pMembro] == 3)//Exйrcito
                   
{
                    if (
PlayerInfo[playerid][pCargo] == 1)
                    {
                        
format(stringsizeof(string), "[Exйrcito] %s pega seus equipamentos cargo 1."sendername);
                        
ProxDetector(30.0playeridstringCOLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
                        
GivePlayerWeapon(playerid11);
                        
GivePlayerWeapon(playerid1710);
                        
GivePlayerWeapon(playerid164);
                        
GivePlayerWeapon(playerid3410);
                        
GivePlayerWeapon(playerid3140);
                        
GivePlayerWeapon(playerid2930);
                        
GivePlayerWeapon(playerid2520);
                        
GivePlayerWeapon(playerid2413);
                        
GivePlayerWeapon(playerid41400);
                        
GivePlayerWeapon(playerid31);
                        return 
1;
                    }
                    if (
PlayerInfo[playerid][pCargo] == 2)
                    {
                           
format(stringsizeof(string), "[Exйrcito] %s pega seus equipamentos cargo 2."sendername);
                        
ProxDetector(30.0playeridstringCOLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
                        
GivePlayerWeapon(playerid11);
                        
GivePlayerWeapon(playerid1720);
                        
GivePlayerWeapon(playerid164);
                        
GivePlayerWeapon(playerid3420);
                        
GivePlayerWeapon(playerid3120);
                        
GivePlayerWeapon(playerid2950);
                        
GivePlayerWeapon(playerid2530);
                        
GivePlayerWeapon(playerid2420);
                        
GivePlayerWeapon(playerid41400);
                        
GivePlayerWeapon(playerid31);
                        return 
1;
                    }
                     if (
PlayerInfo[playerid][pCargo] == 3)
                    {
                        
format(stringsizeof(string), "[Exйrcito] %s pega seus equipamentos cargo 3."sendername);
                        
ProxDetector(30.0playeridstringCOLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
                        
GivePlayerWeapon(playerid11);
                        
GivePlayerWeapon(playerid1730);
                        
GivePlayerWeapon(playerid164);
                        
GivePlayerWeapon(playerid3430);
                        
GivePlayerWeapon(playerid3160);
                        
GivePlayerWeapon(playerid2930);
                        
GivePlayerWeapon(playerid2530);
                        
GivePlayerWeapon(playerid2430);
                        
GivePlayerWeapon(playerid41400);
                        
GivePlayerWeapon(playerid31);
                        return 
1;
                    }
                      if (
PlayerInfo[playerid][pCargo] == 4)
                    {
                        
format(stringsizeof(string), "[Exйrcito] %s pega seus equipamentos cargo 4."sendername);
                        
ProxDetector(30.0playeridstringCOLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
                        
GivePlayerWeapon(playerid11);
                        
GivePlayerWeapon(playerid1740);
                        
GivePlayerWeapon(playerid164);
                        
GivePlayerWeapon(playerid3440);
                        
GivePlayerWeapon(playerid3170);
                        
GivePlayerWeapon(playerid2940);
                        
GivePlayerWeapon(playerid2540);
                        
GivePlayerWeapon(playerid2413);
                        
GivePlayerWeapon(playerid41400);
                        
GivePlayerWeapon(playerid31);
                        return 
1;
                    }
                     if (
PlayerInfo[playerid][pCargo] == 5)
                    {
                        
format(stringsizeof(string), "[Exйrcito] %s pega seus equipamentos cargo Sub-Lнder."sendername);
                        
ProxDetector(30.0playeridstringCOLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
                        
GivePlayerWeapon(playerid11);
                        
GivePlayerWeapon(playerid1750);
                        
GivePlayerWeapon(playerid164);
                        
GivePlayerWeapon(playerid3450);
                        
GivePlayerWeapon(playerid3190);
                        
GivePlayerWeapon(playerid2950);
                        
GivePlayerWeapon(playerid2550);
                        
GivePlayerWeapon(playerid2440);
                        
GivePlayerWeapon(playerid41400);
                        
GivePlayerWeapon(playerid31);
                        return 
1;
                    }
                    
                }
                if(
PlayerInfo[playerid][pLider] == 25)
                {
                    
format(stringsizeof(string), "[GATE] %s pega seus equipamentos de lнder."sendername);
                    
ProxDetector(30.0playeridstringCOLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
                        
GivePlayerWeapon(playerid11);
                        
GivePlayerWeapon(playerid1710);
                        
GivePlayerWeapon(playerid164);
                        
GivePlayerWeapon(playerid3410);
                        
GivePlayerWeapon(playerid3140);
                        
GivePlayerWeapon(playerid2930);
                        
GivePlayerWeapon(playerid2520);
                        
GivePlayerWeapon(playerid2413);
                        
GivePlayerWeapon(playerid41400);
                        
GivePlayerWeapon(playerid31);
                    return 
1;
                }
                   if (
PlayerInfo[playerid][pMembro] == 25// GATE
                  
{
                    if (
PlayerInfo[playerid][pCargo] == 1)
                    {
                        
format(stringsizeof(string), "[GATE] %s pega seus equipamentos cargo 1."sendername);
                        
ProxDetector(30.0playeridstringCOLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
                        
GivePlayerWeapon(playerid11);
                        
GivePlayerWeapon(playerid1710);
                        
GivePlayerWeapon(playerid164);
                        
GivePlayerWeapon(playerid3410);
                        
GivePlayerWeapon(playerid3140);
                        
GivePlayerWeapon(playerid2930);
                        
GivePlayerWeapon(playerid2520);
                        
GivePlayerWeapon(playerid2413);
                        
GivePlayerWeapon(playerid41400);
                        
GivePlayerWeapon(playerid31);
                        return 
1;
                    }
                    if (
PlayerInfo[playerid][pCargo] == 2)
                    {
                           
format(stringsizeof(string), "[GATE] %s pega seus equipamentos cargo 2."sendername);
                        
ProxDetector(30.0playeridstringCOLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
                        
GivePlayerWeapon(playerid11);
                        
GivePlayerWeapon(playerid1720);
                        
GivePlayerWeapon(playerid164);
                        
GivePlayerWeapon(playerid3420);
                        
GivePlayerWeapon(playerid3120);
                        
GivePlayerWeapon(playerid2950);
                        
GivePlayerWeapon(playerid2530);
                        
GivePlayerWeapon(playerid2420);
                        
GivePlayerWeapon(playerid41400);
                        
GivePlayerWeapon(playerid31);
                        return 
1;
                    }
                     if (
PlayerInfo[playerid][pCargo] == 3)
                    {
                        
format(stringsizeof(string), "[GATE] %s pega seus equipamentos cargo 3."sendername);
                        
ProxDetector(30.0playeridstringCOLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
                        
GivePlayerWeapon(playerid11);
                        
GivePlayerWeapon(playerid1730);
                        
GivePlayerWeapon(playerid164);
                        
GivePlayerWeapon(playerid3430);
                        
GivePlayerWeapon(playerid3160);
                        
GivePlayerWeapon(playerid2930);
                        
GivePlayerWeapon(playerid2530);
                        
GivePlayerWeapon(playerid2430);
                        
GivePlayerWeapon(playerid41400);
                        
GivePlayerWeapon(playerid31);
                        return 
1;
                    }
                      if (
PlayerInfo[playerid][pCargo] == 4)
                    {
                        
format(stringsizeof(string), "[GATE] %s pega seus equipamentos cargo 4."sendername);
                        
ProxDetector(30.0playeridstringCOLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
                        
GivePlayerWeapon(playerid11);
                        
GivePlayerWeapon(playerid1740);
                        
GivePlayerWeapon(playerid164);
                        
GivePlayerWeapon(playerid3440);
                        
GivePlayerWeapon(playerid3170);
                        
GivePlayerWeapon(playerid2940);
                        
GivePlayerWeapon(playerid2540);
                        
GivePlayerWeapon(playerid2413);
                        
GivePlayerWeapon(playerid41400);
                        
GivePlayerWeapon(playerid31);
                        return 
1;
                    }
                     if (
PlayerInfo[playerid][pCargo] == 5)
                    {
                        
format(stringsizeof(string), "[GATE] %s pega seus equipamentos cargo Sub-Lнder."sendername);
                        
ProxDetector(30.0playeridstringCOLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
                        
GivePlayerWeapon(playerid11);
                        
GivePlayerWeapon(playerid1750);
                        
GivePlayerWeapon(playerid164);
                        
GivePlayerWeapon(playerid3450);
                        
GivePlayerWeapon(playerid3190);
                        
GivePlayerWeapon(playerid2950);
                        
GivePlayerWeapon(playerid2550);
                        
GivePlayerWeapon(playerid2440);
                        
GivePlayerWeapon(playerid41400);
                        
GivePlayerWeapon(playerid31);
                        return 
1;
                    }
                }
                 if (
PlayerInfo[playerid][pMembro] == 1// Policia Militar
                  
{
                    if (
PlayerInfo[playerid][pCargo] == 1)
                    {
                        
format(stringsizeof(string), "[Policia Militar] %s pega seus equipamentos cargo 1."sendername);
                        
ProxDetector(30.0playeridstringCOLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
                        
GivePlayerWeapon(playerid11);
                        
GivePlayerWeapon(playerid1710);
                        
GivePlayerWeapon(playerid164);
                        
GivePlayerWeapon(playerid3410);
                        
GivePlayerWeapon(playerid3140);
                        
GivePlayerWeapon(playerid2930);
                        
GivePlayerWeapon(playerid2520);
                        
GivePlayerWeapon(playerid2413);
                        
GivePlayerWeapon(playerid41400);
                        
GivePlayerWeapon(playerid31);
                        return 
1;
                    }
                    if (
PlayerInfo[playerid][pCargo] == 2)
                    {
                           
format(stringsizeof(string), "[Policia Militar] %s pega seus equipamentos cargo 2."sendername);
                        
ProxDetector(30.0playeridstringCOLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
                        
GivePlayerWeapon(playerid11);
                        
GivePlayerWeapon(playerid1720);
                        
GivePlayerWeapon(playerid164);
                        
GivePlayerWeapon(playerid3420);
                        
GivePlayerWeapon(playerid3120);
                        
GivePlayerWeapon(playerid2950);
                        
GivePlayerWeapon(playerid2530);
                        
GivePlayerWeapon(playerid2420);
                        
GivePlayerWeapon(playerid41400);
                        
GivePlayerWeapon(playerid31);
                        return 
1;
                    }
                     if (
PlayerInfo[playerid][pCargo] == 3)
                    {
                        
format(stringsizeof(string), "[Policia Militar] %s pega seus equipamentos cargo 3."sendername);
                        
ProxDetector(30.0playeridstringCOLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
                        
GivePlayerWeapon(playerid11);
                        
GivePlayerWeapon(playerid1730);
                        
GivePlayerWeapon(playerid164);
                        
GivePlayerWeapon(playerid3430);
                        
GivePlayerWeapon(playerid3160);
                        
GivePlayerWeapon(playerid2930);
                        
GivePlayerWeapon(playerid2530);
                        
GivePlayerWeapon(playerid2430);
                        
GivePlayerWeapon(playerid41400);
                        
GivePlayerWeapon(playerid31);
                        return 
1;
                    }
                      if (
PlayerInfo[playerid][pCargo] == 4)
                    {
                        
format(stringsizeof(string), "[Policia Militar] %s pega seus equipamentos cargo 4."sendername);
                        
ProxDetector(30.0playeridstringCOLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
                        
GivePlayerWeapon(playerid11);
                        
GivePlayerWeapon(playerid1740);
                        
GivePlayerWeapon(playerid164);
                        
GivePlayerWeapon(playerid3440);
                        
GivePlayerWeapon(playerid3170);
                        
GivePlayerWeapon(playerid2940);
                        
GivePlayerWeapon(playerid2540);
                        
GivePlayerWeapon(playerid2413);
                        
GivePlayerWeapon(playerid41400);
                        
GivePlayerWeapon(playerid31);
                        return 
1;
                    }
                     if (
PlayerInfo[playerid][pCargo] == 5)
                    {
                        
format(stringsizeof(string), "[Policia Militar] %s pega seus equipamentos cargo Sub-Lнder."sendername);
                        
ProxDetector(30.0playeridstringCOLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
                        
GivePlayerWeapon(playerid11);
                        
GivePlayerWeapon(playerid1750);
                        
GivePlayerWeapon(playerid164);
                        
GivePlayerWeapon(playerid3450);
                        
GivePlayerWeapon(playerid3190);
                        
GivePlayerWeapon(playerid2950);
                        
GivePlayerWeapon(playerid2550);
                        
GivePlayerWeapon(playerid2440);
                        
GivePlayerWeapon(playerid41400);
                        
GivePlayerWeapon(playerid31);
                        return 
1;
                    }
                }
                if(
PlayerInfo[playerid][pMembro] == 2)//B.O.P.E
                
{
                    if (
PlayerInfo[playerid][pCargo] == 1)
                    {
                        
format(stringsizeof(string), "[B.O.P.E] %s pega seus equipamentos cargo 1."sendername);
                        
ProxDetector(30.0playeridstringCOLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
                        
GivePlayerWeapon(playerid11);
                        
GivePlayerWeapon(playerid1710);
                        
GivePlayerWeapon(playerid164);
                        
GivePlayerWeapon(playerid3410);
                        
GivePlayerWeapon(playerid3140);
                        
GivePlayerWeapon(playerid2930);
                        
GivePlayerWeapon(playerid2520);
                        
GivePlayerWeapon(playerid2413);
                        
GivePlayerWeapon(playerid41400);
                        
GivePlayerWeapon(playerid31);
                        return 
1;
                    }
                    if (
PlayerInfo[playerid][pCargo] == 2)
                    {
                           
format(stringsizeof(string), "[B.O.P.E] %s pega seus equipamentos cargo 2."sendername);
                        
ProxDetector(30.0playeridstringCOLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
                        
GivePlayerWeapon(playerid11);
                        
GivePlayerWeapon(playerid1720);
                        
GivePlayerWeapon(playerid164);
                        
GivePlayerWeapon(playerid3420);
                        
GivePlayerWeapon(playerid3120);
                        
GivePlayerWeapon(playerid2950);
                        
GivePlayerWeapon(playerid2530);
                        
GivePlayerWeapon(playerid2420);
                        
GivePlayerWeapon(playerid41400);
                        
GivePlayerWeapon(playerid31);
                        return 
1;
                    }
                     if (
PlayerInfo[playerid][pCargo] == 3)
                    {
                        
format(stringsizeof(string), "[B.O.P.E] %s pega seus equipamentos cargo 3."sendername);
                        
ProxDetector(30.0playeridstringCOLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
                        
GivePlayerWeapon(playerid11);
                        
GivePlayerWeapon(playerid1730);
                        
GivePlayerWeapon(playerid164);
                        
GivePlayerWeapon(playerid3430);
                        
GivePlayerWeapon(playerid3160);
                        
GivePlayerWeapon(playerid2930);
                        
GivePlayerWeapon(playerid2530);
                        
GivePlayerWeapon(playerid2430);
                        
GivePlayerWeapon(playerid41400);
                        
GivePlayerWeapon(playerid31);
                        return 
1;
                    }
                      if (
PlayerInfo[playerid][pCargo] == 4)
                    {
                        
format(stringsizeof(string), "[B.O.P.E] %s pega seus equipamentos cargo 4."sendername);
                        
ProxDetector(30.0playeridstringCOLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
                        
GivePlayerWeapon(playerid11);
                        
GivePlayerWeapon(playerid1740);
                        
GivePlayerWeapon(playerid164);
                        
GivePlayerWeapon(playerid3440);
                        
GivePlayerWeapon(playerid3170);
                        
GivePlayerWeapon(playerid2940);
                        
GivePlayerWeapon(playerid2540);
                        
GivePlayerWeapon(playerid2413);
                        
GivePlayerWeapon(playerid41400);
                        
GivePlayerWeapon(playerid31);
                        return 
1;
                    }
                     if (
PlayerInfo[playerid][pCargo] == 5)
                    {
                        
format(stringsizeof(string), "[B.O.P.E] %s pega seus equipamentos cargo Sub-Lнder."sendername);
                        
ProxDetector(30.0playeridstringCOLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
                        
GivePlayerWeapon(playerid11);
                        
GivePlayerWeapon(playerid1750);
                        
GivePlayerWeapon(playerid164);
                        
GivePlayerWeapon(playerid3450);
                        
GivePlayerWeapon(playerid3190);
                        
GivePlayerWeapon(playerid2950);
                        
GivePlayerWeapon(playerid2550);
                        
GivePlayerWeapon(playerid2440);
                        
GivePlayerWeapon(playerid41400);
                        
GivePlayerWeapon(playerid31);
                        return 
1;
                    }
                }
                   if(
PlayerInfo[playerid][pMembro] == 11)//PF
                
{
                    if (
PlayerInfo[playerid][pCargo] == 1)
                    {
                        
format(stringsizeof(string), "[Polнcia Federal] %s pega seus equipamentos cargo 1."sendername);
                        
ProxDetector(30.0playeridstringCOLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
                        
GivePlayerWeapon(playerid11);
                        
GivePlayerWeapon(playerid1710);
                        
GivePlayerWeapon(playerid164);
                        
GivePlayerWeapon(playerid3410);
                        
GivePlayerWeapon(playerid3140);
                        
GivePlayerWeapon(playerid2930);
                        
GivePlayerWeapon(playerid2520);
                        
GivePlayerWeapon(playerid2413);
                        
GivePlayerWeapon(playerid41400);
                        
GivePlayerWeapon(playerid31);
                        return 
1;
                    }
                    if (
PlayerInfo[playerid][pCargo] == 2)
                    {
                           
format(stringsizeof(string), "[Polнcia Federal] %s pega seus equipamentos cargo 2."sendername);
                        
ProxDetector(30.0playeridstringCOLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
                        
GivePlayerWeapon(playerid11);
                        
GivePlayerWeapon(playerid1720);
                        
GivePlayerWeapon(playerid164);
                        
GivePlayerWeapon(playerid3420);
                        
GivePlayerWeapon(playerid3120);
                        
GivePlayerWeapon(playerid2950);
                        
GivePlayerWeapon(playerid2530);
                        
GivePlayerWeapon(playerid2420);
                        
GivePlayerWeapon(playerid41400);
                        
GivePlayerWeapon(playerid31);
                        return 
1;
                    }
                     if (
PlayerInfo[playerid][pCargo] == 3)
                    {
                        
format(stringsizeof(string), "[Polнcia Federal] %s pega seus equipamentos cargo 3."sendername);
                        
ProxDetector(30.0playeridstringCOLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
                        
GivePlayerWeapon(playerid11);
                        
GivePlayerWeapon(playerid1730);
                        
GivePlayerWeapon(playerid164);
                        
GivePlayerWeapon(playerid3430);
                        
GivePlayerWeapon(playerid3160);
                        
GivePlayerWeapon(playerid2930);
                        
GivePlayerWeapon(playerid2530);
                        
GivePlayerWeapon(playerid2430);
                        
GivePlayerWeapon(playerid41400);
                        
GivePlayerWeapon(playerid31);
                        return 
1;
                    }
                      if (
PlayerInfo[playerid][pCargo] == 4)
                    {
                        
format(stringsizeof(string), "[Polнcia Federal] %s pega seus equipamentos cargo 4."sendername);
                        
ProxDetector(30.0playeridstringCOLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
                        
GivePlayerWeapon(playerid11);
                        
GivePlayerWeapon(playerid1740);
                        
GivePlayerWeapon(playerid164);
                        
GivePlayerWeapon(playerid3440);
                        
GivePlayerWeapon(playerid3170);
                        
GivePlayerWeapon(playerid2940);
                        
GivePlayerWeapon(playerid2540);
                        
GivePlayerWeapon(playerid2413);
                        
GivePlayerWeapon(playerid41400);
                        
GivePlayerWeapon(playerid31);
                        return 
1;
                    }
                     if (
PlayerInfo[playerid][pCargo] == 5)
                    {
                        
format(stringsizeof(string), "[Polнcia Federal] %s pega seus equipamentos cargo Sub-Lнder."sendername);
                        
ProxDetector(30.0playeridstringCOLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
                        
GivePlayerWeapon(playerid11);
                        
GivePlayerWeapon(playerid1750);
                        
GivePlayerWeapon(playerid164);
                        
GivePlayerWeapon(playerid3450);
                        
GivePlayerWeapon(playerid3190);
                        
GivePlayerWeapon(playerid2950);
                        
GivePlayerWeapon(playerid2550);
                        
GivePlayerWeapon(playerid2440);
                        
GivePlayerWeapon(playerid41400);
                        
GivePlayerWeapon(playerid31);
                        return 
1;
                    }
                   }
                if(
PlayerInfo[playerid][pMembro] == 16)// Policia Civil
                
{
                        if (
PlayerInfo[playerid][pCargo] == 1)
                        {
                        
format(stringsizeof(string), "[Policia Civil] %s pega seus equipamentos cargo 1."sendername);
                        
ProxDetector(30.0playeridstringCOLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
                        
GivePlayerWeapon(playerid11);
                        
GivePlayerWeapon(playerid1710);
                        
GivePlayerWeapon(playerid164);
                        
GivePlayerWeapon(playerid3410);
                        
GivePlayerWeapon(playerid3140);
                        
GivePlayerWeapon(playerid2930);
                        
GivePlayerWeapon(playerid2520);
                        
GivePlayerWeapon(playerid2413);
                        
GivePlayerWeapon(playerid41400);
                        
GivePlayerWeapon(playerid31);
                        return 
1;
                    }
                    if (
PlayerInfo[playerid][pCargo] == 2)
                    {
                           
format(stringsizeof(string), "[Policia Civil] %s pega seus equipamentos cargo 2."sendername);
                        
ProxDetector(30.0playeridstringCOLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
                        
GivePlayerWeapon(playerid11);
                        
GivePlayerWeapon(playerid1720);
                        
GivePlayerWeapon(playerid164);
                        
GivePlayerWeapon(playerid3420);
                        
GivePlayerWeapon(playerid3120);
                        
GivePlayerWeapon(playerid2950);
                        
GivePlayerWeapon(playerid2530);
                        
GivePlayerWeapon(playerid2420);
                        
GivePlayerWeapon(playerid41400);
                        
GivePlayerWeapon(playerid31);
                        return 
1;
                    }
                     if (
PlayerInfo[playerid][pCargo] == 3)
                    {
                        
format(stringsizeof(string), "[Policia Civil] %s pega seus equipamentos cargo 3."sendername);
                        
ProxDetector(30.0playeridstringCOLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
                        
GivePlayerWeapon(playerid11);
                        
GivePlayerWeapon(playerid1730);
                        
GivePlayerWeapon(playerid164);
                        
GivePlayerWeapon(playerid3430);
                        
GivePlayerWeapon(playerid3160);
                        
GivePlayerWeapon(playerid2930);
                        
GivePlayerWeapon(playerid2530);
                        
GivePlayerWeapon(playerid2430);
                        
GivePlayerWeapon(playerid41400);
                        
GivePlayerWeapon(playerid31);
                        return 
1;
                    }
                      if (
PlayerInfo[playerid][pCargo] == 4)
                    {
                        
format(stringsizeof(string), "[Policia Civil] %s pega seus equipamentos cargo 4."sendername);
                        
ProxDetector(30.0playeridstringCOLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
                        
GivePlayerWeapon(playerid11);
                        
GivePlayerWeapon(playerid1740);
                        
GivePlayerWeapon(playerid164);
                        
GivePlayerWeapon(playerid3440);
                        
GivePlayerWeapon(playerid3170);
                        
GivePlayerWeapon(playerid2940);
                        
GivePlayerWeapon(playerid2540);
                        
GivePlayerWeapon(playerid2413);
                        
GivePlayerWeapon(playerid41400);
                        
GivePlayerWeapon(playerid31);
                        return 
1;
                    }
                     if (
PlayerInfo[playerid][pCargo] == 5)
                    {
                        
format(stringsizeof(string), "[Policia Civil] %s pega seus equipamentos cargo Sub-Lнder."sendername);
                        
ProxDetector(30.0playeridstringCOLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
                        
GivePlayerWeapon(playerid11);
                        
GivePlayerWeapon(playerid1750);
                        
GivePlayerWeapon(playerid164);
                        
GivePlayerWeapon(playerid3450);
                        
GivePlayerWeapon(playerid3190);
                        
GivePlayerWeapon(playerid2950);
                        
GivePlayerWeapon(playerid2550);
                        
GivePlayerWeapon(playerid2440);
                        
GivePlayerWeapon(playerid41400);
                        
GivePlayerWeapon(playerid31);
                        return 
1;
                    }
                }
                if(
PlayerInfo[playerid][pMembro] == 23)// Rota
                
{
                    if (
PlayerInfo[playerid][pCargo] == 1)
                    {
                        
format(stringsizeof(string), "[Rota] %s pega seus equipamentos cargo 1."sendername);
                        
ProxDetector(30.0playeridstringCOLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
                        
GivePlayerWeapon(playerid11);
                        
GivePlayerWeapon(playerid1710);
                        
GivePlayerWeapon(playerid164);
                        
GivePlayerWeapon(playerid3410);
                        
GivePlayerWeapon(playerid3140);
                        
GivePlayerWeapon(playerid2930);
                        
GivePlayerWeapon(playerid2520);
                        
GivePlayerWeapon(playerid2413);
                        
GivePlayerWeapon(playerid41400);
                        
GivePlayerWeapon(playerid31);
                        return 
1;
                    }
                    if (
PlayerInfo[playerid][pCargo] == 2)
                    {
                           
format(stringsizeof(string), "[Rota] %s pega seus equipamentos cargo 2."sendername);
                        
ProxDetector(30.0playeridstringCOLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
                        
GivePlayerWeapon(playerid11);
                        
GivePlayerWeapon(playerid1720);
                        
GivePlayerWeapon(playerid164);
                        
GivePlayerWeapon(playerid3420);
                        
GivePlayerWeapon(playerid3120);
                        
GivePlayerWeapon(playerid2950);
                        
GivePlayerWeapon(playerid2530);
                        
GivePlayerWeapon(playerid2420);
                        
GivePlayerWeapon(playerid41400);
                        
GivePlayerWeapon(playerid31);
                        return 
1;
                    }
                     if (
PlayerInfo[playerid][pCargo] == 3)
                    {
                        
format(stringsizeof(string), "[Rota] %s pega seus equipamentos cargo 3."sendername);
                        
ProxDetector(30.0playeridstringCOLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
                        
GivePlayerWeapon(playerid11);
                        
GivePlayerWeapon(playerid1730);
                        
GivePlayerWeapon(playerid164);
                        
GivePlayerWeapon(playerid3430);
                        
GivePlayerWeapon(playerid3160);
                        
GivePlayerWeapon(playerid2930);
                        
GivePlayerWeapon(playerid2530);
                        
GivePlayerWeapon(playerid2430);
                        
GivePlayerWeapon(playerid41400);
                        
GivePlayerWeapon(playerid31);
                        return 
1;
                    }
                      if (
PlayerInfo[playerid][pCargo] == 4)
                    {
                        
format(stringsizeof(string), "[Rota] %s pega seus equipamentos cargo 4."sendername);
                        
ProxDetector(30.0playeridstringCOLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
                        
GivePlayerWeapon(playerid11);
                        
GivePlayerWeapon(playerid1740);
                        
GivePlayerWeapon(playerid164);
                        
GivePlayerWeapon(playerid3440);
                        
GivePlayerWeapon(playerid3170);
                        
GivePlayerWeapon(playerid2940);
                        
GivePlayerWeapon(playerid2540);
                        
GivePlayerWeapon(playerid2413);
                        
GivePlayerWeapon(playerid41400);
                        
GivePlayerWeapon(playerid31);
                        return 
1;
                    }
                     if (
PlayerInfo[playerid][pCargo] == 5)
                    {
                        
format(stringsizeof(string), "[Rota] %s pega seus equipamentos cargo Sub-Lнder."sendername);
                        
ProxDetector(30.0playeridstringCOLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
                        
GivePlayerWeapon(playerid11);
                        
GivePlayerWeapon(playerid1750);
                        
GivePlayerWeapon(playerid164);
                        
GivePlayerWeapon(playerid3450);
                        
GivePlayerWeapon(playerid3190);
                        
GivePlayerWeapon(playerid2950);
                        
GivePlayerWeapon(playerid2550);
                        
GivePlayerWeapon(playerid2440);
                        
GivePlayerWeapon(playerid41400);
                        
GivePlayerWeapon(playerid31);
                        return 
1;
                    }
                }
            }
        }
        if (
IsACop(playerid))
        {
            
SendClientMessage(playeridCOLOR_LIGHTRED"Vocк nгo й um Oficial.");
            return 
1;
        }
        else
        {
            
SendClientMessage(playeridCOLOR_LIGHTRED"Vocк nгo estб na HQ ou No Enforcer!");
        }
    } 
ja tentei arrumar de disversas formas e nao consegui
se alguem puder me ajudar por favor eu agradeco desde ja
Reply
#2

Vocк precisa informar a o conteъdo de "public IsACop(playerid)".
Reply
#3

PHP код:
public IsACop(playerid)
{
    if(
IsPlayerConnected(playerid))
    {
        new 
lider PlayerInfo[playerid][pLider];
        new 
member PlayerInfo[playerid][pMembro];
        if(
member==|| member==|| member==|| member==16 || member==11 || member==23 || member==25)
        {
            return 
1;
        }
        else if(
lider==|| lider==|| lider==|| lider==16 || lider==11 || lider==23 || lider==25)
        {
            return 
1;
        }
    }
    return 
0;

Reply
#4

essa e a public
Reply
#5

A "public IsAEnforcerCar" tambйm.
Reply
#6

PHP код:
public IsAEnforcerCar(carid// Enforcers
{
    if((
carid == 1) || (carid == 2) || (carid == 3) || (carid == 151) || (carid == 152) || (carid == 237) || (carid == 252) || (carid == 464) || (carid == 260) || (carid == 276) || (carid == 277) || (carid == 662) || (carid == 663))
    {
        return 
1;
    }
    return 
0;

Reply
#7

Eu nгo estou conseguindo interpretar o seu problema, o player й COP mas nгo consegue equipar ou ele nгo consegue entrar dentro do Enforcer? Tб complicado.

Liste quais sгo as facзхes que nгo conseguem fazer o ato e qual й o ato.
Reply
#8

e assim os player entrao no enforce trankilo mas na hora de digitar /equipar fala que eles nao sao oficiais
organizacoes com esse problema
rota
Exercito
policia civil
policia federal
mais oque mas me intriga e que com a policia militar e o bope funciona normal
Reply
#9

Eles recebem a mensagem e equipam ou sу recebem a mensagem sem receber as armas?
Reply
#10

recebem a mesagem e nao equipao
Reply


Forum Jump:


Users browsing this thread: