24.06.2014, 04:13
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
ja tentei arrumar de disversas formas e nao consegui
se alguem puder me ajudar por favor eu agradeco desde ja
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(playerid, COLOR_GREY, " Vocк nгo Bateu o cartгo!");
return 1;
}
if (IsACop(playerid))
{
new tmpcar = GetPlayerVehicleID(playerid);
GetPlayerName(playerid, sendername, MAX_PLAYER_NAME);
if(IsAEnforcerCar(tmpcar)||PlayerToPoint(2, playerid,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(2, playerid,240.7396,112.9709,1003.2188) || PlayerToPoint(2, playerid,1530.5187,-1702.5320,6.2252)
|| PlayerToPoint(2, playerid,302.7606,-1529.7537,24.9219) || PlayerToPoint(2, playerid,-1345.8823,492.5301,11.2027)|| PlayerToPoint(2, playerid,326.2920,306.9357,999.1484)
|| PlayerToPoint(2, playerid,1709.7542,-1642.8513,20.2188)|| PlayerToPoint(2, playerid,962.1068,-2535.4353,28.7781) || HouseEntered[playerid] != 255)
{
ResetPlayerWeaponsEx(playerid);
SetPlayerArmour(playerid, 100.0);
SetPlayerHealth(playerid, 100.0);
if (PlayerInfo[playerid][pLider] == 1)
{
format(string, sizeof(string), "[Policia Militar] %s pega seus equipamentos de lнder.", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
GivePlayerWeapon(playerid, 1, 1);
GivePlayerWeapon(playerid, 17, 10);
GivePlayerWeapon(playerid, 16, 4);
GivePlayerWeapon(playerid, 34, 10);
GivePlayerWeapon(playerid, 31, 40);
GivePlayerWeapon(playerid, 29, 30);
GivePlayerWeapon(playerid, 25, 20);
GivePlayerWeapon(playerid, 24, 13);
GivePlayerWeapon(playerid, 41, 400);
GivePlayerWeapon(playerid, 3, 1);
return 1;
}
if(PlayerInfo[playerid][pLider] == 2)
{
format(string, sizeof(string), "[Bope] %s pega seus equipamentos de lнder.", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
GivePlayerWeapon(playerid, 1, 1);
GivePlayerWeapon(playerid, 17, 10);
GivePlayerWeapon(playerid, 16, 4);
GivePlayerWeapon(playerid, 34, 10);
GivePlayerWeapon(playerid, 31, 40);
GivePlayerWeapon(playerid, 29, 30);
GivePlayerWeapon(playerid, 25, 20);
GivePlayerWeapon(playerid, 24, 13);
GivePlayerWeapon(playerid, 41, 400);
GivePlayerWeapon(playerid, 3, 1);
return 1;
}
if (PlayerInfo[playerid][pLider] == 16)
{
format(string, sizeof(string), "[Policia Civil] %s pega seus equipamentos de lнder.", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
GivePlayerWeapon(playerid, 1, 1);
GivePlayerWeapon(playerid, 17, 10);
GivePlayerWeapon(playerid, 16, 4);
GivePlayerWeapon(playerid, 34, 10);
GivePlayerWeapon(playerid, 31, 40);
GivePlayerWeapon(playerid, 29, 30);
GivePlayerWeapon(playerid, 25, 20);
GivePlayerWeapon(playerid, 24, 13);
GivePlayerWeapon(playerid, 41, 400);
GivePlayerWeapon(playerid, 3, 1);
return 1;
}
if(PlayerInfo[playerid][pLider] == 11)
{
format(string, sizeof(string), "[Policia Federal] %s pega seus equipamentos de lнder.", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
GivePlayerWeapon(playerid, 1, 1);
GivePlayerWeapon(playerid, 17, 10);
GivePlayerWeapon(playerid, 16, 4);
GivePlayerWeapon(playerid, 34, 10);
GivePlayerWeapon(playerid, 31, 40);
GivePlayerWeapon(playerid, 29, 30);
GivePlayerWeapon(playerid, 25, 20);
GivePlayerWeapon(playerid, 24, 13);
GivePlayerWeapon(playerid, 41, 400);
GivePlayerWeapon(playerid, 3, 1);
return 1;
}
if(PlayerInfo[playerid][pLider] == 23)
{
format(string, sizeof(string), "[Rota] %s pega seus equipamentos de lнder.", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
GivePlayerWeapon(playerid, 1, 1);
GivePlayerWeapon(playerid, 17, 10);
GivePlayerWeapon(playerid, 16, 4);
GivePlayerWeapon(playerid, 34, 10);
GivePlayerWeapon(playerid, 31, 40);
GivePlayerWeapon(playerid, 29, 30);
GivePlayerWeapon(playerid, 25, 20);
GivePlayerWeapon(playerid, 24, 13);
GivePlayerWeapon(playerid, 41, 400);
GivePlayerWeapon(playerid, 3, 1);
return 1;
}
if(PlayerInfo[playerid][pLider] == 3)
{
format(string, sizeof(string), "[Exercito] %s pega seus equipamentos de lнder.", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
GivePlayerWeapon(playerid, 1, 1);
GivePlayerWeapon(playerid, 17, 10);
GivePlayerWeapon(playerid, 16, 4);
GivePlayerWeapon(playerid, 34, 10);
GivePlayerWeapon(playerid, 31, 40);
GivePlayerWeapon(playerid, 29, 30);
GivePlayerWeapon(playerid, 25, 20);
GivePlayerWeapon(playerid, 24, 13);
GivePlayerWeapon(playerid, 41, 400);
GivePlayerWeapon(playerid, 3, 1);
return 1;
}
if(PlayerInfo[playerid][pMembro] == 3)//Exйrcito
{
if (PlayerInfo[playerid][pCargo] == 1)
{
format(string, sizeof(string), "[Exйrcito] %s pega seus equipamentos cargo 1.", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
GivePlayerWeapon(playerid, 1, 1);
GivePlayerWeapon(playerid, 17, 10);
GivePlayerWeapon(playerid, 16, 4);
GivePlayerWeapon(playerid, 34, 10);
GivePlayerWeapon(playerid, 31, 40);
GivePlayerWeapon(playerid, 29, 30);
GivePlayerWeapon(playerid, 25, 20);
GivePlayerWeapon(playerid, 24, 13);
GivePlayerWeapon(playerid, 41, 400);
GivePlayerWeapon(playerid, 3, 1);
return 1;
}
if (PlayerInfo[playerid][pCargo] == 2)
{
format(string, sizeof(string), "[Exйrcito] %s pega seus equipamentos cargo 2.", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
GivePlayerWeapon(playerid, 1, 1);
GivePlayerWeapon(playerid, 17, 20);
GivePlayerWeapon(playerid, 16, 4);
GivePlayerWeapon(playerid, 34, 20);
GivePlayerWeapon(playerid, 31, 20);
GivePlayerWeapon(playerid, 29, 50);
GivePlayerWeapon(playerid, 25, 30);
GivePlayerWeapon(playerid, 24, 20);
GivePlayerWeapon(playerid, 41, 400);
GivePlayerWeapon(playerid, 3, 1);
return 1;
}
if (PlayerInfo[playerid][pCargo] == 3)
{
format(string, sizeof(string), "[Exйrcito] %s pega seus equipamentos cargo 3.", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
GivePlayerWeapon(playerid, 1, 1);
GivePlayerWeapon(playerid, 17, 30);
GivePlayerWeapon(playerid, 16, 4);
GivePlayerWeapon(playerid, 34, 30);
GivePlayerWeapon(playerid, 31, 60);
GivePlayerWeapon(playerid, 29, 30);
GivePlayerWeapon(playerid, 25, 30);
GivePlayerWeapon(playerid, 24, 30);
GivePlayerWeapon(playerid, 41, 400);
GivePlayerWeapon(playerid, 3, 1);
return 1;
}
if (PlayerInfo[playerid][pCargo] == 4)
{
format(string, sizeof(string), "[Exйrcito] %s pega seus equipamentos cargo 4.", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
GivePlayerWeapon(playerid, 1, 1);
GivePlayerWeapon(playerid, 17, 40);
GivePlayerWeapon(playerid, 16, 4);
GivePlayerWeapon(playerid, 34, 40);
GivePlayerWeapon(playerid, 31, 70);
GivePlayerWeapon(playerid, 29, 40);
GivePlayerWeapon(playerid, 25, 40);
GivePlayerWeapon(playerid, 24, 13);
GivePlayerWeapon(playerid, 41, 400);
GivePlayerWeapon(playerid, 3, 1);
return 1;
}
if (PlayerInfo[playerid][pCargo] == 5)
{
format(string, sizeof(string), "[Exйrcito] %s pega seus equipamentos cargo Sub-Lнder.", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
GivePlayerWeapon(playerid, 1, 1);
GivePlayerWeapon(playerid, 17, 50);
GivePlayerWeapon(playerid, 16, 4);
GivePlayerWeapon(playerid, 34, 50);
GivePlayerWeapon(playerid, 31, 90);
GivePlayerWeapon(playerid, 29, 50);
GivePlayerWeapon(playerid, 25, 50);
GivePlayerWeapon(playerid, 24, 40);
GivePlayerWeapon(playerid, 41, 400);
GivePlayerWeapon(playerid, 3, 1);
return 1;
}
}
if(PlayerInfo[playerid][pLider] == 25)
{
format(string, sizeof(string), "[GATE] %s pega seus equipamentos de lнder.", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
GivePlayerWeapon(playerid, 1, 1);
GivePlayerWeapon(playerid, 17, 10);
GivePlayerWeapon(playerid, 16, 4);
GivePlayerWeapon(playerid, 34, 10);
GivePlayerWeapon(playerid, 31, 40);
GivePlayerWeapon(playerid, 29, 30);
GivePlayerWeapon(playerid, 25, 20);
GivePlayerWeapon(playerid, 24, 13);
GivePlayerWeapon(playerid, 41, 400);
GivePlayerWeapon(playerid, 3, 1);
return 1;
}
if (PlayerInfo[playerid][pMembro] == 25) // GATE
{
if (PlayerInfo[playerid][pCargo] == 1)
{
format(string, sizeof(string), "[GATE] %s pega seus equipamentos cargo 1.", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
GivePlayerWeapon(playerid, 1, 1);
GivePlayerWeapon(playerid, 17, 10);
GivePlayerWeapon(playerid, 16, 4);
GivePlayerWeapon(playerid, 34, 10);
GivePlayerWeapon(playerid, 31, 40);
GivePlayerWeapon(playerid, 29, 30);
GivePlayerWeapon(playerid, 25, 20);
GivePlayerWeapon(playerid, 24, 13);
GivePlayerWeapon(playerid, 41, 400);
GivePlayerWeapon(playerid, 3, 1);
return 1;
}
if (PlayerInfo[playerid][pCargo] == 2)
{
format(string, sizeof(string), "[GATE] %s pega seus equipamentos cargo 2.", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
GivePlayerWeapon(playerid, 1, 1);
GivePlayerWeapon(playerid, 17, 20);
GivePlayerWeapon(playerid, 16, 4);
GivePlayerWeapon(playerid, 34, 20);
GivePlayerWeapon(playerid, 31, 20);
GivePlayerWeapon(playerid, 29, 50);
GivePlayerWeapon(playerid, 25, 30);
GivePlayerWeapon(playerid, 24, 20);
GivePlayerWeapon(playerid, 41, 400);
GivePlayerWeapon(playerid, 3, 1);
return 1;
}
if (PlayerInfo[playerid][pCargo] == 3)
{
format(string, sizeof(string), "[GATE] %s pega seus equipamentos cargo 3.", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
GivePlayerWeapon(playerid, 1, 1);
GivePlayerWeapon(playerid, 17, 30);
GivePlayerWeapon(playerid, 16, 4);
GivePlayerWeapon(playerid, 34, 30);
GivePlayerWeapon(playerid, 31, 60);
GivePlayerWeapon(playerid, 29, 30);
GivePlayerWeapon(playerid, 25, 30);
GivePlayerWeapon(playerid, 24, 30);
GivePlayerWeapon(playerid, 41, 400);
GivePlayerWeapon(playerid, 3, 1);
return 1;
}
if (PlayerInfo[playerid][pCargo] == 4)
{
format(string, sizeof(string), "[GATE] %s pega seus equipamentos cargo 4.", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
GivePlayerWeapon(playerid, 1, 1);
GivePlayerWeapon(playerid, 17, 40);
GivePlayerWeapon(playerid, 16, 4);
GivePlayerWeapon(playerid, 34, 40);
GivePlayerWeapon(playerid, 31, 70);
GivePlayerWeapon(playerid, 29, 40);
GivePlayerWeapon(playerid, 25, 40);
GivePlayerWeapon(playerid, 24, 13);
GivePlayerWeapon(playerid, 41, 400);
GivePlayerWeapon(playerid, 3, 1);
return 1;
}
if (PlayerInfo[playerid][pCargo] == 5)
{
format(string, sizeof(string), "[GATE] %s pega seus equipamentos cargo Sub-Lнder.", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
GivePlayerWeapon(playerid, 1, 1);
GivePlayerWeapon(playerid, 17, 50);
GivePlayerWeapon(playerid, 16, 4);
GivePlayerWeapon(playerid, 34, 50);
GivePlayerWeapon(playerid, 31, 90);
GivePlayerWeapon(playerid, 29, 50);
GivePlayerWeapon(playerid, 25, 50);
GivePlayerWeapon(playerid, 24, 40);
GivePlayerWeapon(playerid, 41, 400);
GivePlayerWeapon(playerid, 3, 1);
return 1;
}
}
if (PlayerInfo[playerid][pMembro] == 1) // Policia Militar
{
if (PlayerInfo[playerid][pCargo] == 1)
{
format(string, sizeof(string), "[Policia Militar] %s pega seus equipamentos cargo 1.", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
GivePlayerWeapon(playerid, 1, 1);
GivePlayerWeapon(playerid, 17, 10);
GivePlayerWeapon(playerid, 16, 4);
GivePlayerWeapon(playerid, 34, 10);
GivePlayerWeapon(playerid, 31, 40);
GivePlayerWeapon(playerid, 29, 30);
GivePlayerWeapon(playerid, 25, 20);
GivePlayerWeapon(playerid, 24, 13);
GivePlayerWeapon(playerid, 41, 400);
GivePlayerWeapon(playerid, 3, 1);
return 1;
}
if (PlayerInfo[playerid][pCargo] == 2)
{
format(string, sizeof(string), "[Policia Militar] %s pega seus equipamentos cargo 2.", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
GivePlayerWeapon(playerid, 1, 1);
GivePlayerWeapon(playerid, 17, 20);
GivePlayerWeapon(playerid, 16, 4);
GivePlayerWeapon(playerid, 34, 20);
GivePlayerWeapon(playerid, 31, 20);
GivePlayerWeapon(playerid, 29, 50);
GivePlayerWeapon(playerid, 25, 30);
GivePlayerWeapon(playerid, 24, 20);
GivePlayerWeapon(playerid, 41, 400);
GivePlayerWeapon(playerid, 3, 1);
return 1;
}
if (PlayerInfo[playerid][pCargo] == 3)
{
format(string, sizeof(string), "[Policia Militar] %s pega seus equipamentos cargo 3.", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
GivePlayerWeapon(playerid, 1, 1);
GivePlayerWeapon(playerid, 17, 30);
GivePlayerWeapon(playerid, 16, 4);
GivePlayerWeapon(playerid, 34, 30);
GivePlayerWeapon(playerid, 31, 60);
GivePlayerWeapon(playerid, 29, 30);
GivePlayerWeapon(playerid, 25, 30);
GivePlayerWeapon(playerid, 24, 30);
GivePlayerWeapon(playerid, 41, 400);
GivePlayerWeapon(playerid, 3, 1);
return 1;
}
if (PlayerInfo[playerid][pCargo] == 4)
{
format(string, sizeof(string), "[Policia Militar] %s pega seus equipamentos cargo 4.", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
GivePlayerWeapon(playerid, 1, 1);
GivePlayerWeapon(playerid, 17, 40);
GivePlayerWeapon(playerid, 16, 4);
GivePlayerWeapon(playerid, 34, 40);
GivePlayerWeapon(playerid, 31, 70);
GivePlayerWeapon(playerid, 29, 40);
GivePlayerWeapon(playerid, 25, 40);
GivePlayerWeapon(playerid, 24, 13);
GivePlayerWeapon(playerid, 41, 400);
GivePlayerWeapon(playerid, 3, 1);
return 1;
}
if (PlayerInfo[playerid][pCargo] == 5)
{
format(string, sizeof(string), "[Policia Militar] %s pega seus equipamentos cargo Sub-Lнder.", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
GivePlayerWeapon(playerid, 1, 1);
GivePlayerWeapon(playerid, 17, 50);
GivePlayerWeapon(playerid, 16, 4);
GivePlayerWeapon(playerid, 34, 50);
GivePlayerWeapon(playerid, 31, 90);
GivePlayerWeapon(playerid, 29, 50);
GivePlayerWeapon(playerid, 25, 50);
GivePlayerWeapon(playerid, 24, 40);
GivePlayerWeapon(playerid, 41, 400);
GivePlayerWeapon(playerid, 3, 1);
return 1;
}
}
if(PlayerInfo[playerid][pMembro] == 2)//B.O.P.E
{
if (PlayerInfo[playerid][pCargo] == 1)
{
format(string, sizeof(string), "[B.O.P.E] %s pega seus equipamentos cargo 1.", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
GivePlayerWeapon(playerid, 1, 1);
GivePlayerWeapon(playerid, 17, 10);
GivePlayerWeapon(playerid, 16, 4);
GivePlayerWeapon(playerid, 34, 10);
GivePlayerWeapon(playerid, 31, 40);
GivePlayerWeapon(playerid, 29, 30);
GivePlayerWeapon(playerid, 25, 20);
GivePlayerWeapon(playerid, 24, 13);
GivePlayerWeapon(playerid, 41, 400);
GivePlayerWeapon(playerid, 3, 1);
return 1;
}
if (PlayerInfo[playerid][pCargo] == 2)
{
format(string, sizeof(string), "[B.O.P.E] %s pega seus equipamentos cargo 2.", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
GivePlayerWeapon(playerid, 1, 1);
GivePlayerWeapon(playerid, 17, 20);
GivePlayerWeapon(playerid, 16, 4);
GivePlayerWeapon(playerid, 34, 20);
GivePlayerWeapon(playerid, 31, 20);
GivePlayerWeapon(playerid, 29, 50);
GivePlayerWeapon(playerid, 25, 30);
GivePlayerWeapon(playerid, 24, 20);
GivePlayerWeapon(playerid, 41, 400);
GivePlayerWeapon(playerid, 3, 1);
return 1;
}
if (PlayerInfo[playerid][pCargo] == 3)
{
format(string, sizeof(string), "[B.O.P.E] %s pega seus equipamentos cargo 3.", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
GivePlayerWeapon(playerid, 1, 1);
GivePlayerWeapon(playerid, 17, 30);
GivePlayerWeapon(playerid, 16, 4);
GivePlayerWeapon(playerid, 34, 30);
GivePlayerWeapon(playerid, 31, 60);
GivePlayerWeapon(playerid, 29, 30);
GivePlayerWeapon(playerid, 25, 30);
GivePlayerWeapon(playerid, 24, 30);
GivePlayerWeapon(playerid, 41, 400);
GivePlayerWeapon(playerid, 3, 1);
return 1;
}
if (PlayerInfo[playerid][pCargo] == 4)
{
format(string, sizeof(string), "[B.O.P.E] %s pega seus equipamentos cargo 4.", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
GivePlayerWeapon(playerid, 1, 1);
GivePlayerWeapon(playerid, 17, 40);
GivePlayerWeapon(playerid, 16, 4);
GivePlayerWeapon(playerid, 34, 40);
GivePlayerWeapon(playerid, 31, 70);
GivePlayerWeapon(playerid, 29, 40);
GivePlayerWeapon(playerid, 25, 40);
GivePlayerWeapon(playerid, 24, 13);
GivePlayerWeapon(playerid, 41, 400);
GivePlayerWeapon(playerid, 3, 1);
return 1;
}
if (PlayerInfo[playerid][pCargo] == 5)
{
format(string, sizeof(string), "[B.O.P.E] %s pega seus equipamentos cargo Sub-Lнder.", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
GivePlayerWeapon(playerid, 1, 1);
GivePlayerWeapon(playerid, 17, 50);
GivePlayerWeapon(playerid, 16, 4);
GivePlayerWeapon(playerid, 34, 50);
GivePlayerWeapon(playerid, 31, 90);
GivePlayerWeapon(playerid, 29, 50);
GivePlayerWeapon(playerid, 25, 50);
GivePlayerWeapon(playerid, 24, 40);
GivePlayerWeapon(playerid, 41, 400);
GivePlayerWeapon(playerid, 3, 1);
return 1;
}
}
if(PlayerInfo[playerid][pMembro] == 11)//PF
{
if (PlayerInfo[playerid][pCargo] == 1)
{
format(string, sizeof(string), "[Polнcia Federal] %s pega seus equipamentos cargo 1.", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
GivePlayerWeapon(playerid, 1, 1);
GivePlayerWeapon(playerid, 17, 10);
GivePlayerWeapon(playerid, 16, 4);
GivePlayerWeapon(playerid, 34, 10);
GivePlayerWeapon(playerid, 31, 40);
GivePlayerWeapon(playerid, 29, 30);
GivePlayerWeapon(playerid, 25, 20);
GivePlayerWeapon(playerid, 24, 13);
GivePlayerWeapon(playerid, 41, 400);
GivePlayerWeapon(playerid, 3, 1);
return 1;
}
if (PlayerInfo[playerid][pCargo] == 2)
{
format(string, sizeof(string), "[Polнcia Federal] %s pega seus equipamentos cargo 2.", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
GivePlayerWeapon(playerid, 1, 1);
GivePlayerWeapon(playerid, 17, 20);
GivePlayerWeapon(playerid, 16, 4);
GivePlayerWeapon(playerid, 34, 20);
GivePlayerWeapon(playerid, 31, 20);
GivePlayerWeapon(playerid, 29, 50);
GivePlayerWeapon(playerid, 25, 30);
GivePlayerWeapon(playerid, 24, 20);
GivePlayerWeapon(playerid, 41, 400);
GivePlayerWeapon(playerid, 3, 1);
return 1;
}
if (PlayerInfo[playerid][pCargo] == 3)
{
format(string, sizeof(string), "[Polнcia Federal] %s pega seus equipamentos cargo 3.", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
GivePlayerWeapon(playerid, 1, 1);
GivePlayerWeapon(playerid, 17, 30);
GivePlayerWeapon(playerid, 16, 4);
GivePlayerWeapon(playerid, 34, 30);
GivePlayerWeapon(playerid, 31, 60);
GivePlayerWeapon(playerid, 29, 30);
GivePlayerWeapon(playerid, 25, 30);
GivePlayerWeapon(playerid, 24, 30);
GivePlayerWeapon(playerid, 41, 400);
GivePlayerWeapon(playerid, 3, 1);
return 1;
}
if (PlayerInfo[playerid][pCargo] == 4)
{
format(string, sizeof(string), "[Polнcia Federal] %s pega seus equipamentos cargo 4.", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
GivePlayerWeapon(playerid, 1, 1);
GivePlayerWeapon(playerid, 17, 40);
GivePlayerWeapon(playerid, 16, 4);
GivePlayerWeapon(playerid, 34, 40);
GivePlayerWeapon(playerid, 31, 70);
GivePlayerWeapon(playerid, 29, 40);
GivePlayerWeapon(playerid, 25, 40);
GivePlayerWeapon(playerid, 24, 13);
GivePlayerWeapon(playerid, 41, 400);
GivePlayerWeapon(playerid, 3, 1);
return 1;
}
if (PlayerInfo[playerid][pCargo] == 5)
{
format(string, sizeof(string), "[Polнcia Federal] %s pega seus equipamentos cargo Sub-Lнder.", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
GivePlayerWeapon(playerid, 1, 1);
GivePlayerWeapon(playerid, 17, 50);
GivePlayerWeapon(playerid, 16, 4);
GivePlayerWeapon(playerid, 34, 50);
GivePlayerWeapon(playerid, 31, 90);
GivePlayerWeapon(playerid, 29, 50);
GivePlayerWeapon(playerid, 25, 50);
GivePlayerWeapon(playerid, 24, 40);
GivePlayerWeapon(playerid, 41, 400);
GivePlayerWeapon(playerid, 3, 1);
return 1;
}
}
if(PlayerInfo[playerid][pMembro] == 16)// Policia Civil
{
if (PlayerInfo[playerid][pCargo] == 1)
{
format(string, sizeof(string), "[Policia Civil] %s pega seus equipamentos cargo 1.", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
GivePlayerWeapon(playerid, 1, 1);
GivePlayerWeapon(playerid, 17, 10);
GivePlayerWeapon(playerid, 16, 4);
GivePlayerWeapon(playerid, 34, 10);
GivePlayerWeapon(playerid, 31, 40);
GivePlayerWeapon(playerid, 29, 30);
GivePlayerWeapon(playerid, 25, 20);
GivePlayerWeapon(playerid, 24, 13);
GivePlayerWeapon(playerid, 41, 400);
GivePlayerWeapon(playerid, 3, 1);
return 1;
}
if (PlayerInfo[playerid][pCargo] == 2)
{
format(string, sizeof(string), "[Policia Civil] %s pega seus equipamentos cargo 2.", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
GivePlayerWeapon(playerid, 1, 1);
GivePlayerWeapon(playerid, 17, 20);
GivePlayerWeapon(playerid, 16, 4);
GivePlayerWeapon(playerid, 34, 20);
GivePlayerWeapon(playerid, 31, 20);
GivePlayerWeapon(playerid, 29, 50);
GivePlayerWeapon(playerid, 25, 30);
GivePlayerWeapon(playerid, 24, 20);
GivePlayerWeapon(playerid, 41, 400);
GivePlayerWeapon(playerid, 3, 1);
return 1;
}
if (PlayerInfo[playerid][pCargo] == 3)
{
format(string, sizeof(string), "[Policia Civil] %s pega seus equipamentos cargo 3.", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
GivePlayerWeapon(playerid, 1, 1);
GivePlayerWeapon(playerid, 17, 30);
GivePlayerWeapon(playerid, 16, 4);
GivePlayerWeapon(playerid, 34, 30);
GivePlayerWeapon(playerid, 31, 60);
GivePlayerWeapon(playerid, 29, 30);
GivePlayerWeapon(playerid, 25, 30);
GivePlayerWeapon(playerid, 24, 30);
GivePlayerWeapon(playerid, 41, 400);
GivePlayerWeapon(playerid, 3, 1);
return 1;
}
if (PlayerInfo[playerid][pCargo] == 4)
{
format(string, sizeof(string), "[Policia Civil] %s pega seus equipamentos cargo 4.", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
GivePlayerWeapon(playerid, 1, 1);
GivePlayerWeapon(playerid, 17, 40);
GivePlayerWeapon(playerid, 16, 4);
GivePlayerWeapon(playerid, 34, 40);
GivePlayerWeapon(playerid, 31, 70);
GivePlayerWeapon(playerid, 29, 40);
GivePlayerWeapon(playerid, 25, 40);
GivePlayerWeapon(playerid, 24, 13);
GivePlayerWeapon(playerid, 41, 400);
GivePlayerWeapon(playerid, 3, 1);
return 1;
}
if (PlayerInfo[playerid][pCargo] == 5)
{
format(string, sizeof(string), "[Policia Civil] %s pega seus equipamentos cargo Sub-Lнder.", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
GivePlayerWeapon(playerid, 1, 1);
GivePlayerWeapon(playerid, 17, 50);
GivePlayerWeapon(playerid, 16, 4);
GivePlayerWeapon(playerid, 34, 50);
GivePlayerWeapon(playerid, 31, 90);
GivePlayerWeapon(playerid, 29, 50);
GivePlayerWeapon(playerid, 25, 50);
GivePlayerWeapon(playerid, 24, 40);
GivePlayerWeapon(playerid, 41, 400);
GivePlayerWeapon(playerid, 3, 1);
return 1;
}
}
if(PlayerInfo[playerid][pMembro] == 23)// Rota
{
if (PlayerInfo[playerid][pCargo] == 1)
{
format(string, sizeof(string), "[Rota] %s pega seus equipamentos cargo 1.", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
GivePlayerWeapon(playerid, 1, 1);
GivePlayerWeapon(playerid, 17, 10);
GivePlayerWeapon(playerid, 16, 4);
GivePlayerWeapon(playerid, 34, 10);
GivePlayerWeapon(playerid, 31, 40);
GivePlayerWeapon(playerid, 29, 30);
GivePlayerWeapon(playerid, 25, 20);
GivePlayerWeapon(playerid, 24, 13);
GivePlayerWeapon(playerid, 41, 400);
GivePlayerWeapon(playerid, 3, 1);
return 1;
}
if (PlayerInfo[playerid][pCargo] == 2)
{
format(string, sizeof(string), "[Rota] %s pega seus equipamentos cargo 2.", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
GivePlayerWeapon(playerid, 1, 1);
GivePlayerWeapon(playerid, 17, 20);
GivePlayerWeapon(playerid, 16, 4);
GivePlayerWeapon(playerid, 34, 20);
GivePlayerWeapon(playerid, 31, 20);
GivePlayerWeapon(playerid, 29, 50);
GivePlayerWeapon(playerid, 25, 30);
GivePlayerWeapon(playerid, 24, 20);
GivePlayerWeapon(playerid, 41, 400);
GivePlayerWeapon(playerid, 3, 1);
return 1;
}
if (PlayerInfo[playerid][pCargo] == 3)
{
format(string, sizeof(string), "[Rota] %s pega seus equipamentos cargo 3.", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
GivePlayerWeapon(playerid, 1, 1);
GivePlayerWeapon(playerid, 17, 30);
GivePlayerWeapon(playerid, 16, 4);
GivePlayerWeapon(playerid, 34, 30);
GivePlayerWeapon(playerid, 31, 60);
GivePlayerWeapon(playerid, 29, 30);
GivePlayerWeapon(playerid, 25, 30);
GivePlayerWeapon(playerid, 24, 30);
GivePlayerWeapon(playerid, 41, 400);
GivePlayerWeapon(playerid, 3, 1);
return 1;
}
if (PlayerInfo[playerid][pCargo] == 4)
{
format(string, sizeof(string), "[Rota] %s pega seus equipamentos cargo 4.", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
GivePlayerWeapon(playerid, 1, 1);
GivePlayerWeapon(playerid, 17, 40);
GivePlayerWeapon(playerid, 16, 4);
GivePlayerWeapon(playerid, 34, 40);
GivePlayerWeapon(playerid, 31, 70);
GivePlayerWeapon(playerid, 29, 40);
GivePlayerWeapon(playerid, 25, 40);
GivePlayerWeapon(playerid, 24, 13);
GivePlayerWeapon(playerid, 41, 400);
GivePlayerWeapon(playerid, 3, 1);
return 1;
}
if (PlayerInfo[playerid][pCargo] == 5)
{
format(string, sizeof(string), "[Rota] %s pega seus equipamentos cargo Sub-Lнder.", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
GivePlayerWeapon(playerid, 1, 1);
GivePlayerWeapon(playerid, 17, 50);
GivePlayerWeapon(playerid, 16, 4);
GivePlayerWeapon(playerid, 34, 50);
GivePlayerWeapon(playerid, 31, 90);
GivePlayerWeapon(playerid, 29, 50);
GivePlayerWeapon(playerid, 25, 50);
GivePlayerWeapon(playerid, 24, 40);
GivePlayerWeapon(playerid, 41, 400);
GivePlayerWeapon(playerid, 3, 1);
return 1;
}
}
}
}
if (IsACop(playerid))
{
SendClientMessage(playerid, COLOR_LIGHTRED, "Vocк nгo й um Oficial.");
return 1;
}
else
{
SendClientMessage(playerid, COLOR_LIGHTRED, "Vocк nгo estб na HQ ou No Enforcer!");
}
}
se alguem puder me ajudar por favor eu agradeco desde ja