Login screen view.
#1

My script basically loads the registration/login dialog OnPlayerConnect, it loads the dialog properly but I've got code that should show a view OnPlayerConnect behind the dialog, but it doesn't seem to be working properly. Can someone assist me.

The code I'm using is under the callback OnPlayerConnect.
Код:
SetPlayerCameraPos(playerid,-2639.7759,1160.9636,166.0073);
SetPlayerCameraLookAt(playerid,-1822.1753,772.0064,137.3224);
Reply
#2

I'm not sure what you mean but you should setplayercamera pos and view on playerconnect and set a little timer after it.If you mean that :/
Reply
#3

You can't change player camera position in OnPlayerConnect callback.
http://forum.sa-mp.com/showthread.ph...43#post1454643
Reply
#4

Put this under
"OnPlayerRequestClass"
or either,
"OnPlayerRequestSpawn".
Try that.
Reply
#5

I like to do the login/spawn checking in OnPlayerRequestClass and set the camera position there.
Reply
#6

Because the login screen is defined as the player spectating, you can simply use InterpolateCameraLookAt as a workaround. Just set the positions twice. For example:

Код:
InterpolateCameraLookAt(playerid, ,-1822.1753,772.0064,137.3224,-1822.1753,772.0064,137.3224, 5000, CAMERA_MOVE);
Reply
#7

Hey, I have question for you? How you are blocking the spawn buttons??
and in for your question:
Код:
OnPlayerRequestClass(playerid, classid) {
    SetPlayerCameraPos(playerid,-2639.7759,1160.9636,166.0073);
    SetPlayerCameraLookAt(playerid,-1822.1753,772.0064,137.3224);
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)