Scripts - ban automatique

Avatar de l’utilisateur

Topic author
Otto_Bann
Jeune Pilote
Jeune Pilote
Messages : 1919
Inscription : 01 novembre 2007

Scripts - ban automatique

#1

Message par Otto_Bann »

Slt à tous,

Je suis dans la construction de missions avec STE.

J'ai besoin de connaitre la manip pour implanter un ban automatique dans la mission (protection des bases).

On m'a parlé de script, mais je n'y connais rien.

En fouillant je suis tombé sur un post qui en parle. Il y est proposé 2 possibilités :

local TimeRecord = game.ReplicatedStorage.TimeRecord

script.Parent.Touched:Connect(function(part)
if part.Parent:FindFirstChild("Humanoid") then
local totalTimeValue = (TimeRecord.Minutes.Value * 60) + TimeRecord.Seconds.Value
local player = game.Players:GetPlayerFromCharacter(part.Parent)
if totalTimeValue < 30 and player.activatable.Value == true then
player.activatable.Value = false
local Ban = Instance.new("IntValue")
Ban.Name = player.Name
Ban.Value = player.UserId
Ban.Parent = game.ReplicatedStorage.BannedList
player:Kick("lol Hacker")
end

if player.activatable.Value == true and totalTimeValue > 30 then
player.activatable.Value = false
game.ReplicatedStorage.Finsihed:FireAllClients(player)
player.leaderstats.Wins.Value = player.leaderstats.Wins.Value + 1
player.stats.currentXP.Value += 25 * player.xpMultiplier.Value
player.Money.Cash.Value = player.Money.Cash.Value + 25 * player.Multiplier.Value
game.ReplicatedStorage.CoinIndicator.Sixth:FireClient(player)
if player.PlayerStats.BestTime.Value == 0 or player.PlayerStats.BestTime.Value > totalTimeValue then
player.PlayerStats.BestTime.Value = totalTimeValue
end


end
end
end)

You can use Data Stores to save bans across all servers.


Ou alors plus simple (soit disant) :

game.Players.PlayerAdded:Connect(function(plr)
if plr.PlayerStats.banned.Value == true then
plr:Kick("Banned reason: Hacking/Exploiting")
end
end)


Y aurait-il par ici qqu'un d'assez calé en informatique pour confirmer que ça peut marcher pour notre simulateur et qui pourrait m'aider à l'adapter et l'intégrer à la mission que je construis?

Merci d'avance / OB

Edit : ça en parle ici aussi, mais en chinois...: https://github.com/rathena/rathena/wiki/Adding-a-Script
+ Fly with honor and shot close before being seen + MSI Z370 G / I7 8700K OC à 4.6Ghz - Asus 3080 TI TUF OC 12go - 32Go DDR4 Ripjaws 3200 Cas 14 - LG 4K Oled C2 48" - 3 ssd + M.2 - Virpil RP & Stick Alpha - Noblechairs Icon Java - W11
Avatar de l’utilisateur

phoenix
Pilote Philanthrope
Pilote Philanthrope
Messages : 14935
Inscription : 05 août 2001

Re: Scripts - ban automatique

#2

Message par phoenix »

Otto_Ban, je croyais que c'était un truc développé pour IL2.

Tu ne peux pas prendre un script lambda sur le net pour le faire fonctionner avec IL2 great battles.

Chaque jeu à son code et son "langage" adapté.

Donc à moins de trouver quelqu'un qui a développé ce type d'outil pour IL2 great battles, tu peux oublier.
Avatar de l’utilisateur

Topic author
Otto_Bann
Jeune Pilote
Jeune Pilote
Messages : 1919
Inscription : 01 novembre 2007

Re: Scripts - ban automatique

#3

Message par Otto_Bann »

Damned! En + faut que ça soit spécifique à IL-2 : j'ignorais. Ça se complique mais je ne baisse pas les bras 🤔
+ Fly with honor and shot close before being seen + MSI Z370 G / I7 8700K OC à 4.6Ghz - Asus 3080 TI TUF OC 12go - 32Go DDR4 Ripjaws 3200 Cas 14 - LG 4K Oled C2 48" - 3 ssd + M.2 - Virpil RP & Stick Alpha - Noblechairs Icon Java - W11
Avatar de l’utilisateur

Topic author
Otto_Bann
Jeune Pilote
Jeune Pilote
Messages : 1919
Inscription : 01 novembre 2007

Re: Scripts - ban automatique

#4

Message par Otto_Bann »

Juste pour info : j'ai demandé de l'aide à 1C pour l'autoban.

Une certaine Olga de chez eux m'a envoyé un fichier à décompresser. Il contient une sorte de boite à outils pour faire des scripts dans le simu, mais elle s'est limitée à ça malgré mon second mail (en clair c'est du genre : "tiens, tout est en vrac là-dedans et maintenant démerde-toi")...

Je n'ai pas les compétences, c'est vraiment du chinois pour qui comme moi n'est pas informaticien. Mais apparemment et désormais j'ai les outils pour le faire.

Si qqu'un dans la communauté touche là-dedans et veut bien aider, merci de me contacter ;)
+ Fly with honor and shot close before being seen + MSI Z370 G / I7 8700K OC à 4.6Ghz - Asus 3080 TI TUF OC 12go - 32Go DDR4 Ripjaws 3200 Cas 14 - LG 4K Oled C2 48" - 3 ssd + M.2 - Virpil RP & Stick Alpha - Noblechairs Icon Java - W11
Répondre

Revenir à « Editeurs de missions et skins »