Bus Route Filterscript 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: Bus Route Filterscript help (
/showthread.php?tid=430231)
Bus Route Filterscript help -
BlackSirrah239 - 13.04.2013
Hello,
I am assisting my friend in creating a server, and we are trying to make a bus system because we like the more rp style of having most players rely on public transport (Buses, taxi's and trains). We want to make it so the bus driver can get into the bus and type /startroute. This will place a checkpoint on the road, when they go through it, it disables itself and creates a new one a bit further down the road, eventually creating a network of checkpoints that will take you around LS and back into Unity station. We have started on this, the only problem is that when the driver goes over the first checkpoint, it deletes itself but then doesn't create a new checkpoint.
Filterscript:
http://pastebin.com/FTTgc6ZK
NOTE: The script is based off a drivers license test filterscript we found on the internet
Thanks,
BlackSirrah239
Re: Bus Route Filterscript help -
Jason_Dealley - 13.04.2013
Here are some things i noticed:
15. #define COLOR_GREY 0xAFAFAFAA (This should be #define COLOR_GREY 0xAFAFAFAA)
Also there are some lines that arent in order.
This can be because of pastebin.
If it isnt, you will need to fix those.
Re: Bus Route Filterscript help -
Faisal_khan - 13.04.2013
^^
@Jason you don't make any sense!
The default SA-MP function for checkpoint is just to create one checkpoint. You will have to create a checkpoint using a streamer. Here's a tutorial on a streamer.
https://sampforum.blast.hk/showthread.php?tid=399922
Re: Bus Route Filterscript help -
BlackSirrah239 - 13.04.2013
Quote:
Originally Posted by Faisal_khan
|
The streamer really helped, but now some of the checkpoints wont despawn and the first doesnt create a marker on the map. Could you please look at the new script and help me out?
http://pastebin.com/9B6rMNee
Thanks!