[Tutorial] Make cmd to auto tune vehicles
#1

Hello im just posting a usefull and easy method to make a tune command.

First off all go to "onplayercommand" then create the strcmp command
PHP Code:
if(strcmp(cmdtext"/autotune"true) == 0
Now lets start with our variables
PHP Code:
new VehicleID;
VehicleID GetPlayerVehicleID(playerid); 
Now it should like this
PHP Code:
if(strcmp(cmdtext"/autotune"true) == 0)
{
     new 
VehicleID;
     
VehicleID GetPlayerVehicleID(playerid);
     return 
1;

Now lets add a game text for players.
PHP Code:
GameTextForPlayer(playerid,"~b~Car auto modded!"40005); 
Now just need add the components with
PHP Code:
AddVehicleComponent 
here its one exaple how it should look
PHP Code:
AddVehicleComponent(VehicleID1003); //spoiler 
the code now it done and should look like this

PHP Code:
if(strcmp(cmdtext"/autotune"true) == 0)
{
            new 
VehicleID;
            
VehicleID GetPlayerVehicleID(playerid);
            
GameTextForPlayer(playerid,"~b~Car modded!"40005);
            
AddVehicleComponent(VehicleID1087); //hidraulic
            
AddVehicleComponent(VehicleID1078); // wheels
            
AddVehicleComponent(VehicleID1010); //nos 10x
            
AddVehicleComponent(VehicleID1003); //spoiler
            
AddVehicleComponent(VehicleID1018); //exaust
    
return 1;

Well enjoy modding your vehicles
Reply


Messages In This Thread
Make cmd to auto tune vehicles - by Jamal' - 24.08.2010, 16:21
Re: Make cmd to auto tune vehicles - by DiddyBop - 24.08.2010, 16:24
Re: Make cmd to auto tune vehicles - by Brian_Furious - 24.08.2010, 16:33
Re: Make cmd to auto tune vehicles - by Carlisle - 24.08.2010, 16:40
Re: Make cmd to auto tune vehicles - by Jamal' - 24.08.2010, 17:00
Re: Make cmd to auto tune vehicles - by Vince - 24.08.2010, 17:46
Re: Make cmd to auto tune vehicles - by Marshall_Banks - 25.08.2010, 03:07
Re: Make cmd to auto tune vehicles - by olabv - 14.12.2010, 22:39
Re: Make cmd to auto tune vehicles - by basse - 17.01.2012, 13:47
Re : Make cmd to auto tune vehicles - by McBaguette - 26.04.2012, 09:52

Forum Jump:


Users browsing this thread: 1 Guest(s)