PlayerToPoint

Wichtiger Hinweis: Bitte ändert nicht manuell die Schriftfarbe auf schwarz sondern belasst es bei der Standardeinstellung. Somit tragt ihr dazu bei dass euer Text auch bei Verwendung unseren dunklen Forenstils noch lesbar ist!

Tipp: Ihr wollt längere Codeausschnitte oder Logfiles bereitstellen? Benutzt unseren eigenen PasteBin-Dienst Link
  • Huhuu zusammen!


    Habe ein Frage wie Definiere ich "PlayerToPoint" ? Mit allen Drum und dran?!
    Ich weiß #define play.....
    forward...
    und irgendwohin :
    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;
    }


    Aber ich brauche alles & Schritt für SChritt ;) PS Selfmade!


    Ich danke im Vorraus!





    //EDIT:


    Okay schon erledigt, trz danke ;)


    PS: Sry das ich dafür ein Thread eröffnet habe!

    Ich biete mich als Admin und evtl. als Mapper/Scripter an. Ich kann nicht viel, aber ich helfe wo ich kann :) .

    Erfahrungen:

    -Durch eigenen Server / Habe auch Teamspeak gehostet.
    -1337 Admin
    -1337 Befehle
    -Pawn
    -Linux
    -Php/Html/WBB
    -Mappen
    -Vieles mehr, was man dazu halt braucht ;) ICQ:426963598

    Einmal editiert, zuletzt von Knuffix ()