#include a_samppublic OnVehicleDamageStatusUpdate(vehicleid,playerid) {new Float:vh;GetVehicleHealth(vehicleid, vh);if(vh < 900.0) { SendClientMessage(playerid, -1, \"Ütköztél! ezért szédülni kezdtél!\");}return 1;}
#include <a_samp>new Float:JarmuHP[MAX_VEHICLES];public OnVehicleDamageStatusUpdate(vehicleid,playerid){new Float:jhp;GetVehicleHealth(vehicleid,jhp);if(JarmuHP[vehicleid]-100.0 <= jhp){ SendClientMessage(playerid,-1,\"Ütköztél egy nagyot!\"); JarmuHP[vehicleid] = jhp;}return 1;}public OnVehicleSpawn(vehicleid){JarmuHP[vehicleid] = 1000.0;return 1;}
public OnVehicleSpawn(vehicleid){ new Float:jhp; GetVehicleHealth(vehicleid,jhp); JarmuHP[vehicleid] = jhp; return 1;}