engine broke doesnt work
#1

Hello Guys,
Ive got the following Problem.
Ive made an script that asks if the Vehicle health is <= 300, it should turn the engine off.
But it doesnt seems to ork... ive got no Errors but nothing happend in game, whats from with it?
Hopefully someone can answear my question cuz am doing an Banger Racing script if anyone know what Bnager Racing is and maybe intrested in it, PM me.
Cheers Lads

on onFilterScriptinit ive got this
SetTimer("EngineBroke",200,1);

then

forward EngineBroke(playerid, vehicleid);

public EngineBroke(playerid, vehicleid)
{
if(IsPlayerInAnyVehicle(playerid))
{
new Float:vhealth;
new veh;
veh = GetPlayerVehicleID(playerid);
GetVehicleHealth(veh, vhealth);
if(vhealth <= 300)
{
ToggleEngine(vehicleid, VEHICLE_PARAMS_OFF);
return 1;
}
return 1;
}
return 1;
}

yes, ToggleEngine is defined and works without Problems...
Reply


Messages In This Thread
engine broke doesnt work - by Pepino960 - 15.04.2014, 07:56
Re: engine broke doesnt work - by luis_mendoza - 15.04.2014, 08:46
Re: engine broke doesnt work - by iZN - 15.04.2014, 08:51
Re: engine broke doesnt work - by luis_mendoza - 15.04.2014, 08:53
Re: engine broke doesnt work - by iZN - 15.04.2014, 08:54
Re: engine broke doesnt work - by [WSF]ThA_Devil - 15.04.2014, 08:59
AW: engine broke doesnt work - by Pepino960 - 15.04.2014, 09:16

Forum Jump:


Users browsing this thread: 1 Guest(s)