[HELP]Engine Breaking System
#2

Maybe you should use a timer or OnPlayerUpdate Function to check..

pawn Код:
// Under OnGameModeInit
public OnGameModeInit()
{
      SetTimer("EngineBreak", 100, true); // Set a timer for "EngineBreak" function, 100 is fast more than 1 second, true to keep it restarting , not only one time.
      return 1;
}
EDIT: and you're doing it incorrectly, you looped inside players, and using i in SetVehicleParamsEx, so that you are using player instead of vehicle. to solve do:
pawn Код:
new veh = GetPlayerVehicleID(i);
If didn't work,
SetVehicleParamEx(veh ,0,lights,alarm,doors,bonnet,boot,objective);  // 0 turned off the engine
Reply


Messages In This Thread
[HELP]Engine Breaking System - by Mititel - 03.08.2014, 19:34
Re: [HELP]Engine Breaking System - by Sawalha - 03.08.2014, 19:44
Re: [HELP]Engine Breaking System - by Mititel - 03.08.2014, 21:00
Re: [HELP]Engine Breaking System - by Dj_maryo1993 - 03.08.2014, 21:12
Re: [HELP]Engine Breaking System - by Mititel - 04.08.2014, 13:19
Re: [HELP]Engine Breaking System - by Mititel - 06.08.2014, 14:16
Re: [HELP]Engine Breaking System - by Sawalha - 06.08.2014, 14:28

Forum Jump:


Users browsing this thread: 1 Guest(s)