The online racing simulator
Do not send prohibited player information on discord!
I looked around the forum a bit but couldn't find what I was looking for. Is there a code that shows the username of the player we banned in the server, the ban time, the ban time and who banned it? I would love it if you could share your work.
Instead of asking for work sharing, you should accomplish something by examining the extraction base codes playervars , lappervars .
blablabla
I'm sure people are willing to help you after such a comment. Androphp is right though.
Quote from Bose321 :I'm sure people are willing to help you after such a comment. Androphp is right though.

CASE !ban
UserGroupFromFile( yetkili, .yetkili.txt );
IF ( UserInGroup( yetkili,$userName) )
THEN
IF ( $argv != )
THEN
$idxSpace = indexOf( $argv, );
IF ( $idxSpace != -1 )
THEN
$KM = subStr( $argv,0,$idxSpace );
$argv = trim( subStr( $argv,$idxSpace ) );
GlobalMsg( strformat(. GetCurrentPlayerVar(NickName). ^7^TŞu Kullanıcıyı Banladı . GetPlayerVar( $argv, UserName ). ) );
GlobalMsg( ^8^TBanlandığı Süre ^1. $KM . Gün);
privMsg ( ^7^TYasaklandınız! ^3İtiraz için httpsdiscord.gge5VMUzP5wK );

$Message = ```fixn. GetCurrentPlayerVar(UserName). Şu Kullanıcıyı Banladı . $argv .nBanlandığı Süre . $KM . Gün``` ;
$DiscordChannel = 1168333465540886538;
sendmessagetodiscord($DiscordChannel,$Message);
cmdLFS(ban . $argv . . $KM);

ELSE
privMsg ( ^7^TYanlış Komut. ^3!yardim Yazıp Komutlara Bakabilirsiniz. );
ENDIF
ELSE
privMsg ( ^7^TYanlış Komut. ^3!yardim Yazıp Komutlara Bakabilirsiniz. );

ENDIF
BREAK;
ENDIF
BREAK;
CASE !k
IF ( UserIsAdmin( $userName ) == 1 )
THEN
privMsg( langEngine( %{main_kick}%, GetCurrentPlayerVar( NickName ), GetPlayerVar( $argv, NickName ) ));
cmdLFS( kick . $argv );
ENDIF
BREAK;

CASE !kick
UserGroupFromFile( yetkili, .yetkili.txt );
IF ( UserInGroup( yetkili,$userName) )
THEN

GlobalMsg( strformat(. GetCurrentPlayerVar(NickName). ^7^TŞu Kullanıcıyı Kickledi . GetPlayerVar( $argv, NickName ). ) );


$Message = . GetCurrentPlayerVar(UserName). Şu Kullanıcıyı Kickledi . GetPlayerVar( $argv, UserName ). ;
$DiscordChannel = 1175527399782371438;
sendmessagetodiscord($DiscordChannel,$Message);
cmdLFS( kick . $argv );

ELSE
privMsg ( ^7^TYanlış Komut. );


ENDIF
BREAK;

CASE !unban
UserGroupFromFile( yetkili, .yetkili.txt );
IF ( UserInGroup( yetkili,$userName) )
THEN
globalMsg(.GetCurrentPlayerVar(NickName). ^T^7Şu kişinin banını kaldırdı^0- . $argv );
$Message = . GetCurrentPlayerVar(UserName). Şu Kullanıcının banını kaldırdı . $argv ;
$DiscordChannel = 1175532254194307102;
sendmessagetodiscord($DiscordChannel,$Message);
cmdLFS( unban . $argv );
ELSE
privMsg ( ^7^TYanlış Komut. );
ENDIF
ELSE
privMsg ( ^7^TYanlış Komut. );
ENDIF
BREAK;

CASE !spec
UserGroupFromFile( yetkili, .yetkili.txt );
IF ( UserInGroup( yetkili,$userName) )
THEN
globalMsg(.GetCurrentPlayerVar(NickName). ^T^7Şu kişiyi izleyiciye attı^0- .GetPlayerVar( $argv, NickName ). );
$Message = . GetCurrentPlayerVar(UserName). Şu Kullanıcıyı izleyiciye attı . GetPlayerVar( $argv, UserName ). ;
$DiscordChannel = 1175549571825418360;
sendmessagetodiscord($DiscordChannel,$Message);
cmdLFS( spec . $argv );
ELSE
privMsg ( ^7^TYanlış Komut. );
ENDIF
ELSE
privMsg ( ^7^TYanlış Komut. );
ENDIF
BREAK;

We made the code I shared with Android PHP. Adjustments were made to it. The answers are in Turkish but you can correct it yourself. Banned players can be transferred successfully on Discord. But the banning style is a little different. (!ban 1 RealistAdam) first we write the duration.

Finally, I allowed these commands to be used by people whose username is in the txt file. You can edit this.

Yes, I replied to this topic a little late, but I just saw your message.

FGED GREDG RDFGDR GSFDG