modification list - 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)
+--- Thread: modification list (
/showthread.php?tid=607998)
modification list -
ratxrat - 26.05.2016
im create mod vehicle use command not use dialog becouse for more rp .
i want create command /vehmod
if player tipe /vehmod show
example
Код:
tipe : transfender
Hood : Fury | Champ
bla bla bla
im create conditional likethis
PHP код:
new tipe ,vid;
vid= GetPlayerVehicleID(playerid);
tipe = GetVehicleModel(vid);
if(tipe == 400)
{
SendClientMessage(playerid,COLOR_YELLOW,"=== Modif yang tersedia untuk mobil ini adalah ===");
SendClientMessage(playerid,COLOR_YELLOW,"Tipe : transfender");
SendClientMessage(playerid,COLOR_YELLOW,"Knalpot : Large Exhaust | Medium Exhaust | Twin Exhaust | Upswept Exhaust ");
SendClientMessage(playerid,COLOR_YELLOW,"Lampu : Round | Square ");
SendClientMessage(playerid,COLOR_YELLOW,"=== Whell, nitro, hydrolik, ganti warna, stereo ===");
}
bla bla bla
but more than 100 vehicle in list . and i get idea from this
https://sampwiki.blast.hk/wiki/Car_Component_ID
i get car list component per car
like this
Код:
Landstalker(400): 1008, 1009, 1010, 1013, 1018, 1019, 1020, 1021, 1024, 1025, 1073, 1074, 1075, 1076, 1077, 1078, 1079, 1080, 1081, 1082, 1083, 1084, 1085, 1086, 1087, 1096, 1097, 1098
my big question . i want definition component id as sting like this 1000 == "spoiler pro" or im use
Modelname spl_b_mar_m == "spoiler pro"
and im crate format for sendclientmassage any one give me example?