[Ajuda] Comando /equiparg Nao funciona !ajuda!
#1

Eu coloquei o sistema de cofre no gm e quando vai equipar ele nao funciona ele diz\/
PHP код:
Vocк sу pode equipar no cofre org de sua HQ 
EU TIREI ATЙ UM NOVO LOCAL NO /SAVE PRA POR LA MAIS MESMO ASSIM NAO FUNIONA ME AJUDA AI SE PUDEREN
CRIAR OUTRO EQUIPAR OU ARRUMAR ESTI MESMO

CAUSA MUITO TEMPO SEM MECHER EM PAWN

PHP код:
    if(strcmp(cmd"/equiparg"true) == 0)
    {
        new 
org GetPlayerOrg(playerid);
        if(
org == || org == || org == 10 || org == 11 || org == 12 || org == 13 || org == 15 || org == 16  || org == 17  || org == 18  || org == 19  || org == 20 )
        if(
IsAGang(playerid))
        {
            if(
CofreOrg[org][Materiais] < 20)
            {
                   
SendClientMessage(playerid,COLOR_GREY," O cofre de sua HQ tem menos de 20 materiais, compre mais com a mбfia ou deposite!");
                   return 
1;
            }
            
//if(PlayerInfo[playerid][pMember] == 5 && PlayerToPoint(8.0,playerid,308.1387,1120.6375,1083.8828))
            
if(PlayerInfo[playerid][pMember] == && org == && PlayerToPoint(8.0,playerid,323.1665,1117.5167,1083.8828))
            {
                   
SendClientMessage(playerid,COLOR_GREY," Vocк sу pode equipar no cofre org de sua HQ!");
                   return 
1;
            }
            if(
PlayerInfo[playerid][pMember] == && org == && PlayerToPoint(8.0,playerid,2497.8489,-1703.2598,1014.7422))
            {
                   
SendClientMessage(playerid,COLOR_GREY," Vocк sу pode equipar no cofre org de sua HQ!");
                   return 
1;
            }
            if(
PlayerInfo[playerid][pMember] == 10 && org == 10 && PlayerToPoint(8.0,playerid,1141.5215,-10.6199,1000.6719))
            {
                   
SendClientMessage(playerid,COLOR_GREY," Vocк sу pode equipar no cofre org de sua HQ!");
                   return 
1;
            }
            if(
PlayerInfo[playerid][pMember] == 11 && org == 11 && PlayerToPoint(8.0,playerid,451.3770,-83.9226,999.5547))//
            
{
                   
SendClientMessage(playerid,COLOR_GREY," Vocк sу pode equipar no cofre org de sua HQ!");
                   return 
1;
            }
            if(
PlayerInfo[playerid][pMember] == 12 && org == 12 && PlayerToPoint(8.0,playerid,2173.2478,-2256.5645,13.3048))
            {
                   
SendClientMessage(playerid,COLOR_GREY," Vocк sу pode equipar no cofre org de sua HQ!");
                   return 
1;
            }
            if(
PlayerInfo[playerid][pMember] == 13 && org == 13 && PlayerToPoint(8.0,playerid,2345.5767,-1184.8669,1027.9766))
            {
                   
SendClientMessage(playerid,COLOR_GREY," Vocк sу pode equipar no cofre org de sua HQ!");
                   return 
1;
            }
            if(
PlayerInfo[playerid][pMember] == 15 && org == 15 && PlayerToPoint(8.0,playerid,508.4756,-80.5316,998.9609))
            {
                   
SendClientMessage(playerid,COLOR_GREY," Vocк sу pode equipar no cofre org de sua HQ!");
                   return 
1;
            }
            if(
PlayerInfo[playerid][pMember] == 16 && org == 16 && PlayerToPoint(8.0,playerid,2811.7351,-1171.3318,1025.5703))
            {
                   
SendClientMessage(playerid,COLOR_GREY," Vocк sу pode equipar no cofre org de sua HQ!");
                   return 
1;
            }
            if(
PlayerInfo[playerid][pMember] == 17 && org == 17 && PlayerToPoint(8.0,playerid,1266.1218,-780.0120,1084.0078))
            {
                   
SendClientMessage(playerid,COLOR_GREY," Vocк sу pode equipar no cofre org de sua HQ!");
                   return 
1;
            }
            if(
PlayerInfo[playerid][pMember] == 18 && org == 18 && PlayerToPoint(8.0,playerid,-225.7658,1400.3685,27.7656))
            {
                   
SendClientMessage(playerid,COLOR_GREY," Vocк sу pode equipar no cofre org de sua HQ!");
                   return 
1;
            }
            if(
PlayerInfo[playerid][pMember] == 19 && org == 19 && PlayerToPoint(8.0,playerid,414.4804,2536.6851,10.0000))
            {
                   
SendClientMessage(playerid,COLOR_GREY," Vocк sу pode equipar no cofre org de sua HQ!");
                   return 
1;
            }
            if(
PlayerInfo[playerid][pMember] == 20 && org == 20 && PlayerToPoint(8.0,playerid,2551.3342,-1290.7883,1060.9844))
            {
            
SendClientMessage(playerid,COLOR_GREY," Vocк sу pode equipar no cofre org de sua HQ!");
            return 
1;
            }
            new 
dorgas CofreOrg[org][Materiais];
            if(
PlayerInfo[playerid][pLider] >= 1)
            {
                
CofreOrg[org][Materiais] = dorgas-20;
                
SetPlayerArmour(playerid100.0);
                
SetPlayerHealth(playerid100.0);
                
GivePlayerWeapon(playerid42);
                
GivePlayerWeapon(playerid24500);
                
GivePlayerWeapon(playerid29300);
                
GivePlayerWeapon(playerid27500);
                
GivePlayerWeapon(playerid30500);
                
format(stringsizeof(string), "* Gangster %s pega seus equipamentos de lнder."PlayerName(playerid));
                
ProxDetector(30.0playeridstringCOLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
                return 
true;
            }
            else if(
PlayerInfo[playerid][pCargo] <= 1)
            {
                
CofreOrg[org][Materiais] = dorgas-20;
                
SetPlayerArmour(playerid40.0);
                
SetPlayerHealth(playerid100.0);
                
GivePlayerWeapon(playerid52);
                
GivePlayerWeapon(playerid24500);
                
format(stringsizeof(string), "* Gangster %s pega seus equipamentos."PlayerName(playerid));
                
ProxDetector(30.0playeridstringCOLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
                return 
true;
            }
            else if(
PlayerInfo[playerid][pCargo] == 2)
            {
                
CofreOrg[org][Materiais] = dorgas-20;
                
SetPlayerArmour(playerid50.0);
                
SetPlayerHealth(playerid100.0);
                
GivePlayerWeapon(playerid42);
                
GivePlayerWeapon(playerid24500);
                
GivePlayerWeapon(playerid25500);
                
format(stringsizeof(string), "* Gangster %s pega seus equipamentos."PlayerName(playerid));
                
ProxDetector(30.0playeridstringCOLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
                return 
true;
            }
            else if(
PlayerInfo[playerid][pCargo] == 3)
            {
                
CofreOrg[org][Materiais] = dorgas-20;
                
SetPlayerArmour(playerid60.0);
                
SetPlayerHealth(playerid100.0);
                
GivePlayerWeapon(playerid42);
                
GivePlayerWeapon(playerid24500);
                
GivePlayerWeapon(playerid29500);
                
format(stringsizeof(string), "* Gangster %s pega seus equipamentos."PlayerName(playerid));
                
ProxDetector(30.0playeridstringCOLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
                return 
true;
            }
            else if(
PlayerInfo[playerid][pCargo] == 4)
            {
                
CofreOrg[org][Materiais] = dorgas-20;
                
SetPlayerArmour(playerid80.0);
                
SetPlayerHealth(playerid100.0);
                
GivePlayerWeapon(playerid4230);
                
GivePlayerWeapon(playerid24500);
                
GivePlayerWeapon(playerid29500);
                
GivePlayerWeapon(playerid25500);
                
format(stringsizeof(string), "* Gangster %s pega seus equipamentos."PlayerName(playerid));
                
ProxDetector(30.0playeridstringCOLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
                return 
true;
            }
            else if(
PlayerInfo[playerid][pCargo] == 5)
            {
                
CofreOrg[org][Materiais] = dorgas-20;
                
SetPlayerArmour(playerid90.0);
                
SetPlayerHealth(playerid100.0);
                
GivePlayerWeapon(playerid42);
                
GivePlayerWeapon(playerid24500);
                
GivePlayerWeapon(playerid29300);
                
GivePlayerWeapon(playerid25500);
                
GivePlayerWeapon(playerid30500);
                
format(stringsizeof(string), "* Gangster %s pega seus equipamentos."PlayerName(playerid));
                
ProxDetector(30.0playeridstringCOLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
                return 
true;
            }
        }
        return 
true;
    } 
Reply
#2

Quote:
Originally Posted by rogerioexper
Посмотреть сообщение
Eu coloquei o sistema de cofre no gm e quando vai equipar ele nao funciona ele diz\/
PHP код:
Vocк sу pode equipar no cofre org de sua HQ 
EU TIREI ATЙ UM NOVO LOCAL NO /SAVE PRA POR LA MAIS MESMO ASSIM NAO FUNIONA ME AJUDA AI SE PUDEREN
CRIAR OUTRO EQUIPAR OU ARRUMAR ESTI MESMO

CAUSA MUITO TEMPO SEM MECHER EM PAWN

PHP код:
    if(strcmp(cmd"/equiparg"true) == 0)
    {
        new 
org GetPlayerOrg(playerid);
        if(
org == || org == || org == 10 || org == 11 || org == 12 || org == 13 || org == 15 || org == 16  || org == 17  || org == 18  || org == 19  || org == 20 )
        if(
IsAGang(playerid))
        {
            if(
CofreOrg[org][Materiais] < 20)
            {
                   
SendClientMessage(playerid,COLOR_GREY," O cofre de sua HQ tem menos de 20 materiais, compre mais com a mбfia ou deposite!");
                   return 
1;
            }
            
//if(PlayerInfo[playerid][pMember] == 5 && PlayerToPoint(8.0,playerid,308.1387,1120.6375,1083.8828))
            
if(PlayerInfo[playerid][pMember] == && org == && PlayerToPoint(8.0,playerid,323.1665,1117.5167,1083.8828))
            {
                   
SendClientMessage(playerid,COLOR_GREY," Vocк sу pode equipar no cofre org de sua HQ!");
                   return 
1;
            }
            if(
PlayerInfo[playerid][pMember] == && org == && PlayerToPoint(8.0,playerid,2497.8489,-1703.2598,1014.7422))
            {
                   
SendClientMessage(playerid,COLOR_GREY," Vocк sу pode equipar no cofre org de sua HQ!");
                   return 
1;
            }
            if(
PlayerInfo[playerid][pMember] == 10 && org == 10 && PlayerToPoint(8.0,playerid,1141.5215,-10.6199,1000.6719))
            {
                   
SendClientMessage(playerid,COLOR_GREY," Vocк sу pode equipar no cofre org de sua HQ!");
                   return 
1;
            }
            if(
PlayerInfo[playerid][pMember] == 11 && org == 11 && PlayerToPoint(8.0,playerid,451.3770,-83.9226,999.5547))//
            
{
                   
SendClientMessage(playerid,COLOR_GREY," Vocк sу pode equipar no cofre org de sua HQ!");
                   return 
1;
            }
            if(
PlayerInfo[playerid][pMember] == 12 && org == 12 && PlayerToPoint(8.0,playerid,2173.2478,-2256.5645,13.3048))
            {
                   
SendClientMessage(playerid,COLOR_GREY," Vocк sу pode equipar no cofre org de sua HQ!");
                   return 
1;
            }
            if(
PlayerInfo[playerid][pMember] == 13 && org == 13 && PlayerToPoint(8.0,playerid,2345.5767,-1184.8669,1027.9766))
            {
                   
SendClientMessage(playerid,COLOR_GREY," Vocк sу pode equipar no cofre org de sua HQ!");
                   return 
1;
            }
            if(
PlayerInfo[playerid][pMember] == 15 && org == 15 && PlayerToPoint(8.0,playerid,508.4756,-80.5316,998.9609))
            {
                   
SendClientMessage(playerid,COLOR_GREY," Vocк sу pode equipar no cofre org de sua HQ!");
                   return 
1;
            }
            if(
PlayerInfo[playerid][pMember] == 16 && org == 16 && PlayerToPoint(8.0,playerid,2811.7351,-1171.3318,1025.5703))
            {
                   
SendClientMessage(playerid,COLOR_GREY," Vocк sу pode equipar no cofre org de sua HQ!");
                   return 
1;
            }
            if(
PlayerInfo[playerid][pMember] == 17 && org == 17 && PlayerToPoint(8.0,playerid,1266.1218,-780.0120,1084.0078))
            {
                   
SendClientMessage(playerid,COLOR_GREY," Vocк sу pode equipar no cofre org de sua HQ!");
                   return 
1;
            }
            if(
PlayerInfo[playerid][pMember] == 18 && org == 18 && PlayerToPoint(8.0,playerid,-225.7658,1400.3685,27.7656))
            {
                   
SendClientMessage(playerid,COLOR_GREY," Vocк sу pode equipar no cofre org de sua HQ!");
                   return 
1;
            }
            if(
PlayerInfo[playerid][pMember] == 19 && org == 19 && PlayerToPoint(8.0,playerid,414.4804,2536.6851,10.0000))
            {
                   
SendClientMessage(playerid,COLOR_GREY," Vocк sу pode equipar no cofre org de sua HQ!");
                   return 
1;
            }
            if(
PlayerInfo[playerid][pMember] == 20 && org == 20 && PlayerToPoint(8.0,playerid,2551.3342,-1290.7883,1060.9844))
            {
            
SendClientMessage(playerid,COLOR_GREY," Vocк sу pode equipar no cofre org de sua HQ!");
            return 
1;
            }
            new 
dorgas CofreOrg[org][Materiais];
            if(
PlayerInfo[playerid][pLider] >= 1)
            {
                
CofreOrg[org][Materiais] = dorgas-20;
                
SetPlayerArmour(playerid100.0);
                
SetPlayerHealth(playerid100.0);
                
GivePlayerWeapon(playerid42);
                
GivePlayerWeapon(playerid24500);
                
GivePlayerWeapon(playerid29300);
                
GivePlayerWeapon(playerid27500);
                
GivePlayerWeapon(playerid30500);
                
format(stringsizeof(string), "* Gangster %s pega seus equipamentos de lнder."PlayerName(playerid));
                
ProxDetector(30.0playeridstringCOLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
                return 
true;
            }
            else if(
PlayerInfo[playerid][pCargo] <= 1)
            {
                
CofreOrg[org][Materiais] = dorgas-20;
                
SetPlayerArmour(playerid40.0);
                
SetPlayerHealth(playerid100.0);
                
GivePlayerWeapon(playerid52);
                
GivePlayerWeapon(playerid24500);
                
format(stringsizeof(string), "* Gangster %s pega seus equipamentos."PlayerName(playerid));
                
ProxDetector(30.0playeridstringCOLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
                return 
true;
            }
            else if(
PlayerInfo[playerid][pCargo] == 2)
            {
                
CofreOrg[org][Materiais] = dorgas-20;
                
SetPlayerArmour(playerid50.0);
                
SetPlayerHealth(playerid100.0);
                
GivePlayerWeapon(playerid42);
                
GivePlayerWeapon(playerid24500);
                
GivePlayerWeapon(playerid25500);
                
format(stringsizeof(string), "* Gangster %s pega seus equipamentos."PlayerName(playerid));
                
ProxDetector(30.0playeridstringCOLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
                return 
true;
            }
            else if(
PlayerInfo[playerid][pCargo] == 3)
            {
                
CofreOrg[org][Materiais] = dorgas-20;
                
SetPlayerArmour(playerid60.0);
                
SetPlayerHealth(playerid100.0);
                
GivePlayerWeapon(playerid42);
                
GivePlayerWeapon(playerid24500);
                
GivePlayerWeapon(playerid29500);
                
format(stringsizeof(string), "* Gangster %s pega seus equipamentos."PlayerName(playerid));
                
ProxDetector(30.0playeridstringCOLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
                return 
true;
            }
            else if(
PlayerInfo[playerid][pCargo] == 4)
            {
                
CofreOrg[org][Materiais] = dorgas-20;
                
SetPlayerArmour(playerid80.0);
                
SetPlayerHealth(playerid100.0);
                
GivePlayerWeapon(playerid4230);
                
GivePlayerWeapon(playerid24500);
                
GivePlayerWeapon(playerid29500);
                
GivePlayerWeapon(playerid25500);
                
format(stringsizeof(string), "* Gangster %s pega seus equipamentos."PlayerName(playerid));
                
ProxDetector(30.0playeridstringCOLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
                return 
true;
            }
            else if(
PlayerInfo[playerid][pCargo] == 5)
            {
                
CofreOrg[org][Materiais] = dorgas-20;
                
SetPlayerArmour(playerid90.0);
                
SetPlayerHealth(playerid100.0);
                
GivePlayerWeapon(playerid42);
                
GivePlayerWeapon(playerid24500);
                
GivePlayerWeapon(playerid29300);
                
GivePlayerWeapon(playerid25500);
                
GivePlayerWeapon(playerid30500);
                
format(stringsizeof(string), "* Gangster %s pega seus equipamentos."PlayerName(playerid));
                
ProxDetector(30.0playeridstringCOLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
                return 
true;
            }
        }
        return 
true;
    } 
Mas voce esta executando o comando dentro do checkpoint ?
Reply
#3

Esse codigo nгo ta erradinho , ta erradao !


Ta aqui uma base
PHP код:
 if(strcmp(cmd"/equiparg"true) == 0)
    {
            if(!
IsAGang(playerid))return true;
            if(
CofreOrg[org][Materiais] < 20)return SendClientMessage(playerid,COLOR_GREY," O cofre de sua HQ tem menos de 20 materiais, compre mais com a mбfia ou deposite!");
            
            if(
PlayerInfo[playerid][pMember] == && !PlayerToPoint(8.0,playerid,323.1665,1117.5167,1083.8828)
            || 
PlayerInfo[playerid][pMember] == && !PlayerToPoint(8.0,playerid,2497.8489,-1703.2598,1014.7422))
            
            return 
SendClientMessage(playerid,COLOR_GREY," Vocк sу pode equipar no cofre org de sua HQ!");
            
            
            switch(
PlayerInfo[playerid][pCargo])
            {
                  case 
1:
                  {
                  }
                  case 
2:
                  {
                  }
                  case 
3:
                  {
                  }
            }
        return 
true;
    } 
Reply
#4

ja arrumei aqui vlw ae
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)