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

guys am scripting a gamemode and for VIPS I want them to put nitro in any car so how do i? remember any car
Reply
#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
#3

thanx
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)