Problem with vehicle params...
#2

Try this:
pawn Код:
dcmd_hood(playerid, params[])
{
    #pragma unused params
    if(Logged(playerid)){
        if(IsPlayerInAnyVehicle(playerid)) {
            new vehicleid, engine, lights, alarm, doors, bonnet, boot, objective;
            vehicleid = GetPlayerVehicleID(playerid);
            GetVehicleParamsEx(vehicleid, engine, lights, alarm, doors, bonnet, boot, objective);
            if(bonnet != 1){
                SetVehicleParamsEx(vehicleid, engine, lights, alarm, doors, 1, boot, objective);
            } else {
                SetVehicleParamsEx(vehicleid, engine, lights, alarm, doors, 0, boot, objective);
            }
        }
    }
    return 1;
}
Reply


Messages In This Thread
Problem with vehicle params... - by Sascha - 15.01.2011, 17:47
Re: Problem with vehicle params... - by Toreno - 15.01.2011, 17:50
Re: Problem with vehicle params... - by Sascha - 15.01.2011, 18:07

Forum Jump:


Users browsing this thread: 1 Guest(s)