18.08.2018, 15:23
Код:
new Float:X, Float:Y, Float:Z; new objectid = CreateTimedObject(RandomEx(60000, 80000), 1264, DumpsterData[dumpsterid][dumpsterX], DumpsterData[dumpsterid][dumpsterY], (DumpsterData[dumpsterid][dumpsterZ] + 1.20), 0.0, 0.0, random(360)); switch(DumpsterData[dumpsterid][dumpsterSide]) { case true: // Left { GetPointInFront2D(DumpsterData[dumpsterid][dumpsterActionX], DumpsterData[dumpsterid][dumpsterActionY], ((DumpsterData[dumpsterid][dumpsterR] + (RandomFloat(40.0, 50.0))) + 180.0), RandomFloat(1.75, 2.90), X, Y); } case false: // Right { GetPointInFront2D(DumpsterData[dumpsterid][dumpsterActionX], DumpsterData[dumpsterid][dumpsterActionY], ((DumpsterData[dumpsterid][dumpsterR] + (RandomFloat(-40.0, -50.0))) + 180.0), RandomFloat(1.75, 2.90), X, Y); } } GetPlayerPos(playerid, Z, Z, Z); MoveDynamicObject(objectid, X, Y , (Z - 0.50), 9.0);