SA-MP Forums Archive
[HELP] How to put nitro in any car with 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: [HELP] How to put nitro in any car with command (/showthread.php?tid=657933)



[HELP] How to put nitro in any car with command - ZigGamerx - 18.08.2018

guys am scripting a gamemode and for VIPS I want them to put nitro in any car so how do i? remember any car


Re: [HELP] How to put nitro in any car with command - CaptainBoi - 18.08.2018

PHP код:
CMD:nos(playeridparams[])
{
    if(
GetPlayerState(playerid)==PLAYER_STATE_DRIVER)//check if the player is driver of the vehicle
    
{
        switch(
GetVehicleModel(GetPlayerVehicleID(playerid)))//check if the car model is this then it wont add the nitor and give an error
        
{
            case 
448,461,462,463,468,471,509,510,521,522,523,581,586,449: return SendClientMessage(playerid,-1,"ERROR: You can not add nos in this vehicle!");
        }
        
AddVehicleComponent(GetPlayerVehicleID(playerid), 1010);//otherwise it will add nitro
        
PlayerPlaySound(playerid,1133,0.0,0.0,0.0);//and give a sound of when we add nitro in mod shops
    
}
    else return 
SendClientMessage(playerid,-1,"ERROR: You must be in a vehicle.");
    return 
1;




Re: [HELP] How to put nitro in any car with command - ZigGamerx - 19.08.2018

thanx