SA-MP Forums Archive
adding objects - 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: adding objects (/showthread.php?tid=665023)



adding objects - bosmania - 19.03.2019

I have a command for planting seeds,like cannabis seeds,and when i use it i want an object to appear like a box or something or something on the ground that looks like someone planted something,i just want to know how do i add that object


Re: adding objects - d3Pedro - 19.03.2019

Getting Player position and using CreateDynamicObject

pawn Код:
CreateDynamicObject(modelid, Float:x, Float:y, Float:z, Float:rx, Float:ry, Float:rz, worldid = -1, interiorid = -1, playerid = -1, Float:streamdistance = 300.0);