Tuning - 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: Tuning (
/showthread.php?tid=98327)
Tuning -
martyz-lithuania - 20.09.2009
Hey i've made tuning command but its work on buffalo...
Код:
new vehicleid;
vehicleid = GetPlayerVehicleID(playerid);
if(!strcmp(cmdtext, "/Tune", true))
{
AddVehicleComponent(vehicleid, 1080); // Switch ratlankiai
AddVehicleComponent(vehicleid, 1086); // Stereo
AddVehicleComponent(vehicleid, 1087); // Hydraulics
SendClientMessage(playerid, 0xFF000090, "* Car tuned sucessfully!");
return 1;
}
else if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 402)
return
SendClientMessage(playerid, 0xFF000090, "You cant tune buffalo");
return 1;
}
Re: Tuning -
» sTeVe - 20.09.2009
pawn Код:
new vehicleid;
vehicleid = GetPlayerVehicleID(playerid);
if(strcmp(cmdtext, "/tune", true) == 0)
{
AddVehicleComponent(vehicleid, 1080); // Switch ratlankiai
AddVehicleComponent(vehicleid, 1086); // Stereo
AddVehicleComponent(vehicleid, 1087); // Hydraulics
SendClientMessage(playerid, 0xFF000090, "* Car tuned sucessfully!");
return 1;
}
else if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 402)
{
SendClientMessage(playerid, 0xFF000090, "You cant tune buffalo");
}
Should work... ^^