24.07.2013, 08:01
So i been trying for a while to make my engine script NOT force BMX/Regular bikes ((Aka - Pedal Bikes)) to have to use /engine....
Anyone can help?
Anyone can help?
Quote:
CMD:engine(playerid) { if(GetPlayerState(playerid) != PLAYER_STATE_DRIVER) return SendClientMessage(playerid, -1, "You need to be the driver of the vehicle"); new engine, lights, alarm, doors, bonnet, boot, objective; GetVehicleParamsEx(GetPlayerVehicleID(playerid), engine, lights, alarm, doors, bonnet, boot, objective); if(engine == 1){ SetVehicleParamsEx(GetPlayerVehicleID(playerid), 0, lights, alarm, doors, bonnet, boot, objective); format(szMessage, sizeof(szMessage), "* %s Turns the key towards themself turning the engine OFF", szPlayerName); nearByMessage(playerid, COLOR_PURPLE, szMessage); }else{ SetVehicleParamsEx(GetPlayerVehicleID(playerid), 1, lights, alarm, doors, bonnet, boot, objective); format(szMessage, sizeof(szMessage), "* %s Turns the key away from themself turning the engine ON", szPlayerName); nearByMessage(playerid, COLOR_PURPLE, szMessage); } return 1; } |