03.05.2016, 12:10
Try it on a new gamemode. Blowup.pwn will cause error as I have not updated it.
Under OnGameModeInit add:
Under OnPlayerCommandText add:
Under OnGameModeInit add:
Код:
CR_Load(); CR_SetWorldGravity(0.0, 0.0, -3.5); CR_EnableSimulation();
Код:
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; }