12.06.2009, 17:51
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:
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;
}