SA-MP Forums Archive
Command that tunes cars? - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Command that tunes cars? (/showthread.php?tid=163748)



Command that tunes cars? - WillyP - 28.07.2010

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



Re: Command that tunes cars? - Shadow™ - 28.07.2010

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;
}



Re: Command that tunes cars? - WillyP - 28.07.2010

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


Re: Command that tunes cars? - Shadow™ - 28.07.2010

Re check the reply, I updated it a little.


Re: Command that tunes cars? - WillyP - 28.07.2010

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

you are a legend