Dynamic Faction cars - 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: Dynamic Faction cars (
/showthread.php?tid=471220)
Dynamic Faction cars -
lramos15 - 21.10.2013
Does anyone know how I could make a command like /parkfcar and it would save the cars position as a faction car that only members of that faction can enter I have a faction system sorta with ranks and factionids
Re: Dynamic Faction cars -
Akira297 - 21.10.2013
You need to make this post inside of 'Script Requests' since you haven't even attempted it.
Re: Dynamic Faction cars -
lramos15 - 21.10.2013
Can you at least tell me the best way to go across creating dynamic faction cars?
Re: Dynamic Faction cars -
park4bmx - 21.10.2013
Creat an array
pawn Код:
new fvehcile[fid][MAX_VEHICLES];
//fid is ur define for the faction
Then just abasing the id of the faction and the car u want them to have, and upon a player entering it, just stop them if not apart from the faction
The position should be saved under a variable with the vehicleid on it.
Re: Dynamic Faction cars -
lramos15 - 25.10.2013
can someone give me an example on how to do that
Re: Dynamic Faction cars -
CJay9209 - 25.10.2013
The TSYS system in my signature is the most advanced vehicle management system (to the best of my knowledge) that's been released and it does what you want but it's actually part of a much larger system and may actually do far far more than you would want. What you are after is really pretty complicated but is doable. for an example of how to use the tsys system check out the rpg 5.0 link in my sig. It will even save vehicle parking positions over a server reset etc as it loads and saves the vehicle information from/to files.
Re: Dynamic Faction cars -
lramos15 - 26.10.2013
anyway to do it without TSYS
Re: Dynamic Faction cars -
lramos15 - 28.10.2013
bump