Login Fenster

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
  • Moin,


    im Login-Fenster soll der Player immer wo anders hinschauen.
    Leider bleibt er bei dem Standart. (damit meine ich den Strand)
    Unter OnPlayerConnect:
    LoginZufallBild(playerid);



    .


    forward LoginZufallBild(playerid);
    public LoginZufallBild(playerid)
    {
    new Fall = random(9);
    if(Fall == 0){SetPlayerCameraPos(playerid,1473.3173,-1660.9601,64.0923); SetPlayerCameraLookAt(playerid,1550.1021,-1675.7664,15.2605); SetPlayerPos(playerid,1550.1021,-1675.7664,5.2605);}
    else if(Fall == 1){SetPlayerCameraPos(playerid,1473.3173,-1660.9601,64.0923); SetPlayerCameraLookAt(playerid,1509.7351,-1554.6082,13.5766); SetPlayerPos(playerid,1509.7351,-1554.6082,3.5766);}
    else if(Fall == 2){SetPlayerCameraPos(playerid,1234.4061,-920.2399,43.9688); SetPlayerCameraLookAt(playerid,1215.5883,-916.3632,42.9219); SetPlayerPos(playerid,1215.5883,-916.3632,32.9219);}
    else if(Fall == 3){SetPlayerCameraPos(playerid,1046.1188,-1739.0284,37.5469); SetPlayerCameraLookAt(playerid,1095.4829,-1796.1761,13.6042); SetPlayerPos(playerid,1095.4829,-1796.1761,3.6042);}
    else if(Fall == 4){SetPlayerCameraPos(playerid,1040.3531,-969.1296,47.5234); SetPlayerCameraLookAt(playerid,1159.8936,-947.1271,43.0269); SetPlayerPos(playerid,1159.8936,-947.1271,33.0269);}
    else if(Fall == 5){SetPlayerCameraPos(playerid,1350.7292,-925.5828,49.4986); SetPlayerCameraLookAt(playerid,1349.6624,-1236.7063,12.9399); SetPlayerPos(playerid,1349.6624,-1236.7063,2.9399);}
    else if(Fall == 6){SetPlayerCameraPos(playerid,642.9772,-1193.8787,64.6901); SetPlayerCameraLookAt(playerid,595.4556,-1239.0215,17.5621); SetPlayerPos(playerid,595.4556,-1239.0215,10.5621);}
    else if(Fall == 7){SetPlayerCameraPos(playerid,704.9832,-1572.9395,14.8984); SetPlayerCameraLookAt(playerid,1519.5128,-1364.5171,190.8017); SetPlayerPos(playerid,1519.5128,-1364.5171,180.8017);}
    else{SetPlayerCameraPos(playerid,1218.9008,-938.9128,92.1985); SetPlayerCameraLookAt(playerid,1218.9008,-938.9128,42.1985); SetPlayerPos(playerid,1218.9008,-938.9128,30.1985);}
    return 1;
    }


    Auch wenn ich normal unter OnPlayerConnect SetPlayerCameraPos nutze, funktioniert es nicht.