Aanyone know a code for an auto tele
#6

Quote:
Originally Posted by ►☺◄©ookie►☺◄
Quote:

?? clearer wherr to find this gf wtf it is?

pawn Код:
forward PlayerToPoint(Float:radi, playerid, Float:x, Float:y, Float:z);


public PlayerToPoint(Float:radi, playerid, Float:x, Float:y, Float:z)
{
  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;
}
ok now where do i put the location to goto the tele and the location the tele sends u too and the text :S
Reply


Messages In This Thread
Aanyone know a code for an auto tele - by braduz - 31.08.2009, 13:19
Re: Aanyone know a code for an auto tele - by James_Alex - 31.08.2009, 13:21
Re: Aanyone know a code for an auto tele - by braduz - 31.08.2009, 13:27
Re: Aanyone know a code for an auto tele - by James_Alex - 31.08.2009, 13:29
Re: Aanyone know a code for an auto tele - by mirkoiz - 31.08.2009, 14:40
Re: Aanyone know a code for an auto tele - by braduz - 31.08.2009, 14:45
Re: Aanyone know a code for an auto tele - by mirkoiz - 31.08.2009, 14:48
Re: Aanyone know a code for an auto tele - by braduz - 31.08.2009, 14:51

Forum Jump:


Users browsing this thread: 1 Guest(s)