05.11.2012, 19:22
pawn Код:
vehicleid = GetPlayerVehicleID(playerid);GetVehicleParamsEx(vehicleid, engine, lights, alarm, doors, bonnet, boot, objective);
if(GetPVarInt(playerid,"Lights") == 1)
{
SetVehicleParamsEx(vehicleid, engine, VEHICLE_PARAMS_OFF, alarm, doors, bonnet, boot, objective);
SetPVarInt(playerid,"Lights",0);
}
else if(GetPVarInt(playerid,"Lights") == 0)
{
SetVehicleParamsEx(vehicleid, engine, VEHICLE_PARAMS_ON, alarm, doors, bonnet, boot, objective);
Tenta:
pawn Код:
#include <a_vehicles>