wtf, players are from behind -
samtey - 18.07.2011
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?
Re: wtf, players are from behind -
Cypress - 18.07.2011
He is near because the camera coordinates are wrong. You have to make new ones.
Re: wtf, players are from behind -
Jofi - 18.07.2011
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
Re: wtf, players are from behind -
park4bmx - 18.07.2011
your
Camera Position and
FacingAngle are wrong
Re: wtf, players are from behind -
Cypress - 18.07.2011
Quote:
Originally Posted by park4bmx
your Camera Position and FacingAngle are wrong
|
Facing angle is correct, only the camera pos is wrong.
AW: wtf, players are from behind -
samtey - 18.07.2011
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??
AW: wtf, players are from behind -
samtey - 18.07.2011
Nobody know how to fix this damn problem?
Re: wtf, players are from behind -
Jofi - 18.07.2011
We already told you change camera position.
You must go in game and save new camera coordinates
Re: wtf, players are from behind -
Adil - 18.07.2011
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);
Re: wtf, players are from behind -
eDz0r - 18.07.2011
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;
}
Re: wtf, players are from behind -
Adil - 18.07.2011
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
AW: wtf, players are from behind -
samtey - 19.07.2011
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 !
AW: wtf, players are from behind -
samtey - 19.07.2011
Can anybody help me, I'm too stupid for that! >_<
Re: wtf, players are from behind -
eDz0r - 19.07.2011
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
}
AW: wtf, players are from behind -
samtey - 19.07.2011
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
Re: wtf, players are from behind -
eDz0r - 19.07.2011
PM Me Whit Your Whole "OnPlayerRequestClass"
AW: wtf, players are from behind -
samtey - 19.07.2011
I've sent u !
AW: wtf, players are from behind -
samtey - 19.07.2011
I need ur help!