Car & Road Flags

Learn here how to create and use plugins.

Moderator: Plugin Moderators

User avatar
Lobby
Developer
Reactions:
Posts: 3504
Joined: Sun Oct 26, 2008 12:34
Plugins: Show
Version: Beta

Platform

Car & Road Flags

#1

Post by Lobby »

With version 330 you have to ability to allow only passenger cars/truck on your own roads using flags.

If only passenger cars should be allowed add:

Code: Select all

"flag normal":false,
"flag pkw":true
To allow trucks only use:

Code: Select all

"flag normal":false,
"flag lkw":true
You have to set flag normal to false as it's enabled by default and includes booth, passenger cars and trucks.
roadflags.png
roadflags.png (43.87 KiB) Viewed 4427 times
Ensure to set these flags properly for your own cars in case you use car plugins. The code is the same as for roads.

Flags that are pre-defined by the game:

Code: Select all

"flag all"          // Special flag that enables all other flags at once
"flag normal"       // Special flag that enables some default flags (for roads that is pkw, lkw, tractor and bus)

"flag military"
"flag pedestrian"
"flag tram"
"flag airport"

"flag pkw"
"flag lkw"
"flag bus"
"flag tractor"

"flag train"
"flag maglev"
"flag monorail"
"flag high speed"
"flag subway"
=^._.^= โˆซ

User avatar
Josh
Graphic designer
Reactions:
Posts: 2217
Joined: Sat Mar 11, 2017 19:20
Location: The Netherlands
Plugins: Show
Version: Beta

Platform

Plugin Creator

Re: Cars & Roads: Flags

#2

Post by Josh »

Is it possible in future to have bus flags?
Good job Lobby!
Proud TheoTown player sinds update 1.1.50

Creator of Aldorria, Covinton Empire, West Country, Sunnydale

Save nature, before it kills you๐ŸŒฒ

User avatar
Lobby
Developer
Reactions:
Posts: 3504
Joined: Sun Oct 26, 2008 12:34
Plugins: Show
Version: Beta

Platform

Re: Cars & Roads: Flags

#3

Post by Lobby »

Of course :)
=^._.^= โˆซ

User avatar
CommanderABab
AB
Reactions:
Posts: 8574
Joined: Tue Jun 07, 2016 21:12
Plugins: Show
Version: Beta

Platform

Plugin Creator

Re: Cars & Roads: Flags

#4

Post by CommanderABab »

1l
888!888Currently using zeta 888. 888 What's that? :)
quantum road tool!!
:)

Telegram - t.me/
๐Ÿ†Ž๏ธ๐Ÿ†Ž๏ธ๐Ÿ†Ž๏ธ๐Ÿ†Ž๏ธCommander๐Ÿ†Ž๏ธ๐Ÿ†Ž๏ธ

User avatar
CommanderABab
AB
Reactions:
Posts: 8574
Joined: Tue Jun 07, 2016 21:12
Plugins: Show
Version: Beta

Platform

Plugin Creator

Re: Cars & Roads: Flags

#5

Post by CommanderABab »

Code: Select all

"flag normal":false,
"flag lkw":true
"flag normal":false,
"flag lkw":true
888!888Currently using zeta 888. 888 What's that? :)
quantum road tool!!
:)

Telegram - t.me/
๐Ÿ†Ž๏ธ๐Ÿ†Ž๏ธ๐Ÿ†Ž๏ธ๐Ÿ†Ž๏ธCommander๐Ÿ†Ž๏ธ๐Ÿ†Ž๏ธ

User avatar
CommanderABab
AB
Reactions:
Posts: 8574
Joined: Tue Jun 07, 2016 21:12
Plugins: Show
Version: Beta

Platform

Plugin Creator

Re: Cars & Roads: Flags

#6

Post by CommanderABab »

So, what does the l in lkw stand for?
888!888Currently using zeta 888. 888 What's that? :)
quantum road tool!!
:)

Telegram - t.me/
๐Ÿ†Ž๏ธ๐Ÿ†Ž๏ธ๐Ÿ†Ž๏ธ๐Ÿ†Ž๏ธCommander๐Ÿ†Ž๏ธ๐Ÿ†Ž๏ธ

User avatar
Lobby
Developer
Reactions:
Posts: 3504
Joined: Sun Oct 26, 2008 12:34
Plugins: Show
Version: Beta

Platform

Re: Cars & Roads: Flags

#7

Post by Lobby »

LKW stands for Lastkraftwagen

Last means heavy things.
=^._.^= โˆซ

User avatar
CommanderABab
AB
Reactions:
Posts: 8574
Joined: Tue Jun 07, 2016 21:12
Plugins: Show
Version: Beta

Platform

Plugin Creator

Re: Cars & Roads: Flags

#8

Post by CommanderABab »

Thanks!
888!888Currently using zeta 888. 888 What's that? :)
quantum road tool!!
:)

Telegram - t.me/
๐Ÿ†Ž๏ธ๐Ÿ†Ž๏ธ๐Ÿ†Ž๏ธ๐Ÿ†Ž๏ธCommander๐Ÿ†Ž๏ธ๐Ÿ†Ž๏ธ

User avatar
JustAnyone
enjenir
Reactions:
Posts: 2897
Joined: Sun Jul 23, 2017 12:45
Location: Easter Island
Plugins: Show

Re: Cars & Roads: Flags

#9

Post by JustAnyone »

Is it possible to add custom Flags to the cars?
Perfect way to comment stuff out :)
๐Ÿฆ€Now available as administrator๐Ÿฆ€
Image

:pickle:

User avatar
CommanderABab
AB
Reactions:
Posts: 8574
Joined: Tue Jun 07, 2016 21:12
Plugins: Show
Version: Beta

Platform

Plugin Creator

Re: Cars & Roads: Flags

#10

Post by CommanderABab »

User2 through user9
888!888Currently using zeta 888. 888 What's that? :)
quantum road tool!!
:)

Telegram - t.me/
๐Ÿ†Ž๏ธ๐Ÿ†Ž๏ธ๐Ÿ†Ž๏ธ๐Ÿ†Ž๏ธCommander๐Ÿ†Ž๏ธ๐Ÿ†Ž๏ธ

User avatar
JustAnyone
enjenir
Reactions:
Posts: 2897
Joined: Sun Jul 23, 2017 12:45
Location: Easter Island
Plugins: Show

Re: Cars & Roads: Flags

#11

Post by JustAnyone »

How do I make that my Custom cars Use The road? Anything at car spawner or somethin'?
Perfect way to comment stuff out :)
๐Ÿฆ€Now available as administrator๐Ÿฆ€
Image

:pickle:

User avatar
Lobby
Developer
Reactions:
Posts: 3504
Joined: Sun Oct 26, 2008 12:34
Plugins: Show
Version: Beta

Platform

Re: Cars & Roads: Flags

#12

Post by Lobby »

Set a flag (e.g. user7) in both, your road and your car plugin.
=^._.^= โˆซ

User avatar
danekbel
Inhabitant of a Galaxy Cluster
Reactions:
Posts: 2788
Joined: Thu May 05, 2016 9:33
Location: in your dreams
Plugins: Show
Version: Beta

Platform

Plugin Creator

Re: Cars & Roads: Flags

#13

Post by danekbel »

What's the flag for buses?
I used

Code: Select all

flag bus:false;
, but buses are still driving on the road
some text.

User avatar
JustAnyone
enjenir
Reactions:
Posts: 2897
Joined: Sun Jul 23, 2017 12:45
Location: Easter Island
Plugins: Show

Re: Cars & Roads: Flags

#14

Post by JustAnyone »

danekbel wrote: โ†‘
Sat Nov 18, 2017 12:12
What's the flag for buses?
I used

Code: Select all

flag bus:false;
, but buses are still driving on the road
Passenger I think.
Perfect way to comment stuff out :)
๐Ÿฆ€Now available as administrator๐Ÿฆ€
Image

:pickle:

User avatar
CommanderABab
AB
Reactions:
Posts: 8574
Joined: Tue Jun 07, 2016 21:12
Plugins: Show
Version: Beta

Platform

Plugin Creator

Re: Cars & Roads: Flags

#15

Post by CommanderABab »

Need quotes around flag bus.
888!888Currently using zeta 888. 888 What's that? :)
quantum road tool!!
:)

Telegram - t.me/
๐Ÿ†Ž๏ธ๐Ÿ†Ž๏ธ๐Ÿ†Ž๏ธ๐Ÿ†Ž๏ธCommander๐Ÿ†Ž๏ธ๐Ÿ†Ž๏ธ

User avatar
danekbel
Inhabitant of a Galaxy Cluster
Reactions:
Posts: 2788
Joined: Thu May 05, 2016 9:33
Location: in your dreams
Plugins: Show
Version: Beta

Platform

Plugin Creator

Re: Cars & Roads: Flags

#16

Post by danekbel »

CommanderABab wrote: โ†‘
Sat Nov 18, 2017 12:35
Need quotes around flag bus.
ยฟ?
Can you show an example please
some text.

User avatar
CommanderABab
AB
Reactions:
Posts: 8574
Joined: Tue Jun 07, 2016 21:12
Plugins: Show
Version: Beta

Platform

Plugin Creator

Re: Cars & Roads: Flags

#17

Post by CommanderABab »

No. I don't know if a flag bus exists. But if it did you would need

Code: Select all

"flag bus":false
to exclude buses.
888!888Currently using zeta 888. 888 What's that? :)
quantum road tool!!
:)

Telegram - t.me/
๐Ÿ†Ž๏ธ๐Ÿ†Ž๏ธ๐Ÿ†Ž๏ธ๐Ÿ†Ž๏ธCommander๐Ÿ†Ž๏ธ๐Ÿ†Ž๏ธ

User avatar
22Alpha
Inhabitant of a Conurbation
Reactions:
Posts: 445
Joined: Sat Sep 23, 2017 14:29

Platform

Re: Cars & Roads: Flags

#18

Post by 22Alpha »

CommanderABab wrote: โ†‘
Sat Nov 18, 2017 12:43
No. I don't know if a flag bus exists. But if it did you would need

Code: Select all

"flag bus":false
to exclude buses.
I tried that one, and the code was accepted. But I haven't kept an eye whether it works.
:mine

User avatar
CommanderABab
AB
Reactions:
Posts: 8574
Joined: Tue Jun 07, 2016 21:12
Plugins: Show
Version: Beta

Platform

Plugin Creator

Re: Cars & Roads: Flags

#19

Post by CommanderABab »

Lots of things are just ignored if they don't exist.
888!888Currently using zeta 888. 888 What's that? :)
quantum road tool!!
:)

Telegram - t.me/
๐Ÿ†Ž๏ธ๐Ÿ†Ž๏ธ๐Ÿ†Ž๏ธ๐Ÿ†Ž๏ธCommander๐Ÿ†Ž๏ธ๐Ÿ†Ž๏ธ

User avatar
Lobby
Developer
Reactions:
Posts: 3504
Joined: Sun Oct 26, 2008 12:34
Plugins: Show
Version: Beta

Platform

Re: Cars & Roads: Flags

#20

Post by Lobby »

Yes, "flag bus":true exists :)
=^._.^= โˆซ

Post Reply Previous topicNext topic

Return to โ€œTutorials and Documentationโ€