21.06.2010, 19:36
pawn Код:
new Float:x,Float:y,Float:z,Float:a,Float:X,Float:y;
GetPlayerPos(playerid,x,y,z);
GetPlayerFacingAngle(playerid,a);
X = x + (-2 * floatsin(-a,degrees));
Y = y + (-2 * floatcos(-a,degrees));
CreateObject(16442,X,Y,z,0,0,0); // Creates a cow 2 foot behind you (16442 = cow ID)
Quote:
Originally Posted by MadeMan
You said you already have the position and now you want to create the object.
Well my answer is CreateObject. https://sampwiki.blast.hk/wiki/CreateObject |