I'm still not sure I totally understand what the button should do for you and any other players.
The way I made it now, is that every player gets his own button and when he clicks on it, his own button will go away for 6 seconds.
But when I click my button at let's say 22:30:00, it will come back to me at 22:30:06.
While if you click yours at 22:30:02, it will come back to you at 22:30:08.
On the other hand, if it was one button shown to all connected players (that isn't possible, but there is a way to pretent it is the same button for everyone), it would come down to the first player clicking it, then it goes away on everyones screen and will come back to everyone after 6 seconds.
I have no idea what you mean by "the bump 2 cars colliding is expelled".
Lapper can't detect colliding cars at all, so if you are looking to make that work, you can stop here and now.
Ok thanks for the help!
Button and it worked, thanks for answering questions.
Sub ButtonEvent( $KeyFlags,$id ) closePrivButton("event"); PrivDelayedCommand( 6, ButtonEvent2 ); EndSub
Sub ButtonEvent2( $KeyFlags ) openPrivButton( "event",78,120,20,10,10,-1,ISB_DARK,"^2EVENT",ButtonEvent ); EndSub
I have placed the OpenPrivButton in the OnConnect Event, so that everyone who connects to the server, gets that button.
As soon as you click it, ButtonEvent is called, which closes the button and then executes a DelayedCommand after 6 seconds, to go to ButtonEvent2.
In that event, the button is opened again and when you click it, ButtonEvent is called again.
I hope this is what you want, since you can't draw global buttons.
There is a way to work around that, but I haven't got time to work that out right now.
With me it worked! Thank you!
Another question, as I do that the bump 2 cars colliding is expelled?
Gracias me funciono! Gracias!
Otra pregunta, como hago que al chocarse 2 vehiculos el que choca sea expulsado?
With a scheduled event there isn't a need to display a button at all.
Just make it execute a piece of code every 6 seconds.
Maybe you could explain a bit more, what it is you want Lapper to do, since I am not totaly sure what you want.
I want you to just click on that button and hide the 6 seconds to reappear
Quiero que al darle click a ese boton se oculte y a los 6 segundos vuelva a aparecer
That might be possible, but it would be easier to use the scheduler of Lapper and run a task every 6 seconds (so run the task every minute at 0,6,12,18,24,30,36,42,48,54 seconds).
How do I hide the button is being pressed and then appears at 6 seconds?
Como hago para que el boton se oculte al ser presionado y aparesca a los 6 segundos?
Is there any way of showing the time from one node to another node?
Yes, if those nodes are at actual splits, Lapper has functions to calculate time between splits.
If the nodes are custom made, you need to built that function your self, by storing the time at node 1 and 2 and then calculate the difference between that.
there any way to do that only to push a button every 6 seconds?
hay alguna forma de hacer que solo puedan apretar un boton cada 6 segundos?
Is there any way to put autobanned for users in other countries?
No, since LFS and Lapper can't detect from which country someone is coming.
Not to mention the fact that it is relatively easy to pretent coming from a different country using proxy servers etc.
Is there any way of showing the time from one node to another node?