Help with SetPlayerCameraPos.
#1

Hello,
I wanted to ask that how can I use SetPlayerCameraPos for making CCTV cameras,I mean how can I get the correct coordinates,and can someone provide me some small codes that explain the cmd better.
ThAnKs!.
Reply
#2

/save name, saves your current position.
Reply
#3

SetPlayerCameraPos(playerid, x,y,z) are used for setting the camera to exactly that location.
SetCameraLookAt(playerid, x,y,z) are used for setting the location the players camera will be looking at.
SetcameraBehindPlayer(playerid) will set the camera behind the player when you are finished

wiki links:

https://sampwiki.blast.hk/wiki/SetPlayerCameraLookAt
https://sampwiki.blast.hk/wiki/SetPlayerCameraPos
https://sampwiki.blast.hk/wiki/SetCameraBehindPlayer
Hope it helped
Reply
#4

PHP код:
public OnPlayerCommandText(playeridcmdtext[])
{
    if (
strcmp("/test"cmdtexttrue10) == 0)
    {
        
SetPlayerCameraPos(playerid,1962.6359,1355.6021,9.2578);
        return 
1;
    }
    return 
0;

Can you edit this for me please.
Reply
#5

Edit it how? Where do you want it to be?
Reply
#6

well if you want the CCTV camera to look at LSPD you will have to:
go back a few steps and type /save, add more meters to the Z so if it's 20 make it 30 or 35
pawn Код:
SetPlayerCameraPos(playerid, x,y,z)
This will be the place where will the camera looks: usually add your pos if you want it to look at you.
pawn Код:
SetCameraLookAt(playerid, x,y,z)
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)