[Ajuda] SetPlayerAttachedObject
#1

eu adicionei para cops um comando exclusivo..q adiciona um escudo e capacete quando ele digita o comando /equipamentocop.
o Comando estб aqui:
pawn Код:
if(!IsACop(playerid))
            return SendClientMessage(playerid, COLOR_RED, "[ERRO] Vocк nгo й um Policial.");
        SetPlayerAttachedObject(playerid,5,18637,13,0.35,0.0,0.0,0.0,0.0,180.0);
        SetPlayerAttachedObject(playerid,6,18642,7,0.1,0.0,-0.11,0.0,-90.0,90.0);
        SetPlayerAttachedObject(playerid,7,19141,2,0.11,0.0,0.0,0.0,0.0,0.0);
        //GivePlayerWeapon(playerid,3,1);
        SendClientMessage(playerid,COLOR_GREY,"[INFO] Vocк Pegou Seu Escudo e Capacete! Para remover digite /stophold");
        return 1;
Como deveria Ficar:




Ele carrega assim,,mas depois de +/- 3 segundos,,ele fica assim:




O q pode ser? por favor preciso mesmo dessa ajuda
Reply
#2

UPAЗO ja q ninguem ajudou
Reply
#3

Pode esta Ocorrendo algum COnflito com outros attc
Reply
#4

Quote:
Originally Posted by Sky_.
Посмотреть сообщение
Pode esta Ocorrendo algum COnflito com outros attc
E como o cara vai arrumar se vc n explica?
Reply
#5

usa este do meu servidor talvez nгo de conflito, depois me diz ai se deu tudo certo
pawn Код:
if(!strcmp(cmdtext,"/batalha",true))
 {
        if(IsACop(playerid))
      {
 if(Equipamentos[playerid] == 1)
        {
       RemovePlayerAttachedObject(playerid,1);
          RemovePlayerAttachedObject(playerid,2);
           RemovePlayerAttachedObject(playerid,3);
          RemovePlayerAttachedObject(playerid,4);
                 Equipamentos[playerid] = 0;
              return 1;
     }        if(Equipamentos[playerid] == 0)
      {            SetPlayerAttachedObject(playerid,1,19142,1,0.1,0.05,0.0,0.0,0.0,0.0);
           SetPlayerAttachedObject(playerid,2,19141,2,0.11,0.0,0.0,0.0,0.0,0.0);
        SetPlayerAttachedObject(playerid,3,18637,13,0.35,0.0,0.0,0.0,0.0,180.0);
       SetPlayerAttachedObject(playerid,4,18642,7,0.1,0.0,-0.11,0.0,-90.0,90.0);
       SendClientMessage(playerid,COLOR_YELLOW,"Vocк colocou os seus equipantos de batalha !");
     Equipamentos[playerid] = 1;
        return 1;
 }
    }
    else
     {
    SendClientMessage(playerid,COLOR_YELLOW,"Vocк nгo й um COP.");
    }
   return 1;
   }
Reply
#6

Continua aparecendo e sumindo depois
ALGUEM?
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)