[FilterScript] Toll system
#1

I wrote this for LS-RP a year ago but as it suddenly turns out we don't need it anymore so here it is:
http://giacom.pastebin.com/TDEVR37a

Please note that I wrote this a year ago and it's pretty messy. I am aware of most of its weaknesses, and like I said I wrote this a year ago when I just started learning pawn so please don't complain

This script requires modifications to fit your server, it's not a plug-and-play script, I don't have time to make it easily compatible for any script right now. But I'm sure the average scripter can patch this up.

How it works
There are three tolls. They are placed on the bridge between Richman and Flint County, in the tunnel at the bank building and on the highway from Los Santos to Las Venturas.

When the driver approaches one of the tolls, they are greeted by a (non-existant) guard.

To open the toll, the driver needs to pay a couple of bucks.

The toll closes automatically when the car passes or after X seconds.

The police can close the tolls individually for 30 seconds with the regular commands or all tolls with the emergency command for 60 seconds.

OH and it uses an old version of ycmd, lol
Reply
#2

Very good for RP gamemode! good job.
Reply
#3

I remember seeing this on LS-RP, appears to be a Loophole where you can pass those via Dillimore
Reply
#4

Well done !
Reply
#5

Thanks guys!
Quote:
Originally Posted by Stuntkillas
Посмотреть сообщение
I remember seeing this on LS-RP, appears to be a Loophole where you can pass those via Dillimore
No, this is an improved system that was meant to replace the one on LS-RP. It's made from scratch so it's not affiliated to the one running on LS-RP at all. But it's not supposed to close the city down, only the three major exits - you can still get out without passing the tolls if you're smart.
Reply
#6

is there a command to pay? when i go to the toll it dont open
Reply
#7

ah nvm some of the icons dont tell u the command
Reply
#8

Nice ! I used to play on LS-RP and had to deal with those tolls

Thank you for it`s release.

ps: I`m guessing you have something new instead of those tolls? What is it ... because I can`t connect to the server, since I have my ports blocked
Reply
#9

DELETED
Reply
#10

You should remove everything related to custom global variables(gPlayerLogged[playerid]).

+ You should change the #if TollFs == 0 ... etc. to #if defined FILTERSCRIPT
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)