How to change login screen? Loading screen?
#1

Hi All,

Im just messing around with a new.pwn script as I want to learn to script. Can anyone point me in the direction of how to change the camera angle and position of the loading screen/login screen (The screen behind the login box) at the moment it is vinewood but I would much prefer if it was of another area. I have the saved positions but not sure how to put it in concept.

regards
Reply
#2

Check this out, https://sampwiki.blast.hk/wiki/PAWN_for_Begginers

You should read it all and it will help you a lot. The part you want is this
pawn Код:
OnPlayerRequestClass(playerid, classid)

    SetPlayerPos(playerid, x, y, z);
    SetPlayerCameraPos(playerid,  x, y, z);
    SetPlayerFacingAngle(playerid, angle);
    SetPlayerCameraLookAt(playerid, x, y, z);
Reply
#3

Before the player is connected to the server he will see the vinewood area, and you can't do anything about it
Reply
#4

Thank you.

Ive taken a look at that and this is what I came up with (using map editor and save spawns) however I get the right location but im facing away from the view I want and at the wrong angle?
http://pastebin.com/sSyF4gum#
Reply
#5

The camera is looking at its own position
I suppose you want the camera to look at the skin?
Reply
#6

The SetPlayerPos and SetCameraLookAt should be the same. The X value of SetCameraPos should be slight different from the SetPlayerPos.
Does that make any sense?
Reply
#7

pawn Код:
SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);
SetPlayerCameraPos(playerid, 2137.99, 1904.80, 10.33);
SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746);
Reply
#8

Yeah it kind of makes sense Thanks for the support guys.

Basically I don't want to see a character on the screen just a picture angled up from the floor looking upon the visage hotel in LV. I've got the co-ordinates for the view I want via Map Editor however when I load them onto the script and server im in the correct place however the camera is facing away from the visage not at it. Any idea where i'm messing up here?


EDIT: Somthing like this is what im aiming for but at the visage (https://sampforum.blast.hk/showthread.php?tid=346633)
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)