SA-MP Forums Archive
Question Info/Help: SetPlayerFacingAngle bugged ? - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Question Info/Help: SetPlayerFacingAngle bugged ? (/showthread.php?tid=356941)



Question Info/Help: SetPlayerFacingAngle bugged ? - Speed++ - 05.07.2012

I have typed in game the command /save...

now, example:

PHP код:
new
    
FloatSF_Hospital[4][4] =
    {
        {-
2655.2932635.532114.4531175.5259},
        {-
2697.4255630.359314.4545235.0598},
        {-
2706.5320608.529714.4531268.2735},
        {-
2706.3767590.612914.4531300.8604}
    }; 
OnPlayerSpawn

PHP код:
    switch(GetPlayerTeam(playerid))
    {
        case 
blah_blah... :
        {
            new
                
rand random(sizeof(SF_Hospital));
            
SetPlayerPos(playeridSF_Hospital[rand][0], SF_Hospital[rand][1], SF_Hospital[rand][2]);
            
SetPlayerFacingAngle(playeridSF_Hospital[rand][3]);
            
            return 
1;
        }
    } 
and set me the wrong facing angle...

another example,

make this with command

PHP код:
            SetPlayerPos(playerid, -2655.2932635.532114.4531);
            
SetPlayerFacingAngle(playerid175.5259); 
and set me the wrong facing angle...

another...

i have used

PHP код:
SetSpawnInfo 
but not good for what I do


Re: Question Info/Help: SetPlayerFacingAngle bugged ? - Speed++ - 05.07.2012

bump


Re: Question Info/Help: SetPlayerFacingAngle bugged ? - Speed++ - 05.07.2012

bump


Re: Question Info/Help: SetPlayerFacingAngle bugged ? - MP2 - 05.07.2012

Not even going to read it because you bumped. Read the rules.


Re: Question Info/Help: SetPlayerFacingAngle bugged ? - Speed++ - 05.07.2012

bump..

the topic was in the second page


Re: Question Info/Help: SetPlayerFacingAngle bugged ? - Vince - 05.07.2012

It is not bugged, but you must note that angles in GTA SA go counter clockwise. 0° facing north, 90° facing west, 180° facing south, 270° facing east.