13.05.2018, 12:33
NFS system car
14.05.2018, 06:59
They have used TextDraws to display and they have Checked Keys pressed for vehicle spawn. CreateVehicle and DestroyVehicle once an arrow key is pressed. Set player's camera angle accordingly as well.
14.05.2018, 18:03
Thank you for the tips
14.05.2018, 18:34
Well it's very time wasteful to make this system, because calibrating it to perfection takes a lot time and its simplier to make just simpler buting dialog for vehicles and it works well.
And to make this system optimized also takes some scripting skills.
And to make this system optimized also takes some scripting skills.
14.05.2018, 18:59
Right. I wanted to do a tuning system for the vehicle on textdraw. The only problem I have is getting back to the normal state of the vehicle after clicking the Cancel button.
14.05.2018, 19:48
well you could create temporary array for tunings and when cancel is pressed, everything from array is removed.
PHP код:
new arrTempComps[max_players][14];
AddCompForPreview(pid,vid,comp){
arrTempComps[pid][GetVehicleComponentType(comp)]=comp;
AddVehicleComponent(vid,comp);
return 1;
}
SavePreviewComps(pid,vid){
for(new i; i < 14; i++){
Vehicle[vid][Tuning][i]=arrTempsComps[pid][i];
}
new s[120];
format(s,120,"update vehs set tune0...");
mysql_tquery(con0,s);
return 1;
}
RemovePreviewComps(pid,vid){
for(new i; i < 14; i++)if(arrTempComps[pid][i])RemoveVehicleComponent(vid,arrTempComps[i]),arrTempComps[i]=0;
return 1;
}
14.05.2018, 20:49
Thanks! If I have a problem, I will write a new topic.
« Next Oldest | Next Newest »
Users browsing this thread: 1 Guest(s)