Help with a /engine command.
#5

pawn Код:
static
    bool: engine[ MAX_VEHICLES ] // i wouldnt use char arrays here, vehicle are about 2000++
;

public OnVehicleSpawn( vehicleid )
    return engine[ vehicleid ] = false;

COMMAND:engine( playerid, params[ ] )
{
    engine[ GetPlayerVehicleID( playerid ) ] = ! engine[ GetPlayerVehicleID( playerid ) ];

    SetVehicleParamsEx( GetPlayerVehicleID( playerid ), engine[ GetPlayerVehicleID( playerid ) ], -1, -1, -1, -1, -1 ); // Dunno arguments >.>

    return 1;
}
Reply


Messages In This Thread
Help with a /engine command. - by GrimR - 20.09.2011, 08:48
Re: Help with a /engine command. - by Wesley221 - 20.09.2011, 09:19
Re: Help with a /engine command. - by GrimR - 20.09.2011, 09:46
Re: Help with a /engine command. - by Wesley221 - 20.09.2011, 09:47
Re: Help with a /engine command. - by Basicz - 20.09.2011, 10:01
Re: Help with a /engine command. - by GrimR - 20.09.2011, 10:04
Re: Help with a /engine command. - by DRIFT_HUNTER - 20.09.2011, 10:40
Re: Help with a /engine command. - by GrimR - 20.09.2011, 10:56

Forum Jump:


Users browsing this thread: 1 Guest(s)