11.11.2010, 12:10
I'm gonna create some lines in my game mode that prevents a vehicle from catching on fire and exploding, and instead leaves it smoking dark smoke...
How is this possible? May anyone help me a little, where to place the lines and such?
Already written this, but in OnPlayerUpdate it doesn't work:
I've also done a onplayerkeychange or what it is so that if someone presses F or Return inside a vehicle they get unfrozen and removed from the vehicle.
How is this possible? May anyone help me a little, where to place the lines and such?
Already written this, but in OnPlayerUpdate it doesn't work:
Code:
new vehid = GetPlayerVehicleID(playerid); new Float:vehiclehealth; GetVehicleHealth(vehid, vehiclehealth); if(IsPlayerInAnyVehicle(playerid) && vehiclehealth <= 300){ SetVehicleHealth(vehid, 300); TogglePlayerControllable(playerid, 0); SendClientMessage(playerid, RED, "The vehicle is broken. Press F or return to step out of the vehicle." ); }