[Off] Alguem ja mecheu com FCNPC?
#1

Olб caros usuбrios, alguem jб mecheu com o plugin FCNPC? Й que criei alguns bots aqui funcionando atй entгo, mas estгo com alguns problemas, e atй agora nгo encontrei alguem que saiba mecher com o plugin, se tiver alguem disposto a me ajudar, eu posso atй pagar se for o caso '-'
Reply
#2

Com certeza sim. Nгo seria mais correto postar o problema que estб acontecendo, juntamente com o cуdigo, e assim receber possнveis soluзхes?
Reply
#3

Ok! O problema й o seguinte, eu coloquei para os bots seguir apenas o time Humano, mas tб seguindo todos os times... poderia me ajudar?

pawn Код:
public ZMOVE(npcid)
{
    for(new ie=0; ie<MAX_PLAYERS; ie++)
    if(Team[ie] == HUMAN)
    {
        new Float:p[3];
        foreach(Player,i)
        {
            GetPlayerPos(i,p[0],p[1],p[2]);
            if(IsPlayerInRangeOfPoint(npcid,50,p[0],p[1],p[2]))
        {
            FCNPC_GoTo(npcid,p[0],p[1],p[2],MOVE_TYPE_RUN,10,1);
            if(IsPlayerInRangeOfPoint(npcid,1,p[0],p[1],p[2]))
        {
            FCNPC_Punch(npcid,p[0],p[1],p[2],125);
        }
      }
    }
  }
    return 1;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)