SA-MP Forums Archive
Add NOS command - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Add NOS command (/showthread.php?tid=405086)



Add NOS command - Astrais - 05.01.2013

Any Ideas? I searched but couldnt find anything which also put into account what if player was riding a bike.
I have ZCMD.


Re: Add NOS command - Infinity90 - 05.01.2013

pawn Код:
CMD:nos(playerid)
{
    new vehicleid = GetPlayerVehicleID(playerid);
    AddVehicleComponent(vehicleid, 1010);
    return 1;
}



Re: Add NOS command - Edvin - 05.01.2013

Код:
CMD:addnos( playerid, params[ ] )
{
    if ( !IsPlayerInAnyVehicle( playerid ) )
		return SendError( playerid, "You must be in a vehicle." );

    switch( GetVehicleModel( GetPlayerVehicleID( playerid ) ) )
    {
        case 448,461,462,463,468,471,509,510,521,522,523,581,586,449:
        return SendError( playerid, "You can not tune this vehicle!" );
    }
    AddVehicleComponent( GetPlayerVehicleID( playerid ), 1010 );
    PlayerPlaySound( playerid, 1056, 0.0, 0.0, 0.0 );
    return 1;
}
- From lAdmin, modified.