>>>Auto Tune<<<
#1


hello all,

no matter what vehicle you do is sit there
with a command-tuned

this is a small automatic tune sytem! Nothing is real
large a simple tune resonates sytem If in a
Vehicle sits, the car(Sultan,Jester,Elegy,Flash,Stratum,Uranus,Turismo,I nfernus,
Alpha,Banshee,Bufallo,Bullet,Cabbie (taxi oldschool),Cheetah,Taxi,Caddy,zr350,Comet,
CopCarLA,CopCarSF,Euros,Hermes,Huntley,Hustler,Pho enix,SuperGT,Stretch,Sabre,
Rancher,Esperanto,Broadway,Remintgon
) automatically with the command
tuned.

I hope this can be useful for some of you!

Pastebin:
http://pastebin.com/M00sb00Q

ps: I use since years on my Racing server
and it runs without errors

have fun
[RSD] McPott
Reply
#2

lol
Reply
#3

awesome!
Reply
#4

I've got 26 errors and many warnings when compile
Reply
#5

omg dude , u didn't even include a_samp .inc , the script got tons of errors and it isn't "PlaySoundForPlayer" it is "PlayPlayerSound" dude check ur scripts before releasing it here is ur script fixed :

Code:
#include <a_samp>
#pragma tabsize 0
public OnPlayerCommandText(playerid, cmdtext[])
{
	if (strcmp("/autotune", cmdtext, true, 10) == 0)
	{
		if (GetVehicleModel(GetPlayerVehicleID(playerid)) == 560)
		    {
		  	  AddVehicleComponent(GetPlayerVehicleID(playerid), 1030);
		  	  AddVehicleComponent(GetPlayerVehicleID(playerid), 1031);
		  	  AddVehicleComponent(GetPlayerVehicleID(playerid), 1033);
		  	  AddVehicleComponent(GetPlayerVehicleID(playerid), 1170);
		  	  AddVehicleComponent(GetPlayerVehicleID(playerid), 1139);
		  	  AddVehicleComponent(GetPlayerVehicleID(playerid), 1140);
		  	  AddVehicleComponent(GetPlayerVehicleID(playerid), 1080);
		  	  new car = GetPlayerVehicleID(playerid);
			//	ChangeVehiclePaintjob(car,2);
				ChangeVehicleColor(car,random(500),random(500));
		  	  PlayerPlaySound(playerid,1133,0.0,0.0,0.0);
		  	  }
		  	  //Jester
		    if (GetVehicleModel(GetPlayerVehicleID(playerid)) == 559)
		    {
		  	  AddVehicleComponent(GetPlayerVehicleID(playerid), 1065);
		  	  AddVehicleComponent(GetPlayerVehicleID(playerid), 1067);
		  	  AddVehicleComponent(GetPlayerVehicleID(playerid), 1069);
		  	  AddVehicleComponent(GetPlayerVehicleID(playerid), 1071);
		  	  AddVehicleComponent(GetPlayerVehicleID(playerid), 1173);
		  	  AddVehicleComponent(GetPlayerVehicleID(playerid), 1161);
		  	  AddVehicleComponent(GetPlayerVehicleID(playerid), 1162);
		  	  AddVehicleComponent(GetPlayerVehicleID(playerid), 1080);
		  	  new car = GetPlayerVehicleID(playerid);
			//	ChangeVehiclePaintjob(car,2);
				ChangeVehicleColor(car,random(500),random(500));
		  	  PlayerPlaySound(playerid,1133,0.0,0.0,0.0);
		  	  }
		  	  //Elegy
		    if (GetVehicleModel(GetPlayerVehicleID(playerid)) == 562)
		    {
		  	  AddVehicleComponent(GetPlayerVehicleID(playerid), 1034);
		  	  AddVehicleComponent(GetPlayerVehicleID(playerid), 1035);
		  	  AddVehicleComponent(GetPlayerVehicleID(playerid), 1036);
		  	  AddVehicleComponent(GetPlayerVehicleID(playerid), 1040);
		  	  AddVehicleComponent(GetPlayerVehicleID(playerid), 1147);
		  	  AddVehicleComponent(GetPlayerVehicleID(playerid), 1148);
		  	  AddVehicleComponent(GetPlayerVehicleID(playerid), 1171);
		  	  AddVehicleComponent(GetPlayerVehicleID(playerid), 1080);
		  	  new car = GetPlayerVehicleID(playerid);
			//	ChangeVehiclePaintjob(car,0);
				ChangeVehicleColor(car,random(500),random(500));
		  	  PlayerPlaySound(playerid,1133,0.0,0.0,0.0);
		  	  }
		  	  //Flash
		    if (GetVehicleModel(GetPlayerVehicleID(playerid)) == 565)
		    {
		  	  AddVehicleComponent(GetPlayerVehicleID(playerid), 1045);
		  	  AddVehicleComponent(GetPlayerVehicleID(playerid), 1047);
		  	  AddVehicleComponent(GetPlayerVehicleID(playerid), 1051);
		  	  AddVehicleComponent(GetPlayerVehicleID(playerid), 1049);
		  	  AddVehicleComponent(GetPlayerVehicleID(playerid), 1053);
		  	  AddVehicleComponent(GetPlayerVehicleID(playerid), 1150);
		  	  AddVehicleComponent(GetPlayerVehicleID(playerid), 1153);
		  	  AddVehicleComponent(GetPlayerVehicleID(playerid), 1080);
		  	  new car = GetPlayerVehicleID(playerid);
				//	ChangeVehiclePaintjob(car,1);
				ChangeVehicleColor(car,random(500),random(500));
		  	  PlayerPlaySound(playerid,1133,0.0,0.0,0.0);
		  	  }
		  	  //Stratum
		    if (GetVehicleModel(GetPlayerVehicleID(playerid)) == 561)
		    {
		  	  AddVehicleComponent(GetPlayerVehicleID(playerid), 1055);
		  	  AddVehicleComponent(GetPlayerVehicleID(playerid), 1057);
		  	  AddVehicleComponent(GetPlayerVehicleID(playerid), 1062);
		  	  AddVehicleComponent(GetPlayerVehicleID(playerid), 1058);
		  	  AddVehicleComponent(GetPlayerVehicleID(playerid), 1059);
		  	  AddVehicleComponent(GetPlayerVehicleID(playerid), 1154);
		  	  AddVehicleComponent(GetPlayerVehicleID(playerid), 1155);
		  	  AddVehicleComponent(GetPlayerVehicleID(playerid), 1080);
		  	  new car = GetPlayerVehicleID(playerid);
				//	ChangeVehiclePaintjob(car,4);
				ChangeVehicleColor(car,random(500),random(500));
		  	  PlayerPlaySound(playerid,1133,0.0,0.0,0.0);
		  	  }
		  	  //Uranus
     		if (GetVehicleModel(GetPlayerVehicleID(playerid)) == 558)
		    {
		  	  AddVehicleComponent(GetPlayerVehicleID(playerid), 1088);
		  	  AddVehicleComponent(GetPlayerVehicleID(playerid), 1089);
		  	  AddVehicleComponent(GetPlayerVehicleID(playerid), 1090);
		  	  AddVehicleComponent(GetPlayerVehicleID(playerid), 1094);
		  	  AddVehicleComponent(GetPlayerVehicleID(playerid), 1164);
		  	  AddVehicleComponent(GetPlayerVehicleID(playerid), 1167);
		  	  AddVehicleComponent(GetPlayerVehicleID(playerid), 1168);
		  	  AddVehicleComponent(GetPlayerVehicleID(playerid), 1080);
		  	  new car = GetPlayerVehicleID(playerid);
				//	ChangeVehiclePaintjob(car,1);
				ChangeVehicleColor(car,random(500),random(500));
		  	  PlayerPlaySound(playerid,1133,0.0,0.0,0.0);
		  	  }
		  	  //Turismo
		    if (GetVehicleModel(GetPlayerVehicleID(playerid)) == 451)
		    {
		  	  AddVehicleComponent(GetPlayerVehicleID(playerid), 1080);
		  	  PlayerPlaySound(playerid,1133,0.0,0.0,0.0);
		  	  new car = GetPlayerVehicleID(playerid);
		    ChangeVehicleColor(car,random(500),random(500));
		    }
		    //Infernus
		    if (GetVehicleModel(GetPlayerVehicleID(playerid)) == 411)
		    {
		  	  AddVehicleComponent(GetPlayerVehicleID(playerid), 1080);
		  	  PlayerPlaySound(playerid,1133,0.0,0.0,0.0);
		  	  new car = GetPlayerVehicleID(playerid);
		    ChangeVehicleColor(car,random(500),random(500));
		    }
		    //Alpha
		    if (GetVehicleModel(GetPlayerVehicleID(playerid)) == 602)
		    {
		  	  AddVehicleComponent(GetPlayerVehicleID(playerid), 1079);
		  	  PlayerPlaySound(playerid,1133,0.0,0.0,0.0);
		  	  new car = GetPlayerVehicleID(playerid);
		    ChangeVehicleColor(car,random(500),random(500));
		    }
		    //Banshee
		    if (GetVehicleModel(GetPlayerVehicleID(playerid)) == 429)
		    {
		  	  AddVehicleComponent(GetPlayerVehicleID(playerid), 1080);
		  	  PlayerPlaySound(playerid,1133,0.0,0.0,0.0);
		  	  new car = GetPlayerVehicleID(playerid);
		    ChangeVehicleColor(car,random(500),random(500));
		    }
		    //Bufallo
		    if (GetVehicleModel(GetPlayerVehicleID(playerid)) == 402)
		    {
		  	  AddVehicleComponent(GetPlayerVehicleID(playerid), 1077);
		  	  PlayerPlaySound(playerid,1133,0.0,0.0,0.0);
		  	  new car = GetPlayerVehicleID(playerid);
		    ChangeVehicleColor(car,random(500),random(500));
		    }
		    //Bullet
		    if (GetVehicleModel(GetPlayerVehicleID(playerid)) == 541)
		    {
		  	  AddVehicleComponent(GetPlayerVehicleID(playerid), 1080);
		  	  PlayerPlaySound(playerid,1133,0.0,0.0,0.0);
		  	  new car = GetPlayerVehicleID(playerid);
		    ChangeVehicleColor(car,random(500),random(500));
		    }
		    //Cabbie (taxi oldschool)
		    if (GetVehicleModel(GetPlayerVehicleID(playerid)) == 438)
		    {
		  	  AddVehicleComponent(GetPlayerVehicleID(playerid), 1080);
		  	  PlayerPlaySound(playerid,1133,0.0,0.0,0.0);
		  	  new car = GetPlayerVehicleID(playerid);
		    ChangeVehicleColor(car,random(500),random(500));
		    }
		    //Cheetah
		    if (GetVehicleModel(GetPlayerVehicleID(playerid)) == 415)
		    {
		  	  AddVehicleComponent(GetPlayerVehicleID(playerid), 1080);
		  	  AddVehicleComponent(GetPlayerVehicleID(playerid), 1015);
		  	  AddVehicleComponent(GetPlayerVehicleID(playerid), 1017);
		  	  AddVehicleComponent(GetPlayerVehicleID(playerid), 1007);
		  	  PlayerPlaySound(playerid,1133,0.0,0.0,0.0);
		  	  new car = GetPlayerVehicleID(playerid);
		    ChangeVehicleColor(car,random(500),random(500));
		    }
		    //Taxi
		    if (GetVehicleModel(GetPlayerVehicleID(playerid)) == 420)
		    {
		  	  AddVehicleComponent(GetPlayerVehicleID(playerid), 1080);
		  	  AddVehicleComponent(GetPlayerVehicleID(playerid), 1015);
		  	  PlayerPlaySound(playerid,1133,0.0,0.0,0.0);
		  	  new car = GetPlayerVehicleID(playerid);
		    ChangeVehicleColor(car,random(500),random(500));
		    }
		    //Caddy
		    if (GetVehicleModel(GetPlayerVehicleID(playerid)) == 457)
		    {
		  	  AddVehicleComponent(GetPlayerVehicleID(playerid), 1080);
		  	  PlayerPlaySound(playerid,1133,0.0,0.0,0.0);
		  	  new car = GetPlayerVehicleID(playerid);
		    ChangeVehicleColor(car,random(500),random(500));
		    }
		    //zr350
		    if (GetVehicleModel(GetPlayerVehicleID(playerid)) == 477)
		    {
		  	  AddVehicleComponent(GetPlayerVehicleID(playerid), 1080);
		  	  PlayerPlaySound(playerid,1133,0.0,0.0,0.0);
		  	  new car = GetPlayerVehicleID(playerid);
		    ChangeVehicleColor(car,random(500),random(500));
		    }
		    //Comet
		    if (GetVehicleModel(GetPlayerVehicleID(playerid)) == 480)
		    {
		  	  AddVehicleComponent(GetPlayerVehicleID(playerid), 1080);
		  	  PlayerPlaySound(playerid,1133,0.0,0.0,0.0);
		  	  new car = GetPlayerVehicleID(playerid);
		    ChangeVehicleColor(car,random(500),random(500));
		    }
		    //CopCarLA
		    if (GetVehicleModel(GetPlayerVehicleID(playerid)) == 596)
		    {
		  	  AddVehicleComponent(GetPlayerVehicleID(playerid), 1080);
		  	  PlayerPlaySound(playerid,1133,0.0,0.0,0.0);
		  	  new car = GetPlayerVehicleID(playerid);
		    ChangeVehicleColor(car,random(500),random(500));
		    }
		    //CopCarSF
		    if (GetVehicleModel(GetPlayerVehicleID(playerid)) == 597)
		    {
		  	  AddVehicleComponent(GetPlayerVehicleID(playerid), 1080);
		  	  PlayerPlaySound(playerid,1133,0.0,0.0,0.0);
		  	  new car = GetPlayerVehicleID(playerid);
		    ChangeVehicleColor(car,random(500),random(500));
		    }
		    //Euros
		    if (GetVehicleModel(GetPlayerVehicleID(playerid)) == 587)
		    {
		  	  AddVehicleComponent(GetPlayerVehicleID(playerid), 1080);
		  	  PlayerPlaySound(playerid,1133,0.0,0.0,0.0);
		  	  new car = GetPlayerVehicleID(playerid);
		    ChangeVehicleColor(car,random(500),random(500));
		    }
		    //Hermes
		    if (GetVehicleModel(GetPlayerVehicleID(playerid)) == 474)
		    {
		  	  AddVehicleComponent(GetPlayerVehicleID(playerid), 1080);
		  	  PlayerPlaySound(playerid,1133,0.0,0.0,0.0);
		  	  new car = GetPlayerVehicleID(playerid);
		    ChangeVehicleColor(car,random(500),random(500));
		    }
		    //Huntley
		    if (GetVehicleModel(GetPlayerVehicleID(playerid)) == 579)
		    {
		  	  AddVehicleComponent(GetPlayerVehicleID(playerid), 1080);
		  	  PlayerPlaySound(playerid,1133,0.0,0.0,0.0);
		  	  new car = GetPlayerVehicleID(playerid);
		    ChangeVehicleColor(car,random(500),random(500));
		    }
		    //Hustler
		    if (GetVehicleModel(GetPlayerVehicleID(playerid)) == 545)
		    {
		  	  AddVehicleComponent(GetPlayerVehicleID(playerid), 1080);
		  	  PlayerPlaySound(playerid,1133,0.0,0.0,0.0);
		  	  new car = GetPlayerVehicleID(playerid);
		    ChangeVehicleColor(car,random(500),random(500));
		    }
		    //Phoenix
		    if (GetVehicleModel(GetPlayerVehicleID(playerid)) == 603)
		    {
		  	  AddVehicleComponent(GetPlayerVehicleID(playerid), 1080);
		  	  PlayerPlaySound(playerid,1133,0.0,0.0,0.0);
		  	  new car = GetPlayerVehicleID(playerid);
		    ChangeVehicleColor(car,random(500),random(500));
		    }
		    //SuperGT
		    if (GetVehicleModel(GetPlayerVehicleID(playerid)) == 506)
		    {
		  	  AddVehicleComponent(GetPlayerVehicleID(playerid), 1077);
		  	  PlayerPlaySound(playerid,1133,0.0,0.0,0.0);
		  	  new car = GetPlayerVehicleID(playerid);
		    ChangeVehicleColor(car,random(500),random(500));
		    }
		    //Stretch
		    if (GetVehicleModel(GetPlayerVehicleID(playerid)) == 409)
		    {
		  	  AddVehicleComponent(GetPlayerVehicleID(playerid), 1080);
		  	  PlayerPlaySound(playerid,1133,0.0,0.0,0.0);
		  	  new car = GetPlayerVehicleID(playerid);
		    ChangeVehicleColor(car,random(500),random(500));
		    }
		    //Sabre
		    if (GetVehicleModel(GetPlayerVehicleID(playerid)) == 475)
		    {
		  	  AddVehicleComponent(GetPlayerVehicleID(playerid), 1080);
		  	  PlayerPlaySound(playerid,1133,0.0,0.0,0.0);
		  	  new car = GetPlayerVehicleID(playerid);
		    ChangeVehicleColor(car,random(500),random(500));
		    }
		    //Rancher
		    if (GetVehicleModel(GetPlayerVehicleID(playerid)) == 489)
		    {
		  	  AddVehicleComponent(GetPlayerVehicleID(playerid), 1080);
		  	  PlayerPlaySound(playerid,1133,0.0,0.0,0.0);
		  	  new car = GetPlayerVehicleID(playerid);
		    ChangeVehicleColor(car,random(500),random(500));
		    }
		    //Esperanto
		    if (GetVehicleModel(GetPlayerVehicleID(playerid)) == 419)
		    {
		  	  AddVehicleComponent(GetPlayerVehicleID(playerid), 1080);
		  	  AddVehicleComponent(GetPlayerVehicleID(playerid), 1010);
		  	  PlayerPlaySound(playerid,1133,0.0,0.0,0.0);
		  	  new car = GetPlayerVehicleID(playerid);
		    ChangeVehicleColor(car,random(500),random(500));
		    }
		    //Broadway
		    if (GetVehicleModel(GetPlayerVehicleID(playerid)) == 575)
		    {
		  	  AddVehicleComponent(GetPlayerVehicleID(playerid), 1080);
		  	  AddVehicleComponent(GetPlayerVehicleID(playerid), 1042);
		  	  AddVehicleComponent(GetPlayerVehicleID(playerid), 1099);
		  	  AddVehicleComponent(GetPlayerVehicleID(playerid), 1043);
		  	  AddVehicleComponent(GetPlayerVehicleID(playerid), 1175);
		  	  AddVehicleComponent(GetPlayerVehicleID(playerid), 1177);
		  	  PlayerPlaySound(playerid,1133,0.0,0.0,0.0);
		  	  new car = GetPlayerVehicleID(playerid);
		    ChangeVehicleColor(car,random(500),random(500));
		    }
		    //Remington
		    if (GetVehicleModel(GetPlayerVehicleID(playerid)) == 534)
		    {
		  	  AddVehicleComponent(GetPlayerVehicleID(playerid), 1100);
		  	  AddVehicleComponent(GetPlayerVehicleID(playerid), 1123);
		  	  AddVehicleComponent(GetPlayerVehicleID(playerid), 1101);
		  	  AddVehicleComponent(GetPlayerVehicleID(playerid), 1122);
		  	  AddVehicleComponent(GetPlayerVehicleID(playerid), 1127);
		  	  AddVehicleComponent(GetPlayerVehicleID(playerid), 1178);
		  	  AddVehicleComponent(GetPlayerVehicleID(playerid), 1185);
		  	  AddVehicleComponent(GetPlayerVehicleID(playerid), 1080);
		  	  PlayerPlaySound(playerid,1133,0.0,0.0,0.0);
		  	  new car = GetPlayerVehicleID(playerid);
		      ChangeVehicleColor(car,random(500),random(500));
		    }
		return 1;
	}
	return 0;
}
Reply
#6

THX!!
Reply
#7

Quote:
Originally Posted by H ❽ H
omg dude , u didn't even include a_samp .inc , the script got tons of errors and it isn't "PlaySoundForPlayer" it is "PlayPlayerSound" dude check ur scripts before releasing it here is ur script fixed :
Actually it's PlayerPlaySound. And this script is very inefficient.

Quote:

if (GetVehicleModel(GetPlayerVehicleID(playerid)) == 55
{
AddVehicleComponent(GetPlayerVehicleID(playerid), 108;
AddVehicleComponent(GetPlayerVehicleID(playerid), 1089);
AddVehicleComponent(GetPlayerVehicleID(playerid), 1090);
AddVehicleComponent(GetPlayerVehicleID(playerid), 1094);
AddVehicleComponent(GetPlayerVehicleID(playerid), 1164);
AddVehicleComponent(GetPlayerVehicleID(playerid), 1167);
AddVehicleComponent(GetPlayerVehicleID(playerid), 116;
AddVehicleComponent(GetPlayerVehicleID(playerid), 1080);
new car = GetPlayerVehicleID(playerid);
ChangeVehicleColor(car,random(500),random(500));
}

Makes no sense. Calling GetPlayerVehicleID that many times and then storing it in a variable at the very end for one more function. Here's how to do it, the good way.

http://pastebin.com/NdcVkkvy
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)