03.05.2016, 10:47
Yes, I haven't edited the blowup.pwn according to the latest release yet. I will, soon.
For now try out this code:
For now try out this code:
Код:
if (!strcmp("/throw", cmdtext, true)) //throws an object { new index; new Float:vx, Float:vy, Float:vz; GetPlayerPos(playerid, vx, vy, vz); new Float:facing; GetPlayerFacingAngle(playerid, facing); new ob = CreateDynamicObject(19342, vx + 5 * floatsin(-facing, degrees), vy + 5 * floatcos(-facing, degrees), vz, 0.0, 0.0, 0.0); index = CR_CreateDynamicCol(ob, 19342, 1.7, vx + 1 * floatsin(-facing, degrees), vy + 1 * floatcos(-facing, degrees), vz, 0.0, 0.0, 0.0, 1); CR_ThrowObject(playerid, index, 15.0); return 1; }