25.06.2011, 11:45
Olha dei uma olhava vi umas returns que pra mim acho qeu faziam o seguinte lia o primeiro caso no foc ao primeiro a funзгo noa seguia
ou seja so o lider da pm iria equipar eu acho
eu ainda diminui um pouco no code dos espaзos e coloquei uma stock no lugar
Troca seu equipar por esse
Coloqua essa stock no fina do GM pra nгo atrapalhar ninguem nй
ou seja so o lider da pm iria equipar eu acho
eu ainda diminui um pouco no code dos espaзos e coloquei uma stock no lugar
Troca seu equipar por esse
pawn Код:
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 (IsACop(playerid))
{
new tmpcar = GetPlayerVehicleID(playerid);
GetPlayerName(playerid, sendername, MAX_PLAYER_NAME);
if(IsAEnforcerCar(tmpcar) || Tonolocal(playerid)|| HouseEntered[playerid] != 255)
{
ResetPlayerWeaponsEx(playerid);
SetPlayerArmour(playerid, 100.0);
SetPlayerHealth(playerid, 100.0);
if (PlayerInfo[playerid][pLider] == 1)
{
format(string, sizeof(string), "* Policial 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, 25, 500);
GivePlayerWeapon(playerid, 24, 500);
GivePlayerWeapon(playerid, 3, 0);
GivePlayerWeapon(playerid, 31, 300);
GivePlayerWeapon(playerid, 29, 300);
GivePlayerWeapon(playerid, 41, 300);
GivePlayerWeapon(playerid, 17, 10);
GivePlayerWeapon(playerid, 34, 100);
GivePlayerWeapon(playerid, 42, 4999);
}
if(PlayerInfo[playerid][pLider] == 2)
{
format(string, sizeof(string), "* Policial %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, 25, 500);
GivePlayerWeapon(playerid, 24, 500);
GivePlayerWeapon(playerid, 3, 0);
GivePlayerWeapon(playerid, 31, 600);
GivePlayerWeapon(playerid, 29, 600);
GivePlayerWeapon(playerid, 41, 600);
GivePlayerWeapon(playerid, 17, 10);
GivePlayerWeapon(playerid, 34, 100);
GivePlayerWeapon(playerid, 42, 4999);
}
if(PlayerInfo[playerid][pLider] == 3)
{
format(string, sizeof(string), "* Exйrcito %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, 25, 500);
GivePlayerWeapon(playerid, 24, 500);
GivePlayerWeapon(playerid, 3, 0);
GivePlayerWeapon(playerid, 31, 600);
GivePlayerWeapon(playerid, 29, 600);
GivePlayerWeapon(playerid, 41, 600);
GivePlayerWeapon(playerid, 17, 10);
GivePlayerWeapon(playerid, 34, 100);
GivePlayerWeapon(playerid, 42, 4999);
}
if (PlayerInfo[playerid][pLider] == 16)
{
format(string, sizeof(string), "* Policial 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, 25, 500);
GivePlayerWeapon(playerid, 24, 500);
GivePlayerWeapon(playerid, 3, 0);
GivePlayerWeapon(playerid, 31, 600);
GivePlayerWeapon(playerid, 29, 600);
GivePlayerWeapon(playerid, 41, 600);
GivePlayerWeapon(playerid, 17, 10);
GivePlayerWeapon(playerid, 34, 100);
GivePlayerWeapon(playerid, 42, 4999);
}
if(PlayerInfo[playerid][pLider] == 11)
{
format(string, sizeof(string), "* Policial 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, 25, 500);
GivePlayerWeapon(playerid, 24, 500);
GivePlayerWeapon(playerid, 3, 0);
GivePlayerWeapon(playerid, 31, 600);
GivePlayerWeapon(playerid, 29, 600);
GivePlayerWeapon(playerid, 41, 600);
GivePlayerWeapon(playerid, 17, 10);
GivePlayerWeapon(playerid, 34, 100);
GivePlayerWeapon(playerid, 42, 4999);
}
if (PlayerInfo[playerid][pMembro] == 1) // Policia Militar
{
if (PlayerInfo[playerid][pCargo] == 1)
{
format(string, sizeof(string), "* Policial Militar %s pega seus equipamentos.", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
GivePlayerWeapon(playerid, 25, 80);
GivePlayerWeapon(playerid, 24, 80);
GivePlayerWeapon(playerid, 3, 0);
GivePlayerWeapon(playerid, 31, 300);
GivePlayerWeapon(playerid, 29, 300);
GivePlayerWeapon(playerid, 41, 300);
GivePlayerWeapon(playerid, 17, 10);
GivePlayerWeapon(playerid, 42, 4999);
}
if (PlayerInfo[playerid][pCargo] == 2)
{
format(string, sizeof(string), "* Policial Militar %s pega seus equipamentos.", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
GivePlayerWeapon(playerid, 25, 80);
GivePlayerWeapon(playerid, 24, 150);
GivePlayerWeapon(playerid, 3, 0);
GivePlayerWeapon(playerid, 29, 300);
GivePlayerWeapon(playerid, 31, 300);
GivePlayerWeapon(playerid, 41, 300);
GivePlayerWeapon(playerid, 17, 20);
GivePlayerWeapon(playerid, 42, 4999);
}
if (PlayerInfo[playerid][pCargo] == 3)
{
format(string, sizeof(string), "* Policial Militar %s pega seus equipamentos.", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
GivePlayerWeapon(playerid, 25, 190);
GivePlayerWeapon(playerid, 24, 150);
GivePlayerWeapon(playerid, 29, 450);
GivePlayerWeapon(playerid, 31, 550);
GivePlayerWeapon(playerid, 41, 300);
GivePlayerWeapon(playerid, 17, 30);
GivePlayerWeapon(playerid, 42, 4999);
GivePlayerWeapon(playerid, 3, 0);
}
if (PlayerInfo[playerid][pCargo] == 4)
{
format(string, sizeof(string), "* Policial Militar %s pega seus equipamentos.", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
GivePlayerWeapon(playerid, 25, 120);
GivePlayerWeapon(playerid, 24, 360);
GivePlayerWeapon(playerid, 29, 490);
GivePlayerWeapon(playerid, 3, 0);
GivePlayerWeapon(playerid, 31, 400);
GivePlayerWeapon(playerid, 34, 50);
GivePlayerWeapon(playerid, 17, 40);
GivePlayerWeapon(playerid, 41, 400);
GivePlayerWeapon(playerid, 42, 4999);
}
if (PlayerInfo[playerid][pCargo] == 5)
{
format(string, sizeof(string), "* Policial Militar %s pega seus equipamentos.", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
GivePlayerWeapon(playerid, 25, 140);
GivePlayerWeapon(playerid, 24, 170);
GivePlayerWeapon(playerid, 29, 510);
GivePlayerWeapon(playerid, 31, 550);
GivePlayerWeapon(playerid, 34, 80);
GivePlayerWeapon(playerid, 17, 50);
GivePlayerWeapon(playerid, 41, 500);
GivePlayerWeapon(playerid, 3, 0);
GivePlayerWeapon(playerid, 42, 4999);
}
}
if(PlayerInfo[playerid][pMembro] == 2)//B.O.P.E
{
if(PlayerInfo[playerid][pCargo] == 1)
{
format(string, sizeof(string), "* Policial %s pega seus equipamentos.", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
GivePlayerWeapon(playerid, 25, 80);
GivePlayerWeapon(playerid, 24, 80);
GivePlayerWeapon(playerid, 3, 0);
GivePlayerWeapon(playerid, 31, 300);
GivePlayerWeapon(playerid, 29, 300);
GivePlayerWeapon(playerid, 41, 300);
GivePlayerWeapon(playerid, 17, 10);
GivePlayerWeapon(playerid, 42, 4999);
}
if(PlayerInfo[playerid][pCargo] == 2)
{
format(string, sizeof(string), "* Policial %s pega seus equipamentos.", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
GivePlayerWeapon(playerid, 25, 80);
GivePlayerWeapon(playerid, 24, 150);
GivePlayerWeapon(playerid, 3, 0);
GivePlayerWeapon(playerid, 29, 300);
GivePlayerWeapon(playerid, 31, 300);
GivePlayerWeapon(playerid, 41, 300);
GivePlayerWeapon(playerid, 17, 20);
GivePlayerWeapon(playerid, 42, 4999);
}
if(PlayerInfo[playerid][pCargo] == 3)
{
format(string, sizeof(string), "* Policial %s pega seus equipamentos.", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
GivePlayerWeapon(playerid, 25, 190);
GivePlayerWeapon(playerid, 24, 150);
GivePlayerWeapon(playerid, 29, 450);
GivePlayerWeapon(playerid, 31, 550);
GivePlayerWeapon(playerid, 41, 300);
GivePlayerWeapon(playerid, 17, 30);
GivePlayerWeapon(playerid, 42, 4999);
GivePlayerWeapon(playerid, 3, 0);
}
if(PlayerInfo[playerid][pCargo] == 4)
{
format(string, sizeof(string), "* Policial %s pega seus equipamentos.", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
GivePlayerWeapon(playerid, 25, 120);
GivePlayerWeapon(playerid, 24, 360);
GivePlayerWeapon(playerid, 29, 490);
GivePlayerWeapon(playerid, 3, 0);
GivePlayerWeapon(playerid, 31, 400);
GivePlayerWeapon(playerid, 34, 50);
GivePlayerWeapon(playerid, 17, 40);
GivePlayerWeapon(playerid, 41, 300);
GivePlayerWeapon(playerid, 42, 4999);
}
if(PlayerInfo[playerid][pCargo] == 5)
{
format(string, sizeof(string), "* Policial %s pega seus equipamentos.", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
GivePlayerWeapon(playerid, 25, 140);
GivePlayerWeapon(playerid, 24, 170);
GivePlayerWeapon(playerid, 29, 510);
GivePlayerWeapon(playerid, 31, 550);
GivePlayerWeapon(playerid, 34, 80);
GivePlayerWeapon(playerid, 17, 50);
GivePlayerWeapon(playerid, 41, 400);
GivePlayerWeapon(playerid, 3, 0);
GivePlayerWeapon(playerid, 42, 4999);
}
}
if(PlayerInfo[playerid][pMembro] == 11)//PF
{
if(PlayerInfo[playerid][pCargo] == 1)
{
format(string, sizeof(string), "* Policial Federal %s pega seus equipamentos.", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
GivePlayerWeapon(playerid, 25, 80);
GivePlayerWeapon(playerid, 24, 80);
GivePlayerWeapon(playerid, 3, 0);
GivePlayerWeapon(playerid, 31, 300);
GivePlayerWeapon(playerid, 29, 300);
GivePlayerWeapon(playerid, 41, 300);
GivePlayerWeapon(playerid, 17, 10);
GivePlayerWeapon(playerid, 42, 4999);
}
if(PlayerInfo[playerid][pCargo] == 2)
{
format(string, sizeof(string), "* Policial Federal %s pega seus equipamentos.", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
GivePlayerWeapon(playerid, 25, 80);
GivePlayerWeapon(playerid, 24, 150);
GivePlayerWeapon(playerid, 3, 0);
GivePlayerWeapon(playerid, 29, 400);
GivePlayerWeapon(playerid, 31, 400);
GivePlayerWeapon(playerid, 41, 300);
GivePlayerWeapon(playerid, 17, 20);
GivePlayerWeapon(playerid, 42, 4999);
}
if(PlayerInfo[playerid][pCargo] == 3)
{
format(string, sizeof(string), "* Policial Federal %s pega seus equipamentos.", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
GivePlayerWeapon(playerid, 25, 190);
GivePlayerWeapon(playerid, 24, 150);
GivePlayerWeapon(playerid, 29, 450);
GivePlayerWeapon(playerid, 31, 550);
GivePlayerWeapon(playerid, 41, 300);
GivePlayerWeapon(playerid, 17, 30);
GivePlayerWeapon(playerid, 42, 4999);
GivePlayerWeapon(playerid, 3, 0);
}
if(PlayerInfo[playerid][pCargo] == 4)
{
format(string, sizeof(string), "* Policial Federal %s pega seus equipamentos.", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
GivePlayerWeapon(playerid, 25, 120);
GivePlayerWeapon(playerid, 24, 360);
GivePlayerWeapon(playerid, 29, 490);
GivePlayerWeapon(playerid, 3, 0);
GivePlayerWeapon(playerid, 31, 400);
GivePlayerWeapon(playerid, 34, 50);
GivePlayerWeapon(playerid, 17, 40);
GivePlayerWeapon(playerid, 41, 300);
GivePlayerWeapon(playerid, 42, 4999);
}
if(PlayerInfo[playerid][pCargo] == 5)
{
format(string, sizeof(string), "* Policial Federal %s pega seus equipamentos.", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
GivePlayerWeapon(playerid, 25, 140);
GivePlayerWeapon(playerid, 24, 170);
GivePlayerWeapon(playerid, 29, 510);
GivePlayerWeapon(playerid, 31, 550);
GivePlayerWeapon(playerid, 34, 80);
GivePlayerWeapon(playerid, 17, 50);
GivePlayerWeapon(playerid, 41, 300);
GivePlayerWeapon(playerid, 3, 0);
GivePlayerWeapon(playerid, 42, 4999);
}
}
if(PlayerInfo[playerid][pMembro] == 3)//Exйrcito
{
if(PlayerInfo[playerid][pCargo] == 1)
{
format(string, sizeof(string), "* Exйrcito %s pega seus equipamentos.", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
GivePlayerWeapon(playerid, 25, 80);
GivePlayerWeapon(playerid, 24, 80);
GivePlayerWeapon(playerid, 3, 0);
GivePlayerWeapon(playerid, 31, 300);
GivePlayerWeapon(playerid, 29, 300);
GivePlayerWeapon(playerid, 41, 300);
GivePlayerWeapon(playerid, 17, 10);
GivePlayerWeapon(playerid, 42, 4999);
}
if(PlayerInfo[playerid][pCargo] == 2)
{
format(string, sizeof(string), "* Exйrcito %s pega seus equipamentos.", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
GivePlayerWeapon(playerid, 25, 80);
GivePlayerWeapon(playerid, 24, 150);
GivePlayerWeapon(playerid, 3, 0);
GivePlayerWeapon(playerid, 29, 300);
GivePlayerWeapon(playerid, 31, 400);
GivePlayerWeapon(playerid, 41, 300);
GivePlayerWeapon(playerid, 17, 20);
GivePlayerWeapon(playerid, 42, 4999);
}
if(PlayerInfo[playerid][pCargo] == 3)
{
format(string, sizeof(string), "* Exйrcito %s pega seus equipamentos.", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
GivePlayerWeapon(playerid, 25, 190);
GivePlayerWeapon(playerid, 24, 150);
GivePlayerWeapon(playerid, 29, 450);
GivePlayerWeapon(playerid, 31, 550);
GivePlayerWeapon(playerid, 41, 300);
GivePlayerWeapon(playerid, 17, 30);
GivePlayerWeapon(playerid, 42, 4999);
GivePlayerWeapon(playerid, 3, 0);
}
if(PlayerInfo[playerid][pCargo] == 4)
{
format(string, sizeof(string), "* Exйrcito %s pega seus equipamentos.", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
GivePlayerWeapon(playerid, 25, 120);
GivePlayerWeapon(playerid, 24, 360);
GivePlayerWeapon(playerid, 29, 490);
GivePlayerWeapon(playerid, 3, 0);
GivePlayerWeapon(playerid, 31, 400);
GivePlayerWeapon(playerid, 34, 50);
GivePlayerWeapon(playerid, 17, 40);
GivePlayerWeapon(playerid, 41, 300);
GivePlayerWeapon(playerid, 42, 4999);
}
if(PlayerInfo[playerid][pCargo] == 5)
{
format(string, sizeof(string), "* Exйrcito %s pega seus equipamentos.", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
GivePlayerWeapon(playerid, 25, 140);
GivePlayerWeapon(playerid, 24, 170);
GivePlayerWeapon(playerid, 29, 510);
GivePlayerWeapon(playerid, 31, 550);
GivePlayerWeapon(playerid, 34, 80);
GivePlayerWeapon(playerid, 17, 50);
GivePlayerWeapon(playerid, 41, 300);
GivePlayerWeapon(playerid, 3, 0);
GivePlayerWeapon(playerid, 42, 4999);
}
}
if(PlayerInfo[playerid][pMembro] == 16)// Policia Civil
{
if (PlayerInfo[playerid][pCargo] == 1)
{
format(string, sizeof(string), "* Policial Civil %s pega seus equipamentos.", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
GivePlayerWeapon(playerid, 25, 80);
GivePlayerWeapon(playerid, 24, 80);
GivePlayerWeapon(playerid, 3, 0);
GivePlayerWeapon(playerid, 31, 300);
GivePlayerWeapon(playerid, 29, 300);
GivePlayerWeapon(playerid, 41, 300);
GivePlayerWeapon(playerid, 17, 10);
GivePlayerWeapon(playerid, 42, 4999);
}
if (PlayerInfo[playerid][pCargo] == 2)
{
format(string, sizeof(string), "* Policial Civil %s pega seus equipamentos.", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
GivePlayerWeapon(playerid, 25, 80);
GivePlayerWeapon(playerid, 24, 150);
GivePlayerWeapon(playerid, 3, 0);
GivePlayerWeapon(playerid, 29, 400);
GivePlayerWeapon(playerid, 31, 400);
GivePlayerWeapon(playerid, 41, 400);
GivePlayerWeapon(playerid, 17, 20);
GivePlayerWeapon(playerid, 42, 4999);
}
if (PlayerInfo[playerid][pCargo] == 3)
{
format(string, sizeof(string), "* Policial Civil %s pega seus equipamentos.", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
GivePlayerWeapon(playerid, 25, 190);
GivePlayerWeapon(playerid, 24, 150);
GivePlayerWeapon(playerid, 29, 450);
GivePlayerWeapon(playerid, 31, 450);
GivePlayerWeapon(playerid, 41, 400);
GivePlayerWeapon(playerid, 17, 30);
GivePlayerWeapon(playerid, 42, 4999);
GivePlayerWeapon(playerid, 3, 0);
}
if (PlayerInfo[playerid][pCargo] == 4)
{
format(string, sizeof(string), "* Policial Civil %s pega seus equipamentos.", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
GivePlayerWeapon(playerid, 25, 120);
GivePlayerWeapon(playerid, 24, 360);
GivePlayerWeapon(playerid, 29, 500);
GivePlayerWeapon(playerid, 3, 0);
GivePlayerWeapon(playerid, 31, 500);
GivePlayerWeapon(playerid, 34, 50);
GivePlayerWeapon(playerid, 17, 40);
GivePlayerWeapon(playerid, 41, 200);
GivePlayerWeapon(playerid, 34, 200);
GivePlayerWeapon(playerid, 42, 4999);
}
if (PlayerInfo[playerid][pCargo] == 5)
{
format(string, sizeof(string), "* Policial Civil %s pega seus equipamentos.", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
GivePlayerWeapon(playerid, 25, 140);
GivePlayerWeapon(playerid, 24, 170);
GivePlayerWeapon(playerid, 29, 550);
GivePlayerWeapon(playerid, 31, 550);
GivePlayerWeapon(playerid, 34, 80);
GivePlayerWeapon(playerid, 17, 50);
GivePlayerWeapon(playerid, 41, 400);
GivePlayerWeapon(playerid, 34, 400);
GivePlayerWeapon(playerid, 3, 0);
GivePlayerWeapon(playerid, 42, 4999);
}
}
}
else
{
SendClientMessage(playerid, COLOR_LIGHTRED, "Vocк nгo estб no Vestiбrio ou em Um Enforcer.");
return 1;
}
}
else if(PlayerInfo[playerid][pMembro] == 15 || PlayerInfo[playerid][pLider] == 15 || PlayerInfo[playerid][pMembro] == 6 || PlayerInfo[playerid][pLider] == 6)
{
if(Tonolocal(playerid))
{
if(PlayerInfo[playerid][pLider] == 15 || PlayerInfo[playerid][pLider] == 6)//AL'QAEDA Armas
{
format(string, sizeof(string), "* Terrorista %s Pegou Seu Equipamento Lнder de Terrorismo.", PlayerName(playerid));
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
ResetPlayerWeaponsEx(playerid);
GivePlayerWeapon(playerid, 24, 399);
GivePlayerWeapon(playerid, 30, 999);
GivePlayerWeapon(playerid, 29, 999);
GivePlayerWeapon(playerid, 4, 1);
GivePlayerWeapon(playerid, 34, 199);
GivePlayerWeapon(playerid, 39, 10);
GivePlayerWeapon(playerid, 40, 1);
SetPlayerArmour(playerid, 100);
SetPlayerHealth(playerid, 100);
}
else
{
format(string, sizeof(string), "* Terrorista %s Pegou Seu Equipamento de Terrorismo.", PlayerName(playerid));
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
ResetPlayerWeaponsEx(playerid);
GivePlayerWeapon(playerid, 24, 399);
GivePlayerWeapon(playerid, 30, 999);
GivePlayerWeapon(playerid, 29, 999);
GivePlayerWeapon(playerid, 4, 1);
GivePlayerWeapon(playerid, 34, 199);
GivePlayerWeapon(playerid, 17, 2);
SetPlayerArmour(playerid, 100);
SetPlayerHealth(playerid, 100);
return 1;
}
}
else
{
SendClientMessage(playerid, COLOR_GREY, "Vocк nгo estб no lugar de equipar de sua HQ.");
return 1;
}
}
else
{
SendClientMessage(playerid, COLOR_GREY, "Vocк nгo possui esse comando.");
return 1;
}
return 1;
}
pawn Код:
stock Tonolocal(playerid)
{
else if(PlayerToPoint(10.0, playerid,414.5280,2531.5229,19.1648))
{return 1;}
else if(PlayerToPoint(10.0, playerid,2743.6855,-2453.9363,13.8623))
{return 1;}
else if(PlayerToPoint(2, playerid,255.3,77.4,1003.6))
{return 1;}
else if(PlayerToPoint(2,playerid,-1616.1294,681.1594,7.1875))
{return 1;}
else if(PlayerToPoint(2,playerid,230.1107,165.2237,1003.0234))
{return 1;}
else if(PlayerToPoint(2, playerid,240.7396,112.9709,1003.2188))
{return 1;}
else if(PlayerToPoint(2, playerid,1530.5187,-1702.5320,6.2252))
{return 1;}
else if(PlayerToPoint(2, playerid,302.7606,-1529.7537,24.9219))
{return 1;}
else if(PlayerToPoint(2, playerid,-1345.8823,492.5301,11.2027))
{return 1;}
else if(PlayerToPoint(2, playerid,326.4911,307.0710,999.1484))
{return 1;}
else{ return 0;}
}