Login Camera View Help
#1

I'm trying to figure out how to set it up so that when a player connects to the server, the camera angle shows something different than the LS beach. I've tried finding a tutorial or filterscript that explains this, but I can't find one that works for me.
Reply
#2

Use SA-MP map editor https://sampforum.blast.hk/showthread.php?tid=282801
In this map editor you will see View Section >> Copy Current Camera view
Reply
#3

You could actually go into a position, type /save wherever you'd wish the skin selection/camera look to be and /save again wherever you'd wish the camera's position to be. Then, you would find the positions inside of My Files, Grand Theft Auto User Files(not exactly sure if this is the name, can't check as I am currently in a phone.), you'll find a savedpositions.txt file if you open the SAMP foldwr inside of GTA's file, which can be found in My Files. Afterwards, you would see several positions in it like this;

pawn Код:
AddPlayerClass(240, x , y , z , ......); // You'd find this one if you took an "OnFoot" save.
AddStaticVehicle(411, x, y, z , .......); // You'd find this one if you took an "InVehicle" save.

// Remember, 240 is a skin ID and 411 is a vehicle ID so they are irrelevant to you. You would see x,y and z as strange numbers which are called a float, copy the first 3 of them excluding the skin ID and vehicle ID. The rest of the numbers are irrelevant aswell.
Next thing you want to do is searching for "OnPlayerRequestSpawn" hit CTRL+F and search for it. You'd see 3 functions inside of it if you haven't modified it yet. The functions would be;

pawn Код:
SetPlayerPos // This is where you'd like the skins to be shown at.
SetPlayerCameraPos // This is where you'd like the camera's position to be.
SetPlayerCameraLookAt // This is where you'd like the camera to spectate from the position you previously scripted.
For more info, please visit https://sampwiki.blast.hk/wiki/SetPlayerPos , https://sampwiki.blast.hk/wiki/SetPlayerCameraPos , https://sampwiki.blast.hk/wiki/SetPlayerCameraLookAt

If you have got any further questions/concerns feel free to ask via replying to this topic. I hope this helps you. Good luck.
Reply
#4

Quote:
Originally Posted by Rufio
Посмотреть сообщение
You could actually go into a position, type /save wherever you'd wish the skin selection/camera look to be and /save again wherever you'd wish the camera's position to be. Then, you would find the positions inside of My Files, Grand Theft Auto User Files(not exactly sure if this is the name, can't check as I am currently in a phone.), you'll find a savedpositions.txt file if you open the SAMP foldwr inside of GTA's file, which can be found in My Files. Afterwards, you would see several positions in it like this;

pawn Код:
AddPlayerClass(240, x , y , z , ......); // You'd find this one if you took an "OnFoot" save.
AddStaticVehicle(411, x, y, z , .......); // You'd find this one if you took an "InVehicle" save.

// Remember, 240 is a skin ID and 411 is a vehicle ID so they are irrelevant to you. You would see x,y and z as strange numbers which are called a float, copy the first 3 of them excluding the skin ID and vehicle ID. The rest of the numbers are irrelevant aswell.
Next thing you want to do is searching for "OnPlayerRequestSpawn" hit CTRL+F and search for it. You'd see 3 functions inside of it if you haven't modified it yet. The functions would be;

pawn Код:
SetPlayerPos // This is where you'd like the skins to be shown at.
SetPlayerCameraPos // This is where you'd like the camera's position to be.
SetPlayerCameraLookAt // This is where you'd like the camera to spectate from the position you previously scripted.
For more info, please visit https://sampwiki.blast.hk/wiki/SetPlayerPos , https://sampwiki.blast.hk/wiki/SetPlayerCameraPos , https://sampwiki.blast.hk/wiki/SetPlayerCameraLookAt

If you have got any further questions/concerns feel free to ask via replying to this topic. I hope this helps you. Good luck.
In my script, when you connect to the server, the register/login dialog appears with no "spawn" button on the bottom, so how can it be called then when there's no spawn button?
Reply
#5

The Spectation feature in SA-MP, just use ****** or look at the SA-MP development wiki, and it'll explain allot to a newbie like yourself.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)