Hi Guys How To Get SetPlayerFacingAngle -
moustafa0550 - 01.01.2014
Hi Guys How To Get SetPlayerFacingAngle
please can any one tell me how!!
i want lv dept police i want this SetPlayerFacingAngle
Re: Hi Guys How To Get SetPlayerFacingAngle -
RowdyrideR - 01.01.2014
Is that's what you're looking for?
https://sampwiki.blast.hk/wiki/GetPlayerFacingAngle
Re: Hi Guys How To Get SetPlayerFacingAngle -
moustafa0550 - 01.01.2014
i dont know in wiki to add i have jail system only i need lv FacingAngle
Quote:
SetPlayerPos(i,2286.88,2428.08,10.82);
SetPlayerFacingAngle(i,);
SetCameraBehindPlayer(i);
|
Re: Hi Guys How To Get SetPlayerFacingAngle -
FailerZ - 01.01.2014
Get inside the jail and look at the place that you want the player to face it >>
Type /save >>
Open savedpositions.txt >>
Copy the FLOAT after the fourth(4) comma
Re: Hi Guys How To Get SetPlayerFacingAngle -
moustafa0550 - 01.01.2014
ok its here see
Quote:
AddPlayerClass(293,1133.0504,-2038.4034,69.1000,86.9318,0,0,0,0,0,0); //
|
where FacingAngle here ?
Re: Hi Guys How To Get SetPlayerFacingAngle -
ScRipTeRi - 01.01.2014
pawn Код:
SetPlayerFacingAngle(playerid,86.9318);
Re: Hi Guys How To Get SetPlayerFacingAngle -
Dubya - 01.01.2014
These are the parameters:
....................PosX...............PosY....... ...PosZ....Angle..........................
AddPlayerClass(293,1133.0504,-2038.4034,69.1000,
86.9318,0,0,0,0,0,0); //
Re: Hi Guys How To Get SetPlayerFacingAngle -
HB - 01.01.2014
I think this is what you're looking for:
https://sampwiki.blast.hk/wiki/SetPlayerAngle
Re: Hi Guys How To Get SetPlayerFacingAngle -
Voxel - 01.01.2014
You cant use SetPlayerFacingAngle in OnGameModeInit, you have to use it under OnPlayerRequestClass,
you will need something like this:
pawn Код:
public OnPlayerRequestClass(playerid, classid)
{
switch(classid)
{
case 0://class 1
{
SetPlayerPos(playerid, 2098.9939, 1158.6058, 24.5625);
SetPlayerFacingAngle(playerid, 63.8544);//set the angle here <--
SetPlayerCameraPos(playerid, 2093.5515,1161.5519,24.5625);
SetPlayerCameraLookAt(playerid, 2098.9939, 1158.6058, 24.5625);
}
case 1://clas 2 etc...
{
}
}
return 1;
}