Hay lads, i got a little problem...i'm making a map based on C&R and Civil RPG...so you play Cops or Civilian.
As a Cop you can arrest Civilians if they broke the law, they'll be setposed to jail and released after 2 minutes from jail.
For this i have 2 Scripts, one is attached to Cops, to arrest civilian. This arrest script starts another script which releases the Civilian after 2 minutes.
As far all works fine, i can arrest Civ's, they are setposed to Jail and released after 2 Minutes.
The problems are the hint messages.
As Cop you'll get a message saying "You arrested Dude..bla bla bla"...this works.
As Civ you should get Messages saying "You're arrested and released in X minutes"...this doesn't work. Well, for being precise...it works, but Cop gets these messages and not Civilian.
the release script looks like this:
_civ = _this select 0
_a = 0
_remain = "2 Minutes"
?!(local _civ): goto "end"
_bike = "kolo" createvehicle getpos release
#loop
~1
_msg = Format ["%1\nyou'll be released in %2", name _civ, _remain]
?!(alive _civ): exit
?(_a == 0): hint _msg
?(_a == 60): _remain = "1 Minute"
?(_a == 61): hint _msg
?(_a == 90): _remain = "30 Seconds"
?(_a == 91): hint _msg
?(_a == 105): _remain = "15 Seconds"
?(_a == 106): hint _msg
?(_a == 120): goto "release"
_a = _a + 1
goto "loop"
#release
_civ setpos getpos release
_msg = Format ["%1, you've been released from Jail and your Crime record is cleared", name _civ]
hint _msg
#end
exit
I've tried to play around with
?!(local _civ): goto "end"
by using
?!(local player): goto "end" (but there i guessed it wouldn't help)
So, how can i make it that the messages are shown to the correct player?
I know some of you knows the answer and i'm sure this person would share his knowledge with me ;D