SA-MP Forums Archive
Problem plz 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Problem plz help (/showthread.php?tid=78747)



Problem plz help - siimand1 - 22.05.2009

Okey i am a scripting noob.I am am using larp GM and i want to add some gang cars, if i do addstaticvehicle....I **** everything up i changes all cars id what i have to do more?

Thank you!


Re: Problem plz help - ferriswheel - 23.05.2009

I don't know LA-RP script, but what you'd need to do is add the new vehicle as the absolute last vehicle to be spawned, then go into the part of the script which checks if that's a gang car/faction car (Either OnPlayerEnterVehicle or OnPlayerStateChange) and add that vehicles id to the list of id's, it'll be something like
Код:
if( newcar == 120 || newcar == 300 || etc || etc)
Then just add your car's id at the end


Re: Problem plz help - Blt950 - 23.05.2009

Ya it will fuck up all ID's etc. I would suggest to make the new cars as far away down you can from others. So the old stay at same ID's. And you'r new come too.


Re: Problem plz help - siimand1 - 23.05.2009

I want to make cars that everybody can drive not gang/faction cars and as i said i am a scripting noob so try to explaint it better

Sorry for my bad english


Re: Problem plz help - waza75 - 23.05.2009

Look for the Debug mode guide in Sa-mp Wiki.
If you want to ad cars that should help.


Re: Problem plz help - Think - 23.05.2009

Quote:
Originally Posted by waza75
Look for the Debug mode guide in Sa-mp Wiki.
If you want to ad cars that should help.
not in this case,

just goto the bottem of ongamemodeinit and place all your new cars there so they are the last ID's