Create Object
#7

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)
Creates it two foot behind him.


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
He said he wanted it to spawn it behind him.

Reply


Messages In This Thread
Create Object - by [DDC]Delight - 21.06.2010, 19:09
Re: Create Object - by MadeMan - 21.06.2010, 19:20
Re: Create Object - by Brian_G - 21.06.2010, 19:23
Re: Create Object - by [DDC]Delight - 21.06.2010, 19:30
Re: Create Object - by [DDC]Delight - 21.06.2010, 19:31
Re: Create Object - by MadeMan - 21.06.2010, 19:33
Re: Create Object - by Hiddos - 21.06.2010, 19:36
Re: Create Object - by [DDC]Delight - 21.06.2010, 19:49
Re: Create Object - by Hiddos - 21.06.2010, 19:52

Forum Jump:


Users browsing this thread: 1 Guest(s)