[HELP] How to put nitro in any car with command
#2

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;

Reply


Messages In This Thread
[HELP] How to put nitro in any car with command - by ZigGamerx - 18.08.2018, 16:14
Re: [HELP] How to put nitro in any car with command - by CaptainBoi - 18.08.2018, 17:25
Re: [HELP] How to put nitro in any car with command - by ZigGamerx - 19.08.2018, 14:22

Forum Jump:


Users browsing this thread: 1 Guest(s)