Hi Guys How To Get SetPlayerFacingAngle
#1

Hi Guys How To Get SetPlayerFacingAngle
please can any one tell me how!!
i want lv dept police i want this SetPlayerFacingAngle
Reply
#2

Is that's what you're looking for?

https://sampwiki.blast.hk/wiki/GetPlayerFacingAngle
Reply
#3

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);

Reply
#4

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
Reply
#5

ok its here see
Quote:

AddPlayerClass(293,1133.0504,-2038.4034,69.1000,86.9318,0,0,0,0,0,0); //

where FacingAngle here ?
Reply
#6

pawn Код:
SetPlayerFacingAngle(playerid,86.9318);
Reply
#7

These are the parameters:

....................PosX...............PosY....... ...PosZ....Angle..........................
AddPlayerClass(293,1133.0504,-2038.4034,69.1000,86.9318,0,0,0,0,0,0); //
Reply
#8

I think this is what you're looking for: https://sampwiki.blast.hk/wiki/SetPlayerAngle
Reply
#9

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;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)