SA-MP Forums Archive
Need help with /checkplate - 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: Need help with /checkplate (/showthread.php?tid=604832)



Need help with /checkplate - D3vin - 10.04.2016

I was going to script /checkplate CMD in order to search for a Vehicle's licenses plates for online players cars for LSPD to Roleplay with, I couldnt even know how to start xD


Respuesta: Need help with /checkplate - Xabi - 10.04.2016

Store the vehicles in an array, setting there some basic data (vehicleid, vehicle type, etc.) and loop all the vehicles getting that type. If it's equal to a type you chose for LSPD, then get that vehicle's plate.