Searching in All forums
(17 results)
Request for Assistance in Creating a Speed Display Button in C#
AL.OZCAN
Demo licensed
I hope this message finds you well. I am new to C# and InsimDotNet and I am working on a project where I need to create a button that displays the vehicle’s speed. I would greatly appreciate any guidance or examples you can provide to help me achieve this.

Thank you for your time and support!

Best regards,
AL.OZCAN
Demo licensed
Quote from suicdff_ :You may not be able to do that, but if you want there is a lfslapper function...

Thank you for everything. I didn't need any help; I made the system I wanted and it's working.
Sending Mail from Lapper Application
AL.OZCAN
Demo licensed
Hello,

I'm using the registration system shared by the player named Yisc[NL], and I would like to set it up so that when players forget their passwords and click the "Forgot My Password" button on the login screen, a code is sent to their email addresses from my email address. How can I link this?
AL.OZCAN
Demo licensed
In V1.06 04-08-2024 txt file,
You specified it as 46 in this section, but it will be 47 = #. If you want all admins to appear, you need to change line 46.
AL.OZCAN
Demo licensed
It worked flawlessly!
I am very, very grateful to you for everything, Yisc[NL].
I will never forget this kindness
AL.OZCAN
Demo licensed
I found out that the problem was caused by me and I fixed it, but there is a problem:
If the second admin is active in the game and the first admin exits the game and enters again, the problem in the photo below occurs, but if I use the !reload command in the game, the problem is solved.

1. Admin's screen
https://hizliresim.com/t3d3i0c
2. Admin's screen
https://hizliresim.com/79071ge

1st Admin When he exits and enters, the 1st admin's screen
https://hizliresim.com/ssn2eem

(PROBLEM) - 2st Admin When he exits and enters, the 2nd admin's screen
https://hizliresim.com/s1mpsy1
AL.OZCAN
Demo licensed
but still the same problem persists
AL.OZCAN
Demo licensed
Thanks Yisc[NL] Smile
AL.OZCAN
Demo licensed
Is there no other solution for this? Because when there is a gap between two authorities, it looks unattractive
AL.OZCAN
Demo licensed
Hello Yisc[NL],

I tested the Admin notify V1.04 update dated 16-07-2024, and it works. However, I noticed an issue:

For example, if there are 2 admins, they both appear in the bottom left corner. But when the second admin exits and re-enters the server, a gap appears between the first and second admin. How can this be fixed?
AL.OZCAN
Demo licensed
@Yisc[NL]
AL.OZCAN
Demo licensed
Quote from Yisc[NL :;2097819"]It never ends because the code keeps going back and forth between sub "jailspec" and sub "jailspec2"
The code is missing an action that's triggered when the time ran out.

As a side note, why using a GlobalButton while a player is send to jail?
I would expect that only that player should see the button, instead of all players.

"I didn't notice. I just fixed it privately.

So, do you have a chance to help me?
AL.OZCAN
Demo licensed
Quote from rane_nbg :How about creating a timer and keep spectacting the player every 1 second until...

I tried the method you suggested, and it forces the player to spectator mode every second, preventing them from joining the game. However, the command to send them to spectator mode continues to run even after the time has expired. Can you help me with this?



<?php 
Sub calc_race_start_time
( $KeyFlags,$id )
$Minutes = round(($start_race_seconds/60),0);
$Time = (round(($start_race_seconds/60),2)-$Minutes);
$Seconds = round(($Time*60),0);

IF (
$Seconds < 0 )
THEN
$Minutes
= $Minutes-1;
$Seconds = 60 + $Seconds;
ENDIF

$DisplaySeconds=$Seconds;

Timer( $KeyFlags ); # Geri sayım başlat
EndSub

Sub Timer
( $KeyFlags )
### Ekran düğmesini göster ###
openGlobalButton("countdown_button", 50, 30, 100, 10, 5, -1, 32, "^7". $Minutes . "^1 Dakika ^7" . $DisplaySeconds . "^1 saniye boyunca izleyiciye atıldın! katılamazsın!");

### Saniyeleri azalt ###
### Saniyeler 0&#039;ın altına düşerse, dakikaları 1 azalt ve saniyeleri 59 olarak ayarla ###
### Saniyeler 10&#039;dan küçükse, görüntülenen değere bir sıfır ekle ###
$Seconds = $Seconds-1;

IF (
$Seconds < 0 )
THEN
$Minutes
= $Minutes-1;
$Seconds = 59;
ENDIF

IF (
$Seconds < 10 )
THEN
$DisplaySeconds
="0".$Seconds;
ELSE
$DisplaySeconds=$Seconds;
ENDIF

### Dakikalar ve saniyeler 0 veya daha büyükse, 1 saniyelik döngüyü kullan, aksi takdirde düğmeyi kapat ###
IF ( $Minutes >= 0 && $Seconds >=0 )
THEN
HostDelayedCommand
( 1, Timer );
ELSE
closeGlobalButton( "countdown_button" );
ENDIF
jailspec($KeyFlags);

EndSub

Sub jailspec
($KeyFlags)
cmdLFS("/spec " . GetCurrentPlayerVar("polispanelkisin"));
PrivDelayedCommand(1, jailspec2);
EndSub


Sub jailspec2
( $KeyFlags )
cmdLFS("/spec " . GetCurrentPlayerVar("polispanelkisin"));
PrivDelayedCommand(1, jailspec);
EndSub
?>
Last edited by AL.OZCAN, .
Jail System
AL.OZCAN
Demo licensed
Hello LFS Family!

Today, I'm working on the police system on my own server.

However, when a guilty person is caught and moved to spectator mode, I added a 200-second penalty duration. But I don't want the player to join the race for 200 seconds. How can I do this?

https://hizliresim.com/1d51wz4
Its good..
AL.OZCAN
Demo licensed
Quote from Evolution_R :I got inspired by the new images and decided to use them as menu background...

Its good backround
AL.OZCAN
Demo licensed
nasıl demo lisansında kullanabilirim?
FGED GREDG RDFGDR GSFDG