[Dъvida] Equipamentos
#1

Olб pessoal!
Bom, eu estou com uma dъvida tremenda.
Bom estou usando um GameMod que estou quase no final dele.
E eu queria que vocкs me ajudasse com uma coisa assim...
Quando um Policial estб na HQ e quando ele digita /equipar aparece assim
/equipar [numero] ai lб tem Policial Rodoviбrio, Policial Federal e etc...
Ai eu queria assim, /equipar e jб pegaria as armas adequadas para seu cargo
e sua organizaзгo, mas apenas para policiais.
E outra eu queria mudar tirar aquele 'i' e por uma Seta onde ela fica rodando...
Valeu!
Ah e meu GameMod й do Caio Cartaxo.
Reply
#2

eu uso esse

pawn Код:
if(strcmp(cmd, "/equipar", true) == 0)
    {
        if(PlayerToPoint(3, playerid,255.3,77.4,1003.6) || PlayerToPoint(3,playerid,-1616.1294,681.1594,7.1875) || PlayerToPoint(3,playerid,230.1107,165.2237,1003.0234) || PlayerToPoint(3, playerid,240.7396,112.9709,1003.2188) || PlayerToPoint(3, playerid,1530.5187,-1702.5320,6.2252) || PlayerToPoint(3, playerid,302.7606,-1529.7537,24.9219) || PlayerToPoint(3, playerid,1405.8651,415.0729,19.7578) || PlayerToPoint(3, playerid,-1345.8823,492.5301,11.2027) || PlayerInfo[playerid][pLocal] != 255)
        {
            GetPlayerName(playerid, sendername, sizeof(sendername));
            if(PlayerInfo[playerid][pMembro] == 1 || PlayerInfo[playerid][pLider] == 1 || PlayerInfo[playerid][pMembro] == 2 || PlayerInfo[playerid][pLider] == 2 || PlayerInfo[playerid][pMembro] == 17 || PlayerInfo[playerid][pLider] == 17 || PlayerInfo[playerid][pMembro] == 3 || PlayerInfo[playerid][pLider] == 3 || PlayerInfo[playerid][pMembro] == 25 || PlayerInfo[playerid][pLider] == 25)//Delegado
            {
                if(OnEquipado[playerid] == 1)
                {
                    ResetPlayerWeapons(playerid);
                    OnEquipado[playerid] = 0;
                    return 1;
                }
                    if (PlayerInfo[playerid][pLider] == 1 || PlayerInfo[playerid][pMembro] == 1) // Policia Militar
                    {
                            if (PlayerInfo[playerid][pCargo] == 0)
                                {
                                    format(string, sizeof(string), "* Oficial %s pega sua farda , e suas armas.", sendername);
                                    ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
                                    GivePlayerWeapon(playerid, 25, 50);
                                    GivePlayerWeapon(playerid, 24, 80);
                                    GivePlayerWeapon(playerid, 3, 0);
                                    GivePlayerWeapon(playerid, 31, 100);
                                    SetPlayerArmour(playerid, 100.0);
                                    SetPlayerHealth(playerid, 100.0);
                                    OnEquipado[playerid] = 1;
                                    return 1;
                                }
                            if (PlayerInfo[playerid][pCargo] == 1)
                                {
                                    format(string, sizeof(string), "* Oficial %s pega sua farda , e suas armas.", sendername);
                                    ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
                                    GivePlayerWeapon(playerid, 25, 50);
                                    GivePlayerWeapon(playerid, 24, 80);
                                    GivePlayerWeapon(playerid, 3, 0);
                                    GivePlayerWeapon(playerid, 31, 150);
                                    SetPlayerArmour(playerid, 100.0);
                                    SetPlayerHealth(playerid, 100.0);
                                    OnEquipado[playerid] = 1;
                                    return 1;
                                }
                            if (PlayerInfo[playerid][pCargo] == 2)
                                {
                                    format(string, sizeof(string), "* Oficial %s pega sua farda , e suas armas.", sendername);
                                    ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
                                    GivePlayerWeapon(playerid, 25, 70);
                                    GivePlayerWeapon(playerid, 24, 100);
                                    GivePlayerWeapon(playerid, 3, 0);
                                    GivePlayerWeapon(playerid, 31, 200);
                                    SetPlayerArmour(playerid, 100.0);
                                    SetPlayerHealth(playerid, 100.0);
                                    OnEquipado[playerid] = 1;
                                    return 1;
                                }
                            if (PlayerInfo[playerid][pCargo] == 3)
                                {
                                    format(string, sizeof(string), "* Oficial %s pega sua farda , e suas armas.", sendername);
                                    ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
                                    GivePlayerWeapon(playerid, 25, 100);
                                    GivePlayerWeapon(playerid, 24, 150);
                                    GivePlayerWeapon(playerid, 29, 150);
                                    GivePlayerWeapon(playerid, 31, 250);
                                    GivePlayerWeapon(playerid, 3, 0);
                                    SetPlayerArmour(playerid, 100.0);
                                    SetPlayerHealth(playerid, 100.0);
                                    OnEquipado[playerid] = 1;
                                    return 1;
        }
                            if (PlayerInfo[playerid][pCargo] == 4)
                                {
                                    format(string, sizeof(string), "* Oficial %s pega sua farda , e suas armas.", sendername);
                                    ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
                                    GivePlayerWeapon(playerid, 25, 120);
                                    GivePlayerWeapon(playerid, 24, 160);
                                    GivePlayerWeapon(playerid, 29, 190);
                                    GivePlayerWeapon(playerid, 31, 300);
                                    GivePlayerWeapon(playerid, 34, 50);
                                    GivePlayerWeapon(playerid, 17, 50);
                                    GivePlayerWeapon(playerid, 3, 0);
                                    SetPlayerArmour(playerid, 100.0);
                                    SetPlayerHealth(playerid, 100.0);
                                    OnEquipado[playerid] = 1;
                                    return 1;
                                }
                            if (PlayerInfo[playerid][pCargo] == 5)
                                {
                                    format(string, sizeof(string), "* Oficial %s pega sua farda , e suas armas.", 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, 210);
                                    GivePlayerWeapon(playerid, 31, 350);
                                    GivePlayerWeapon(playerid, 34, 80);
                                    GivePlayerWeapon(playerid, 17, 100);
                                    GivePlayerWeapon(playerid, 3, 0);
                                    SetPlayerArmour(playerid, 100.0);
                                    SetPlayerHealth(playerid, 100.0);
                                    OnEquipado[playerid] = 1;
                                    return 1;
                                }
                            if (PlayerInfo[playerid][pCargo] == 6)
                                {
                                    format(string, sizeof(string), "* Oficial %s pega sua farda , e suas armas.", sendername);
                                    ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
                                    GivePlayerWeapon(playerid, 25, 190);
                                    GivePlayerWeapon(playerid, 24, 180);
                                    GivePlayerWeapon(playerid, 29, 350);
                                    GivePlayerWeapon(playerid, 31, 400);
                                    GivePlayerWeapon(playerid, 34, 100);
                                    GivePlayerWeapon(playerid, 17, 150);
                                    GivePlayerWeapon(playerid, 3, 0);
                                    SetPlayerArmour(playerid, 100.0);
                                    SetPlayerHealth(playerid, 100.0);
                                    OnEquipado[playerid] = 1;
                                    return 1;
                                }
                    }
                    if(PlayerInfo[playerid][pMembro] == 2 || PlayerInfo[playerid][pLider] == 2)//B.O.P.E
                    {
                                if(PlayerInfo[playerid][pCargo] == 0)
                                {
                                    format(string, sizeof(string), "* Oficial %s pega sua farda , e suas armas.", sendername);
                                    ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
                                    GivePlayerWeapon(playerid, 24, 60);
                                    GivePlayerWeapon(playerid, 41, 500);
                                    GivePlayerWeapon(playerid, 25, 50);
                                    GivePlayerWeapon(playerid, 31, 50);
                                    GivePlayerWeapon(playerid, 29, 60);
                                    GivePlayerWeapon(playerid, 31, 150);
                                    GivePlayerWeapon(playerid, 3, 0);
                                    SetPlayerArmour(playerid, 100.0);
                                    SetPlayerHealth(playerid, 100.0);
                                    OnEquipado[playerid] = 1;
                                    return 1;
                                }
                                if(PlayerInfo[playerid][pCargo] == 1)
                                {
                                    format(string, sizeof(string), "* Oficial %s pega sua farda , e suas armas.", sendername);
                                    ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
                                    GivePlayerWeapon(playerid, 24, 60);
                                    GivePlayerWeapon(playerid, 41, 500);
                                    GivePlayerWeapon(playerid, 25, 50);
                                    GivePlayerWeapon(playerid, 31, 50);
                                    GivePlayerWeapon(playerid, 29, 60);
                                    GivePlayerWeapon(playerid, 31, 200);
                                    GivePlayerWeapon(playerid, 3, 0);
                                    SetPlayerArmour(playerid, 100.0);
                                    SetPlayerHealth(playerid, 100.0);
                                    OnEquipado[playerid] = 1;
                                    return 1;
                                }
                                if(PlayerInfo[playerid][pCargo] == 2)
                                {
                                    format(string, sizeof(string), "* Oficial %s pega sua farda , e suas armas.", sendername);
                                    ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
                                    GivePlayerWeapon(playerid, 24, 70);
                                    GivePlayerWeapon(playerid, 41, 500);
                                    GivePlayerWeapon(playerid, 25, 100);
                                    GivePlayerWeapon(playerid, 31, 150);
                                    GivePlayerWeapon(playerid, 29, 240);
                                    GivePlayerWeapon(playerid, 31, 250);
                                    GivePlayerWeapon(playerid, 3, 0);
                                    SetPlayerArmour(playerid, 100.0);
                                    SetPlayerHealth(playerid, 100.0);
                                    OnEquipado[playerid] = 1;
                                    return 1;
                                }
                                if(PlayerInfo[playerid][pCargo] == 3)
                                {
                                    format(string, sizeof(string), "* Oficial %s pega sua farda , e suas armas.", sendername);
                                    ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
                                    GivePlayerWeapon(playerid, 24, 100);
                                    GivePlayerWeapon(playerid, 41, 1000);
                                    GivePlayerWeapon(playerid, 25, 130);
                                    GivePlayerWeapon(playerid, 31, 160);
                                    GivePlayerWeapon(playerid, 29, 150);
                                    GivePlayerWeapon(playerid, 31, 300);
                                    GivePlayerWeapon(playerid, 3, 0);
                                    SetPlayerArmour(playerid, 100.0);
                                    SetPlayerHealth(playerid, 100.0);
                                    OnEquipado[playerid] = 1;
                                    return 1;
                                }
                                if(PlayerInfo[playerid][pCargo] == 4)
                                {
                                    format(string, sizeof(string), "* Oficial %s pega sua farda , e suas armas.", sendername);
                                    ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
                                    GivePlayerWeapon(playerid, 24, 130);
                                    GivePlayerWeapon(playerid, 41, 1500);
                                    GivePlayerWeapon(playerid, 25, 150);
                                    GivePlayerWeapon(playerid, 31, 190);
                                    GivePlayerWeapon(playerid, 29, 190);
                                    GivePlayerWeapon(playerid, 31, 350);
                                    GivePlayerWeapon(playerid, 34, 50);
                                    GivePlayerWeapon(playerid, 3, 0);
                                    GivePlayerWeapon(playerid, 17, 500);
                                    SetPlayerArmour(playerid, 100.0);
                                    SetPlayerHealth(playerid, 100.0);
                                    OnEquipado[playerid] = 1;
                                    return 1;
                                }
                                if(PlayerInfo[playerid][pCargo] == 5)
                                {
                                    format(string, sizeof(string), "* Oficial %s pega sua farda , e suas armas.", sendername);
                                    ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
                                    GivePlayerWeapon(playerid, 24, 160);
                                    GivePlayerWeapon(playerid, 41, 2000);
                                    GivePlayerWeapon(playerid, 25, 190);
                                    GivePlayerWeapon(playerid, 31, 250);
                                    GivePlayerWeapon(playerid, 29, 320);
                                    GivePlayerWeapon(playerid, 34, 80);
                                    GivePlayerWeapon(playerid, 31, 400);
                                    GivePlayerWeapon(playerid, 3, 0);
                                    GivePlayerWeapon(playerid, 17, 500);
                                    SetPlayerArmour(playerid, 100.0);
                                    SetPlayerHealth(playerid, 100.0);
                                    OnEquipado[playerid] = 1;
                                    return 1;
                                }
                                if(PlayerInfo[playerid][pCargo] == 6)
                                {
                                    format(string, sizeof(string), "* Oficial %s pega sua farda , e suas armas.", sendername);
                                    ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
                                    GivePlayerWeapon(playerid, 24, 320);
                                    GivePlayerWeapon(playerid, 41, 400);
                                    GivePlayerWeapon(playerid, 25, 360);
                                    GivePlayerWeapon(playerid, 31, 380);
                                    GivePlayerWeapon(playerid, 29, 400);
                                    GivePlayerWeapon(playerid, 34, 100);
                                    GivePlayerWeapon(playerid, 31, 450);
                                    GivePlayerWeapon(playerid, 3, 0);
                                    GivePlayerWeapon(playerid, 17, 500);
                                    SetPlayerArmour(playerid, 100.0);
                                    SetPlayerHealth(playerid, 100.0);
                                    OnEquipado[playerid] = 1;
                                    return 1;
                                }
                    }
                    if(PlayerInfo[playerid][pMembro] == 25 || PlayerInfo[playerid][pLider] == 25)//FBI
                    {
                                if(PlayerInfo[playerid][pCargo] == 0)
                                {
                                    format(string, sizeof(string), "* Oficial %s pega sua farda , e suas armas.", sendername);
                                    ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
                                    GivePlayerWeapon(playerid, 24, 60);
                                    GivePlayerWeapon(playerid, 41, 500);
                                    GivePlayerWeapon(playerid, 25, 50);
                                    GivePlayerWeapon(playerid, 31, 50);
                                    GivePlayerWeapon(playerid, 29, 60);
                                    GivePlayerWeapon(playerid, 31, 150);
                                    GivePlayerWeapon(playerid, 3, 0);
                                    SetPlayerArmour(playerid, 100.0);
                                    SetPlayerHealth(playerid, 100.0);
                                    OnEquipado[playerid] = 1;
                                    return 1;
                                }
                                if(PlayerInfo[playerid][pCargo] == 1)
                                {
                                    format(string, sizeof(string), "* Oficial %s pega sua farda , e suas armas.", sendername);
                                    ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
                                    GivePlayerWeapon(playerid, 24, 60);
                                    GivePlayerWeapon(playerid, 41, 500);
                                    GivePlayerWeapon(playerid, 25, 50);
                                    GivePlayerWeapon(playerid, 31, 50);
                                    GivePlayerWeapon(playerid, 29, 60);
                                    GivePlayerWeapon(playerid, 31, 200);
                                    GivePlayerWeapon(playerid, 3, 0);
                                    SetPlayerArmour(playerid, 100.0);
                                    SetPlayerHealth(playerid, 100.0);
                                    OnEquipado[playerid] = 1;
                                    return 1;
                                }
                                if(PlayerInfo[playerid][pCargo] == 2)
                                {
                                    format(string, sizeof(string), "* Oficial %s pega sua farda , e suas armas.", sendername);
                                    ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
                                    GivePlayerWeapon(playerid, 24, 70);
                                    GivePlayerWeapon(playerid, 41, 500);
                                    GivePlayerWeapon(playerid, 25, 100);
                                    GivePlayerWeapon(playerid, 31, 150);
                                    GivePlayerWeapon(playerid, 29, 240);
                                    GivePlayerWeapon(playerid, 31, 250);
                                    GivePlayerWeapon(playerid, 3, 0);
                                    SetPlayerArmour(playerid, 100.0);
                                    SetPlayerHealth(playerid, 100.0);
                                    OnEquipado[playerid] = 1;
                                    return 1;
                                }
                                if(PlayerInfo[playerid][pCargo] == 3)
                                {
                                    format(string, sizeof(string), "* Oficial %s pega sua farda , e suas armas.", sendername);
                                    ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
                                    GivePlayerWeapon(playerid, 24, 100);
                                    GivePlayerWeapon(playerid, 41, 1000);
                                    GivePlayerWeapon(playerid, 25, 130);
                                    GivePlayerWeapon(playerid, 31, 160);
                                    GivePlayerWeapon(playerid, 29, 150);
                                    GivePlayerWeapon(playerid, 31, 300);
                                    GivePlayerWeapon(playerid, 3, 0);
                                    SetPlayerArmour(playerid, 100.0);
                                    SetPlayerHealth(playerid, 100.0);
                                    OnEquipado[playerid] = 1;
                                    return 1;
                                }
                                if(PlayerInfo[playerid][pCargo] == 4)
                                {
                                    format(string, sizeof(string), "* Oficial %s pega sua farda , e suas armas.", sendername);
                                    ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
                                    GivePlayerWeapon(playerid, 24, 130);
                                    GivePlayerWeapon(playerid, 41, 1500);
                                    GivePlayerWeapon(playerid, 25, 150);
                                    GivePlayerWeapon(playerid, 31, 190);
                                    GivePlayerWeapon(playerid, 29, 190);
                                    GivePlayerWeapon(playerid, 31, 350);
                                    GivePlayerWeapon(playerid, 34, 50);
                                    GivePlayerWeapon(playerid, 3, 0);
                                    GivePlayerWeapon(playerid, 17, 500);
                                    SetPlayerArmour(playerid, 100.0);
                                    SetPlayerHealth(playerid, 100.0);
                                    OnEquipado[playerid] = 1;
                                    return 1;
                                }
                                if(PlayerInfo[playerid][pCargo] == 5)
                                {
                                    format(string, sizeof(string), "* Oficial %s pega sua farda , e suas armas.", sendername);
                                    ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
                                    GivePlayerWeapon(playerid, 24, 160);
                                    GivePlayerWeapon(playerid, 41, 2000);
                                    GivePlayerWeapon(playerid, 25, 190);
                                    GivePlayerWeapon(playerid, 31, 250);
                                    GivePlayerWeapon(playerid, 29, 320);
                                    GivePlayerWeapon(playerid, 34, 80);
                                    GivePlayerWeapon(playerid, 31, 400);
                                    GivePlayerWeapon(playerid, 3, 0);
                                    GivePlayerWeapon(playerid, 17, 500);
                                    SetPlayerArmour(playerid, 100.0);
                                    SetPlayerHealth(playerid, 100.0);
                                    OnEquipado[playerid] = 1;
                                    return 1;
                                }
                                if(PlayerInfo[playerid][pCargo] == 6)
                                {
                                    format(string, sizeof(string), "* Oficial %s pega sua farda , e suas armas.", sendername);
                                    ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
                                    GivePlayerWeapon(playerid, 24, 320);
                                    GivePlayerWeapon(playerid, 41, 400);
                                    GivePlayerWeapon(playerid, 25, 360);
                                    GivePlayerWeapon(playerid, 31, 380);
                                    GivePlayerWeapon(playerid, 29, 400);
                                    GivePlayerWeapon(playerid, 34, 100);
                                    GivePlayerWeapon(playerid, 31, 450);
                                    GivePlayerWeapon(playerid, 3, 0);
                                    GivePlayerWeapon(playerid, 17, 500);
                                    SetPlayerArmour(playerid, 100.0);
                                    SetPlayerHealth(playerid, 100.0);
                                    OnEquipado[playerid] = 1;
                                    return 1;
                                }
                    }
                    if(PlayerInfo[playerid][pMembro] == 3 || PlayerInfo[playerid][pLider] == 3)//Exйrcito
                    {
                            if(PlayerInfo[playerid][pCargo] == 0)
                            {
                                format(string, sizeof(string), "* Oficial %s pega sua farda , e suas armas.", sendername);
                                ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
                                GivePlayerWeapon(playerid, 24, 50);
                                GivePlayerWeapon(playerid, 41, 500);
                                GivePlayerWeapon(playerid, 25, 60);
                                GivePlayerWeapon(playerid, 31, 70);
                                GivePlayerWeapon(playerid, 29, 80);
                                GivePlayerWeapon(playerid, 3, 0);
                                SetPlayerArmour(playerid, 100.0);
                                SetPlayerHealth(playerid, 100.0);
                                OnEquipado[playerid] = 1;
                                return 1;
                            }
                            if(PlayerInfo[playerid][pCargo] == 1)
                            {
                                format(string, sizeof(string), "* Oficial %s pega sua farda , e suas armas.", sendername);
                                ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
                                GivePlayerWeapon(playerid, 24, 50);
                                GivePlayerWeapon(playerid, 41, 500);
                                GivePlayerWeapon(playerid, 25, 60);
                                GivePlayerWeapon(playerid, 31, 70);
                                GivePlayerWeapon(playerid, 29, 80);
                                GivePlayerWeapon(playerid, 3, 0);
                                SetPlayerArmour(playerid, 100.0);
                                SetPlayerHealth(playerid, 100.0);
                                OnEquipado[playerid] = 1;
                                return 1;
                            }
                            if(PlayerInfo[playerid][pCargo] == 2)
                            {
                                format(string, sizeof(string), "* Oficial %s pega sua farda , e suas armas.", sendername);
                                ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
                                GivePlayerWeapon(playerid, 24, 70);
                                GivePlayerWeapon(playerid, 41, 500);
                                GivePlayerWeapon(playerid, 25, 90);
                                GivePlayerWeapon(playerid, 31, 200);
                                GivePlayerWeapon(playerid, 29, 200);
                                GivePlayerWeapon(playerid, 3, 0);
                                SetPlayerArmour(playerid, 100.0);
                                SetPlayerHealth(playerid, 100.0);
                                OnEquipado[playerid] = 1;
                                return 1;
                            }
                            if(PlayerInfo[playerid][pCargo] == 3)
                            {
                                format(string, sizeof(string), "* Oficial %s pega sua farda , e suas armas.", sendername);
                                ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
                                GivePlayerWeapon(playerid, 24, 100);
                                GivePlayerWeapon(playerid, 41, 500);
                                GivePlayerWeapon(playerid, 25, 120);
                                GivePlayerWeapon(playerid, 31, 250);
                                GivePlayerWeapon(playerid, 29, 250);
                                GivePlayerWeapon(playerid, 3, 0);
                                SetPlayerArmour(playerid, 100.0);
                                SetPlayerHealth(playerid, 100.0);
                                OnEquipado[playerid] = 1;
                                return 1;
                            }
                            if(PlayerInfo[playerid][pCargo] == 4)
                            {
                                format(string, sizeof(string), "* Oficial %s pega sua farda , e suas armas.", sendername);
                                ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
                                GivePlayerWeapon(playerid, 24, 140);
                                GivePlayerWeapon(playerid, 41, 500);
                                GivePlayerWeapon(playerid, 25, 180);
                                GivePlayerWeapon(playerid, 31, 290);
                                GivePlayerWeapon(playerid, 29, 290);
                                GivePlayerWeapon(playerid, 3, 0);
                                GivePlayerWeapon(playerid, 17, 70);
                                GivePlayerWeapon(playerid, 34, 50);
                                SetPlayerArmour(playerid, 100.0);
                                SetPlayerHealth(playerid, 100.0);
                                OnEquipado[playerid] = 1;
                                return 1;
                            }
                            if(PlayerInfo[playerid][pCargo] == 5)
                            {
                                format(string, sizeof(string), "* Oficial %s pega sua farda , e suas armas.", sendername);
                                ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
                                GivePlayerWeapon(playerid, 24, 190);
                                GivePlayerWeapon(playerid, 41, 500);
                                GivePlayerWeapon(playerid, 25, 240);
                                GivePlayerWeapon(playerid, 31, 350);
                                GivePlayerWeapon(playerid, 29, 350);
                                GivePlayerWeapon(playerid, 34, 80);
                                GivePlayerWeapon(playerid, 17, 100);
                                GivePlayerWeapon(playerid, 3, 0);
                                SetPlayerArmour(playerid, 100.0);
                                SetPlayerHealth(playerid, 100.0);
                                OnEquipado[playerid] = 1;
                                return 1;
                            }
                            if(PlayerInfo[playerid][pCargo] == 6)
                            {
                                format(string, sizeof(string), "* Oficial %s pega sua farda , e suas armas.", sendername);
                                ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
                                GivePlayerWeapon(playerid, 24, 250);
                                GivePlayerWeapon(playerid, 41, 500);
                                GivePlayerWeapon(playerid, 25, 290);
                                GivePlayerWeapon(playerid, 31, 450);
                                GivePlayerWeapon(playerid, 29, 450);
                                GivePlayerWeapon(playerid, 34, 100);
                                GivePlayerWeapon(playerid, 17, 150);
                                GivePlayerWeapon(playerid, 3, 0);
                                SetPlayerArmour(playerid, 100.0);
                                SetPlayerHealth(playerid, 100.0);
                                OnEquipado[playerid] = 1;
                                return 1;
                            }
                    }
                    if(PlayerInfo[playerid][pMembro] == 17 || PlayerInfo[playerid][pLider] == 17)// Policia Civil
                    {
                            if (PlayerInfo[playerid][pCargo] == 0)
                                {
                                    format(string, sizeof(string), "* Oficial %s pega sua farda , e suas armas.", sendername);
                                    ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
                                    GivePlayerWeapon(playerid, 25, 50);
                                    GivePlayerWeapon(playerid, 24, 80);
                                    GivePlayerWeapon(playerid, 3, 0);
                                    GivePlayerWeapon(playerid, 31, 100);
                                    SetPlayerArmour(playerid, 100.0);
                                    SetPlayerHealth(playerid, 100.0);
                                    OnEquipado[playerid] = 1;
                                    return 1;
                                }
                            if (PlayerInfo[playerid][pCargo] == 1)
                                {
                                    format(string, sizeof(string), "* Oficial %s pega sua farda , e suas armas.", sendername);
                                    ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
                                    GivePlayerWeapon(playerid, 25, 50);
                                    GivePlayerWeapon(playerid, 24, 80);
                                    GivePlayerWeapon(playerid, 3, 0);
                                    GivePlayerWeapon(playerid, 31, 150);
                                    SetPlayerArmour(playerid, 100.0);
                                    SetPlayerHealth(playerid, 100.0);
                                    OnEquipado[playerid] = 1;
                                    return 1;
                                }
                            if (PlayerInfo[playerid][pCargo] == 2)
                                {
                                    format(string, sizeof(string), "* Oficial %s pega sua farda , e suas armas.", sendername);
                                    ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
                                    GivePlayerWeapon(playerid, 25, 70);
                                    GivePlayerWeapon(playerid, 24, 100);
                                    GivePlayerWeapon(playerid, 3, 0);
                                    GivePlayerWeapon(playerid, 31, 200);
                                    SetPlayerArmour(playerid, 100.0);
                                    SetPlayerHealth(playerid, 100.0);
                                    OnEquipado[playerid] = 1;
                                    return 1;
                                }
                            if (PlayerInfo[playerid][pCargo] == 3)
                                {
                                    format(string, sizeof(string), "* Oficial %s pega sua farda , e suas armas.", sendername);
                                    ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
                                    GivePlayerWeapon(playerid, 25, 100);
                                    GivePlayerWeapon(playerid, 24, 150);
                                    GivePlayerWeapon(playerid, 29, 150);
                                    GivePlayerWeapon(playerid, 3, 0);
                                    GivePlayerWeapon(playerid, 31, 250);
                                    SetPlayerArmour(playerid, 100.0);
                                    SetPlayerHealth(playerid, 100.0);
                                    OnEquipado[playerid] = 1;
                                    return 1;
                                }
                            if (PlayerInfo[playerid][pCargo] == 4)
                                {
                                    format(string, sizeof(string), "* Oficial %s pega sua farda , e suas armas.", sendername);
                                    ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
                                    GivePlayerWeapon(playerid, 25, 120);
                                    GivePlayerWeapon(playerid, 24, 160);
                                    GivePlayerWeapon(playerid, 29, 190);
                                    GivePlayerWeapon(playerid, 3, 0);
                                    GivePlayerWeapon(playerid, 31, 300);
                                    GivePlayerWeapon(playerid, 34, 50);
                                    GivePlayerWeapon(playerid, 17, 100);
                                    SetPlayerArmour(playerid, 100.0);
                                    SetPlayerHealth(playerid, 100.0);
                                    OnEquipado[playerid] = 1;
                                    return 1;
                                }
                            if (PlayerInfo[playerid][pCargo] == 5)
                                {
                                    format(string, sizeof(string), "* Oficial %s pega sua farda , e suas armas.", 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, 210);
                                    GivePlayerWeapon(playerid, 3, 0);
                                    GivePlayerWeapon(playerid, 34, 80);
                                    GivePlayerWeapon(playerid, 31, 350);
                                    GivePlayerWeapon(playerid, 17, 150);
                                    SetPlayerArmour(playerid, 100.0);
                                    SetPlayerHealth(playerid, 100.0);
                                    OnEquipado[playerid] = 1;
                                    return 1;
                                }
                            if (PlayerInfo[playerid][pCargo] == 6)
                                {
                                    format(string, sizeof(string), "* Oficial %s pega sua farda , e suas armas.", sendername);
                                    ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
                                    GivePlayerWeapon(playerid, 25, 190);
                                    GivePlayerWeapon(playerid, 24, 180);
                                    GivePlayerWeapon(playerid, 29, 350);
                                    GivePlayerWeapon(playerid, 34, 100);
                                    GivePlayerWeapon(playerid, 3, 0);
                                    GivePlayerWeapon(playerid, 31, 400);
                                    GivePlayerWeapon(playerid, 17, 200);
                                    SetPlayerArmour(playerid, 100.0);
                                    SetPlayerHealth(playerid, 100.0);
                                    OnEquipado[playerid] = 1;
                                    return 1;
                                }
                }
            }
            if(PlayerInfo[playerid][pMembro] != 1 && PlayerInfo[playerid][pLider] != 1 && PlayerInfo[playerid][pMembro] != 2 && PlayerInfo[playerid][pLider] != 2 && PlayerInfo[playerid][pMembro] != 3 && PlayerInfo[playerid][pLider] != 3 && PlayerInfo[playerid][pMembro] != 17 && PlayerInfo[playerid][pLider] != 17)
            {
                SendClientMessage(playerid, COLOR_LIGHTRED, "Vocк nгo й um PC/PM/B.O.P.E/Exйrcito");
            return 1;
            }
        }
        else
        {
            SendClientMessage(playerid, COLOR_LIGHTRED, "");
        }
    }
Reply
#3

Deu esse erro ai
C:\GM BY CAIO\gamemodes\VLC.pwn(21927) : error 017: undefined symbol "OnEquipado"
C:\GM BY CAIO\gamemodes\VLC.pwn(21927) : warning 215: expression has no effect
C:\GM BY CAIO\gamemodes\VLC.pwn(21927) : error 001: expected token: ";", but found "]"
C:\GM BY CAIO\gamemodes\VLC.pwn(21927) : error 029: invalid expression, assumed zero
C:\GM BY CAIO\gamemodes\VLC.pwn(21927) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


4 Errors.
Reply
#4

Topo do GM
pawn Код:
new OnEquipado[MAX_PLAYERS];
Reply
#5

Deu certo, mas nгo o comando /equipar nгo tб funfando.
digito /equipar na onde eu sempre digito fala que nгo existe.
Reply
#6

Vocк mudou as Coordenadas?
Reply
#7

Nгo sei mudar isso amigos, estou aprendendo ainda, estou apanhando muito.
Estou arrumando isso primeiro, tem como me dб uma ajuda de como muda as coordenadas?
Pode me chamar de noob, mas estou aprendendo ainda.

@Edit
Bom acho que consegui achar as coordenadas, estou modificando-as.
Fui tentar modifica-lбs para as coordenadas antigas deu esse erro aqui
C:\GM BY CAIO\gamemodes\VLC.pwn(21924) : warning 215: expression has no effect
C:\GM BY CAIO\gamemodes\VLC.pwn(21924) : warning 215: expression has no effect
C:\GM BY CAIO\gamemodes\VLC.pwn(21924) : warning 215: expression has no effect
C:\GM BY CAIO\gamemodes\VLC.pwn(21924) : error 001: expected token: ";", but found ")"
C:\GM BY CAIO\gamemodes\VLC.pwn(21924) : error 029: invalid expression, assumed zero
C:\GM BY CAIO\gamemodes\VLC.pwn(22506) : error 029: invalid expression, assumed zero
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


3 Errors.
Reply
#8

Manda as linhas do erro.
Reply
#9

if(PlayerToPoint(20.0, playerid,254.7391,65.5514,1003.6406) || PlayerToPoint(20.0,playerid,246.3652,123.7967,1003 .218 || PlayerToPoint(20.0,playerid,223.9656,1872.4908,13. 7344) || PlayerToPoint(20.0,playerid,299.7097,183.1322,1007 .1719) || PlayerToPoint(20.0,playerid,628.6713,-571.8173,17.106 || PlayerToPoint(20.0,playerid,-1615.7856,683.6613,7.1875)
|| PlayerToPoint(20.0,playerid,-1346.4631,492.4095,11.2027) || PlayerToPoint(20.0,playerid,1304.8406,-1062.3234,29.2390) || PlayerToPoint(20.0,playerid,2282.1035,-2030.4628,13.5469))
Reply
#10

Код:
if(PlayerToPoint(20.0,playerid,254.7391,65.5514,1003.6406) || PlayerToPoint(20.0,playerid,246.3652,123.7967,1003.218)  || PlayerToPoint(20.0,playerid,223.9656,1872.4908,13.7344) || PlayerToPoint(20.0,playerid,299.7097,183.1322,1007.1719) || PlayerToPoint(20.0,playerid,628.6713,-571.8173,17.106) || PlayerToPoint(20.0,playerid,-1615.7856,683.6613,7.1875)
|| PlayerToPoint(20.0,playerid,-1346.4631,492.4095,11.2027) || PlayerToPoint(20.0,playerid,1304.8406,-1062.3234,29.2390) || PlayerToPoint(20.0,playerid,2282.1035,-2030.4628,13.5469))
Tente isso.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)