wtf, players are from behind
#1

Hi,

I need ur Help, guys! This are my co-ordinates:
Код:
AddPlayerClass(0,2486.7598,-1647.5186,14.0703,187.5500,0,0,0,0,0,0); // bigsmoke1.0
AddPlayerClass(0,2486.4346,-1646.0953,14.0703,5.9833,0,0,0,0,0,0); // bigsmoke2.0
And this I added in my gamemode;

Код:
case 3:
	    {
	    SetPlayerTeamFromClass(playerid, classid);
	    SetPlayerPos(playerid, 2486.7598,-1647.5186,14.0703);
	    SetPlayerFacingAngle( playerid, 187.5500 );
	    SetPlayerCameraPos(playerid, 2486.4346,-1646.0953,14.0703);
	    SetPlayerCameraLookAt(playerid, 2486.7598,-1647.5186,14.0703);
		}
And then, the game shows Big Smoke from behind, look at the picture under my post! And why he is soooo near?
Reply
#2

He is near because the camera coordinates are wrong. You have to make new ones.
Reply
#3

Because:
Код:
SetPlayerCameraPos(playerid, 2486.4346,-1646.0953,14.0703);
SetPlayerCameraLookAt(playerid, 2486.7598,-1647.5186,14.0703);
SetPlayerCameraPos = Where the camera is
SetPlayerCameraLookAt = Where the camera looks at

Reply
#4

your Camera Position and FacingAngle are wrong
Reply
#5

Quote:
Originally Posted by park4bmx
Посмотреть сообщение
your Camera Position and FacingAngle are wrong
Facing angle is correct, only the camera pos is wrong.
Reply
#6

What did I do wrong? Camera pos is like this: I have to copy x,y,z from first co-ordinates, right? Or like what??
Reply
#7

Nobody know how to fix this damn problem?
Reply
#8

We already told you change camera position.
You must go in game and save new camera coordinates
Reply
#9

pawn Код:
SetPlayerPos(playerid, 2486.7598,-1647.5186,14.0703);
SetPlayerFacingAngle( playerid, 187.5500 );
SetPlayerCameraPos(playerid, 2486.4346,-1646.0953-5,14.0703);
SetPlayerCameraLookAt(playerid, 2486.7598,-1647.5186,14.0703);
Reply
#10

Take this and TRY TO LEARN
You can save your coordonates by type /save in server

pawn Код:
public OnPlayerRequestClass(playerid, classid)
{
SetPlayerPos(playerid, 1722.5426, -1949.5486, 13.9143);//Player Position
SetPlayerFacingAngle(playerid, 90.0000);//Player Angle
SetPlayerCameraPos(playerid, 1707.5735, -1956.3986, 19.8152);//Camera Position
SetPlayerCameraLookAt(playerid, 1722.5426, -1949.5486, 13.9143);//Where Camera Look
return 1;
}
Reply
#11

You always have to change SetPlayerCameraPos, you can't keep at same as SetPlayerPos. You change the SetPlayerPos' either, the y coordinates of the player to +3 or -3, or the x coordinates of the player to +3 or -3, it depends. You just need to know, that when you /save, use the coordinates to save the player's position, and angle. You also use it for SetPlayerCamerLookAt, but you have to change the SetPlayerCameraPos to what I explained above. For example, if you have a camera IRL:
SetPlayerCameraPos = where you're holding the camera
SetPlayerCameraLookAt = the angle of the camera
SetPlayerPos = the object
Reply
#12

I understood a little, but not everythin...

For example, I want everybody from Groove Street in his own house!
I use the Code from u Adil, but what should I take and replace for Ryder's house?

Код:
AddPlayerClass(0,2459.9001,-1688.4135,13.5280,2.9949,0,0,0,0,0,0); // ryder1.0
And what do u mean with change y or x co-ordinates to +3 or-3?

Sry, I don't understand some things !
Reply
#13

Can anybody help me, I'm too stupid for that! >_<
Reply
#14

I know you aren't very a very good scripter but try to learn.... you will need something like this
there are more and good ways but this i have for moment....

pawn Код:
if(GetPlayerSkin(playerid) == 284)
{
//Bla Bla Bla
}
else if(GetPlayerSkin(playerid) == 121)
{
//Bla Bla Bla
}
Reply
#15

where should i put the if else function? And between them I should put:
case 4:
{
SetPlayerPos(playerid, 2486.7598,-1647.5186,14.0703);
SetPlayerFacingAngle( playerid, 187.5500 );
SetPlayerCameraPos(playerid, 2486.4346,-1646.0953-5,14.0703);
SetPlayerCameraLookAt(playerid, 2486.7598,-1647.5186,14.0703);
}

or what? My usual question was this:

For example, I want everybody from Groove Street in his own house!
I use the Code from u Adil, but what should I take and replace for Ryder's house?

Code:

AddPlayerClass(0,2459.9001,-1688.4135,13.5280,2.9949,0,0,0,0,0,0); // ryder1.0
Reply
#16

PM Me Whit Your Whole "OnPlayerRequestClass"
Reply
#17

I've sent u !
Reply
#18

I need ur help!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)