Object angle
#1

Im creating a roadblock command,
It creates the roadblock fine, But its current angle is 0,0,0
How do i get the script to get the players angle and apply it to the object,
Current code:

pawn Код:
if (strcmp(cmd, "/roadblock", true) == 0)
{
  new Float:x, Float:y, Float:z;
    GetPlayerPos(playerid, x, y, z);
   
    CreateObject(981,x,y,z,0,0,0);
    SetPlayerPos(playerid,x,y,40);
    return 1;
}
Reply


Messages In This Thread
Object angle - by JoeDaDude - 12.06.2009, 17:51
Re: Object angle - by Correlli - 12.06.2009, 17:53
Re: Object angle - by JoeDaDude - 12.06.2009, 17:54
Re: Object angle - by Correlli - 12.06.2009, 17:56
Re: Object angle - by GTA_Rules - 12.06.2009, 18:13
Re: Object angle - by ziomal396 - 12.06.2009, 18:17
Re: Object angle - by Correlli - 12.06.2009, 18:30
Re: Object angle - by ziomal396 - 12.06.2009, 18:32
Re: Object angle - by Correlli - 12.06.2009, 18:33
Re: Object angle - by yom - 12.06.2009, 18:58

Forum Jump:


Users browsing this thread: 1 Guest(s)