SA-MP Forums Archive
Help! Angle player to RotZ object - 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: Help! Angle player to RotZ object (/showthread.php?tid=576104)



Help! Angle player to RotZ object - Gasman - 01.06.2015

My code
pawn Код:
CMD:attach(playerid,params[])
{
    new Float:angle;
    GetPlayerFacingAngle(playerid,angle);
    new Float:x,Float:y,Float:z;
    GetObjectPos(Bida[0][bBall][0],x,y,z);
    PlayerBida[playerid][bPOPool] = CreatePlayerObject(playerid,3004,x,y,z,0,0,-angle);
    return 1;
}
Image




Re: Help! Angle player to RotZ object - AdHaM612 - 01.06.2015

https://sampwiki.blast.hk/wiki/GetObjectRot