SA-MP Forums Archive
suggestions for 0.3c - 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: suggestions for 0.3c (/showthread.php?tid=194712)



suggestions for 0.3c - Blokkmonsta - 30.11.2010

0.3c is epic but i miss a few functions:

• GetVehicleNumberPlate(vehicleid, string);
• SetDefaultVehicleNumberPlate("SAMP"); // so we can easy change the "XYZR 000"
• GetVehicleColor(vehicleid, color1, color2);
• GetVehiclePaintjob(vehicleid)


Re: suggestions for 0.3c - Shadow™ - 30.11.2010

I saw a filterscript back in 0.2 about the GetVehicleColor you should look that up- Although it does include it's own function, but yeah- An actual 0.3 version would be good.

As for the Default Vehicle Numberplate, you could run a loop through all the vehicles on spawn and set their plate easily though yet again, this would be handy.

GetVehicleNumberPlate would be handy for things such as Law Enforcement or displaying on a string ("[INFO]: Registration: XYZR 000")


Re: suggestions for 0.3c - leong124 - 30.11.2010

You can use arrays to store the colors and numberplates to do GetVehicleColor and GetVehicleNumberPlate(but may be slow and wasting memory),
but I still look forward for the official version.


Re: suggestions for 0.3c - Jochemd - 30.11.2010

GetVehicleNumberPlate


Re: suggestions for 0.3c - Scenario - 30.11.2010

Quote:
Originally Posted by Jochemd
View Post
Or simply do an array through all vehicles, storing their license plate... (aka numberplate)


Re: suggestions for 0.3c - Jochemd - 30.11.2010

Yea, thats what this function does


Re: suggestions for 0.3c - 0ne - 30.11.2010

I suggest adding onplayershootplayer callback cause we're waiting for YEARS and that would be very good detection of godmode hacking! Detecting two vehicle collisions, if vehicle feature one is possible then please pm me about it


Re: suggestions for 0.3c - Mauzen - 30.11.2010

All those functions are scriptable (even the shootplayer and vehicle crash stuff), so you cant miss them :P


Re: suggestions for 0.3c - Scenario - 30.11.2010

Quote:
Originally Posted by Mauzen
View Post
All those functions are scriptable (even the shootplayer and vehicle crash stuff), so you cant miss them :P
True, but most people aren't sure how to script them.


Re: suggestions for 0.3c - Mauzen - 30.11.2010

Yep, but i use to say, why should the sa-mp team use their coding time, to implement things, that are already possible? They should focus on things, that cant be done with scripts only.
But this is only my oppinion, dont know what the sa-mp team thinks about it.