05.11.2016, 16:24
Yes, I don't need the windshield to be broken, all I need is throw the player out of the windshield. I tried adding y to SetPlayerVelocity like you said, but the problem here is that it throws you to north regardless of your facing angle.
That's what I've done so far:
So basically all I need is throw player to wherever he is facing.
That's what I've done so far:
Код:
public OnPlayerCrashVehicle(playerid, vehicleid, Float:damage) { new Float:x, Float:y, Float:z; GetPlayerPos(playerid, x, y, z); SetPlayerPos(playerid, x, y, z + 1.0); SetPlayerVelocity(playerid, 0.0, 1.0, 1.0); return 1; }