SA-MP Forums Archive
Car spawner help - 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: Car spawner help (/showthread.php?tid=512933)



Car spawner help - tooq - 13.05.2014

hi guys i maded a car spawner with a dialog it works perfect but i need to add a little thing
when i player dp /v the dialog shows p but i need to add when a player do /v and the car name direclty without showing the dialog but i want to keep the dialog to


Re: Car spawner help - Madd92 - 13.05.2014

Quote:
Originally Posted by tooq
Посмотреть сообщение
hi guys i maded a car spawner with a dialog it works perfect but i need to add a little thing
when i player dp /v the dialog shows p but i need to add when a player do /v and the car name direclty without showing the dialog but i want to keep the dialog to
Use sscanf for example and if there was no parameter given, show the dialog. If there was one, try to get the vehicle id by name with the help of e.g. an array and then directly create that vehicle if a match was found.

I hope this helps.