SA-MP Forums Archive
Help please. - 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: Help please. (/showthread.php?tid=173707)



Help please. - drewconnolly - 03.09.2010

Hello,

I have this command here

Код:
	if(strcmp(cmdtext, "/autotune", true) == 0)
	{
    	if(PlayerInfo[playerid][pAdminLevel] >= 1)
    	{
            new VehicleID;
            VehicleID = GetPlayerVehicleID(playerid);
            

            GameTextForPlayer(playerid,"~b~Car modded!", 4000, 5);
            AddVehicleComponent(VehicleID, 1087); //hidraulic
            AddVehicleComponent(VehicleID, 1079); // wheels
            AddVehicleComponent(VehicleID, 1010); //nos 10x
            ChangeVehicleColor(VehicleID, 132, 0);

		}
		return 1;
	}
I was wondering how you would go on making it so when u type that command, it would spawn with random set of wheels and paint?

Thank you

~Drew