[Tutorial] Como crear Facciones y Agregarle Vehiculos
#6

A lo mejor es que no tienes definido "Playertopoint"
pawn Код:
forward PlayerToPoint(Float:radi, playerid, Float:x, Float:y, Float:z);//arriba del todo
pawn Код:
public PlayerToPoint(Float:radi, playerid, Float:x, Float:y, Float:z)//abajo del todo despuйs del ultimo "}"
{
  if(IsPlayerConnected(playerid))
    {
        new Float:oldposx, Float:oldposy, Float:oldposz;
        new Float:tempposx, Float:tempposy, Float:tempposz;
        GetPlayerPos(playerid, oldposx, oldposy, oldposz);
        tempposx = (oldposx -x);
        tempposy = (oldposy -y);
        tempposz = (oldposz -z);
        //printf("DEBUG: X:%f Y:%f Z:%f",posx,posy,posz);
        if (((tempposx < radi) && (tempposx > -radi)) && ((tempposy < radi) && (tempposy > -radi)) && ((tempposz < radi) && (tempposz > -radi)))
        {
            return 1;
        }
    }
    return 0;
}
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 2 Guest(s)