Command that tunes cars?
#1

Hey.

I was wondering if their was a command you could mak when you typed: /tuneme or something and something like
pawn Код:
ifvehicleid = 520 //elegy or w.e and then it tunes the car
like
addvehicle component blabla
Reply
#2

pawn Код:
if(strcmp(cmd,"/tuneme",true) == 0)
{
    if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
    {
        if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 520) // Elegy
        {
            AddVehicleComponent(GetPlayerVehicleID(playerid), 1010); // nitro
        }
        else if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 453) // Another car
        {
            AddVehicleComponent(GetPlayerVehicleID(playerid), 1010); // another component
        }
    }
    else
    {
        SendClientMessage(playerid,COLOR,"You must be inside a vehicle to use this");
    }
    return 1;
}
Reply
#3

Quote:
Originally Posted by Shadow™
Посмотреть сообщение
pawn Код:
if(strcmp(cmd,"/tuneme",true) == 0)
{
    if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 520) // Elegy
    {
        AddVehicleComponent(GetPlayerVehicleID(playerid), 1010); // nitro
    }
    else if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 453) // Another car
    {
        AddVehicleComponent(GetPlayerVehicleID(playerid), 1010); // another component
    }
    return 1;
}
sexy man!!

(im defoz not gay) :L
Reply
#4

Re check the reply, I updated it a little.
Reply
#5

Quote:
Originally Posted by Shadow™
Посмотреть сообщение
Re check the reply, I updated it a little.
ah,
thank you even more!

you are a legend
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)