Floating Text/Road Sign
#1

Hi All,

I am very new to this, but really want to learn how to script basic things.

To start off, I'd like to script something like this:

On an RP server, to give the the police the ability to place signs such as 'SLOW, POLICE INCIDENT' or 'SPEED ENFORCEMENT OFFICER AHEAD'. The sign may not be a physical sign, however a floating white text (the same look of text as usernamename text) that would be positioned above a road cone. (object 1237)

The sign/cone would be deployed with /sign (and removed with /rsign) then a dialogue box would appear in the centre of the screen. You can then type your message here, such as 'DIVERSION, TURN RIGHT' or 'ALL TRAFFIC SLOW'

Additional features would be changing text colour with [r] to turn the text red, to turn the text blue. Perhaps # for a new line.

Possibly set an automatic sign de-spawn of 25 minutes if the officer does not /rsign, if this is not too confusing for a beginner.

Looks something like this perhaps?


A step by step guide would be really useful.

Sorry if this is in the wrong section.

I can imagine it would be something along the lines of ifplayertypes "/sign" then createobject 1237 etc etc.. but don't know how to deal with dialogue boxes, or the floating text?


Much appreciated!
Reply


Messages In This Thread
Floating Text/Road Sign - by Jewelz - 02.08.2015, 21:49
AW: Floating Text/Road Sign - by Kaliber - 02.08.2015, 22:08
Re: Floating Text/Road Sign - by Jewelz - 02.08.2015, 23:10
Re: Floating Text/Road Sign - by Pagle - 04.08.2015, 11:16

Forum Jump:


Users browsing this thread: 1 Guest(s)