SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help

Reply
 
Thread Tools Display Modes
Old 20/06/2020, 07:34 AM   #1
faustowp
Little Clucker
 
Join Date: Aug 2017
Posts: 26
Reputation: 0
Default help with my login camera

I need help I want to change the default camera facing the beach, I put my InterPolateCamera in OnPlayerRequestClass, OnPlayerConnect in my login function and create a SetPlayerJoinCamera function, but it still doesn't work...

Code:
InterpolateCameraPos(playerid, -1955.6783, 104.0554, 90.7799, -2660.9180, 1204.8955, 78.0538, 50000);
InterpolateCameraLookAt(playerid, -1949.7379, 113.2954, 81.7599, -2661.2205, 1205.8480, 77.4288, 1000);
faustowp is offline   Reply With Quote
Old 21/06/2020, 06:30 AM   #2
faustowp
Little Clucker
 
Join Date: Aug 2017
Posts: 26
Reputation: 0
Default Re: help with my login camera

up!!
faustowp is offline   Reply With Quote
Old 21/06/2020, 04:06 PM   #3
David (Sabljak)
Huge Clucker
 
Join Date: Nov 2011
Posts: 342
Reputation: 18
Default Re: help with my login camera

You can't it's SAMP default. Only way to change it is after connecting and loading script, it usually takes few seconds when camera is on beach.
__________________
David (Sabljak) is offline   Reply With Quote
Old 21/06/2020, 04:37 PM   #4
faustowp
Little Clucker
 
Join Date: Aug 2017
Posts: 26
Reputation: 0
Default Re: help with my login camera

If that's the camera I'm talking about, after loading the script
faustowp is offline   Reply With Quote
Old 24/06/2020, 06:59 AM   #5
faustowp
Little Clucker
 
Join Date: Aug 2017
Posts: 26
Reputation: 0
Default Re: help with my login camera

upppppp
faustowp is offline   Reply With Quote
Old 24/06/2020, 10:40 AM   #6
jasperschellekens
High-roller
 
jasperschellekens's Avatar
 
Join Date: Dec 2016
Location: Holland
Posts: 1,077
Reputation: 126
Default Re: help with my login camera

David already todl you what you have to do. If you do not seem to understand: You have to load first before you can do this. For example, spawn the player onplayerconnect, after that you set the camera pos etc.
__________________
If you want to have your own custom script, or even want to have one of our already released scripts, join our SCRIPTING SERVICES DISCORD, or send me a private message!


Undead Wasteland Roleplay - The year is 1996. San Andreas is a wasteland ruled by the undead. the once so glorius landscape of San Andreas, is now a shattered decayed place that is only a vague memory of the world as we used to know it.
Discord - Website
jasperschellekens is offline   Reply With Quote
Old 24/06/2020, 09:33 PM   #7
faustowp
Little Clucker
 
Join Date: Aug 2017
Posts: 26
Reputation: 0
Default Re: help with my login camera

It seems to me that the ones who don't understand are you, I know that you can't change the default camera of the SAMP but after loading the script you can change it... But there is no way you can change it.
faustowp is offline   Reply With Quote
Old 24/06/2020, 10:18 PM   #8
SkyFlare
Huge Clucker
 
SkyFlare's Avatar
 
Join Date: Apr 2015
Location: NZ
Posts: 219
Reputation: 43
Default Re: help with my login camera

OnPlayerConnect - Set the player to be spectating, using this > TogglePlayerSpectating(playerid, 1);

then change their Position and Camera etc
SetPlayerPos(playerid, x, y, z);
SetPlayerCameraPos(playerid, x, y, z);
SetPlayerCameraLookAt(playerid, x, y, z);
NOTE: if these don't work, directly after Spectating is enabled, you can also make a function to be called after toggling the spectator mode, which will directly fix the issue.

if you dont want to spectate due to login style, then simply spawn the player SpawnPlayer(playerid);
and then change their virtual world to an unused one, and then set pos and camera pos/lookat.
that way other players cant see them while they're logging in
__________________
Purchasable Scripting Services Available, Inbox me with your Requests.
My Project Progress Tracker
My Work
Link
Information
S-Store System V2 LinkIngame Store in Dialogs
SkyFlare is offline   Reply With Quote
Old 25/06/2020, 02:53 AM   #9
faustowp
Little Clucker
 
Join Date: Aug 2017
Posts: 26
Reputation: 0
Default Re: help with my login camera

Thanks, solved!
faustowp is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Camera on login ShoortyFl Scripting Help 4 14/04/2016 10:54 PM
Login Camera View Help DTV Scripting Help 4 09/01/2015 11:22 PM
Login camera issue, Laure Scripting Help 6 10/06/2014 12:07 PM
Login camera ZeroCools Scripting Help 2 21/02/2013 04:21 PM
Moving Camera On Login The Camera On Player Spawn Does Not Go Back. Robert_Crawford Help Archive 5 20/06/2011 12:56 AM


All times are GMT. The time now is 08:36 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.