Aller au contenu
  • 0

Problème ban loin


Question

Posté(e)

Bonjours j'ai un problème sur mon skript quand on /ban la personne sa le fais fais très bien tout marche mais quand la personne essaye de rejoindre le serveur alors quel est banni sa lui met le marteau du bannissent a frapper et j'aimerai que sa lui mette

 

Vous avez était banni !

 

Par : pseudo qui la /ban

Raison : ......

Le 00/00/00

 

Pour toute réclamation ou unban ajoutez ce Skype : .....

 

Mon skript : [spoiler=Skript ]

 

options:

logo: &7[&4&lAntiCheat&7]

perm: ac.use

perms: sanction.n

logos: &7[&c&lModération&7]

 

 

#PARTIE BAN

 

 

command /ban [<offline player>] [<text>]:

permission: dark.pe

permission message: Commande inconnue.

trigger:

if arg 1 is not set:

send "{@logos} Vous devez préciser un joueur !"

else if arg 2 is not set:

send "{@logos} Vous devez préciser une raison !"

if arg 1 is set:

if arg 2 is set:

add 1 to {h.ban.%arg 1%}

kick arg 1 due to "{@logos} Vous avez été banni par &c%player% &7pour &c%arg 2%"

ban arg 1 due to "{@logos} Vous avez été été banni par &c%player% &7pour &c%arg 2%"

broadcast "{@logos} &e%arg 1% &7à été banni par &c%player% &7pour &c%arg 2%"

launch ball firework colored red at arg 1 with duration 0.0

launch ball firework colored yellow at arg 1 with duration 0.0

launch creeper firework colored blue at arg 1 with duration 0.0

launch ball firework colored white at arg 1 with duration 0.0

strike lightning at arg 1

play raw sound "ENDERDRAGON_GROWL" at all players with pitch 1 volume 10

 

command /unban [<offline player>]:

permission: dark.pe

permission message: Commande inconnue.

trigger:

if arg 1 is not set:

send "{@logos} Vous devez préciser un joueur !"

if arg 1 is set:

send "{@logos} Vous avez unban %arg 1% !"

unban arg 1

 

command /kick [<player>] [<text>]:

permission: dark.pe

permission message: Commande inconnue.

trigger:

if arg 1 is not set:

send "{@logos} Vous devez préciser un joueur !"

else if arg 2 is not set:

send "{@logos} Vous devez préciser une raison !"

if arg 1 is set:

if arg 2 is set:

add 1 to {h.kick.%arg 1%}

kick arg 1 due to "{@logos} Vous avez été kick par &c%player% &7pour &c%arg 2%"

broadcast "{@logos} &e%arg 1% &7à été kick par &c%player% &7pour &c%arg 2%"

launch ball firework colored red at arg 1 with duration 0.0

launch ball firework colored yellow at arg 1 with duration 0.0

launch creeper firework colored blue at arg 1 with duration 0.0

launch ball firework colored white at arg 1 with duration 0.0

strike lightning at arg 1

play raw sound "ENDERDRAGON_GROWL" at all players with pitch 1 volume 10

 

 

command /historique [<offline player>]:

permission: dark.pe

permission message: Commande inconnue.

trigger:

if arg 1 is not set:

send "{@logos} Vous devez préciser un joueur !"

if arg 1 is set:

send "&7-==-=&8[&6Historique de %arg 1%&8]&7=-==-"

send ""

send "&aban: %{h.ban.%arg 1%}%"

send "&akick: %{h.kick.%arg 1%}%"

send "&aMute: %{h.mute.%arg 1%}%"

send ""

 

command /chistorique [<offline player>]:

permission: dark.pe

permission message: Commande inconnue.

trigger:

if arg 1 is not set:

send "{@logos} Vous devez préciser un joueur !"

if arg 1 is set:

send "{@logos} Vous avez clear l'historique de %arg 1% !"

set {h.ban.%arg 1%} to 0

set {h.kick.%arg 1%} to 0

set {h.mute.%arg 1%} to 0

 

 

 

 

 

Merci à celui ou celle qui m'aideras :)

7 réponses à cette question

Messages recommandés

  • 0
Posté(e)
C'est normal car tu as Essentials et Skript ne peut faire la différence entre la commande /Ban de Essentials et ta propre commande. Donc ce qu'il faut faire c'est changer ta commande.

ok j'ai mis /gban mais quand je me re co sa met le marteau du bannisement a frapper :/ sa marche pas :'(

  • 0
Posté(e)

essaye sa:

options:
   logo: &7[&4&lAntiCheat&7]
   perm: ac.use
   perms: sanction.n
   logos: &7[&c&lModération&7]

command /ban [<offline player>] [<text>]:
   permission: dark.pe
   permission message: Commande inconnue.
   trigger:
       if arg 1 is not set:
           send "{@logos} Vous devez préciser un joueur !"
       else if arg 2 is not set:
           send "{@logos} Vous devez préciser une raison !"
       if arg 1 is set:
           if arg 2 is set:
               add 1 to {h.ban.%arg 1%}
                   kick arg 1 due to "{@logos} Vous avez été banni par &c%player% &7pour &c%arg 2%"
                   set {ban.%arg-1%} to true #ca va set une variable que quand on rejoin et si la variable est true sa ve le kick
                   set {banmod.%arg-1%} to player #ne touche pas
                   set {banmotif.%arg-1%} to arg-2 #ne touche pas
                   broadcast "{@logos} &e%arg 1% &7à été banni par &c%player% &7pour &c%arg 2%"
                   launch ball firework colored red at arg 1 with duration 0.0
                   launch ball firework colored yellow at arg 1 with duration 0.0
                   launch creeper firework colored blue at arg 1 with duration 0.0
                   launch ball firework colored white at arg 1 with duration 0.0
                   strike lightning at arg 1
                   play raw sound "ENDERDRAGON_GROWL" at all players with pitch 1 volume 10

command /unban [<offline player>]:
   permission: dark.pe
   permission message: Commande inconnue.
   trigger:
       if arg 1 is not set:
           send "{@logos} Vous devez préciser un joueur !"
       if arg 1 is set:
           send "{@logos} Vous avez unban %arg 1% !"
           set {ban.%arg-1%} to false

on connect:
   if {ban.%player%} is true:
       kick the player due to "{@logos} Vous avez été banni par &c%{banmod.%player%}% &7pour &c%{banmotif.%arg-1%}%"

  • 0
Posté(e)
essaye sa:

options:
   logo: &7[&4&lAntiCheat&7]
   perm: ac.use
   perms: sanction.n
   logos: &7[&c&lModération&7]

command /ban [<offline player>] [<text>]:
   permission: dark.pe
   permission message: Commande inconnue.
   trigger:
       if arg 1 is not set:
           send "{@logos} Vous devez préciser un joueur !"
       else if arg 2 is not set:
           send "{@logos} Vous devez préciser une raison !"
       if arg 1 is set:
           if arg 2 is set:
               add 1 to {h.ban.%arg 1%}
                   kick arg 1 due to "{@logos} Vous avez été banni par &c%player% &7pour &c%arg 2%"
                   set {ban.%arg-1%} to true #ca va set une variable que quand on rejoin et si la variable est true sa ve le kick
                   set {banmod.%arg-1%} to player #ne touche pas
                   set {banmotif.%arg-1%} to arg-2 #ne touche pas
                   broadcast "{@logos} &e%arg 1% &7à été banni par &c%player% &7pour &c%arg 2%"
                   launch ball firework colored red at arg 1 with duration 0.0
                   launch ball firework colored yellow at arg 1 with duration 0.0
                   launch creeper firework colored blue at arg 1 with duration 0.0
                   launch ball firework colored white at arg 1 with duration 0.0
                   strike lightning at arg 1
                   play raw sound "ENDERDRAGON_GROWL" at all players with pitch 1 volume 10

command /unban [<offline player>]:
   permission: dark.pe
   permission message: Commande inconnue.
   trigger:
       if arg 1 is not set:
           send "{@logos} Vous devez préciser un joueur !"
       if arg 1 is set:
           send "{@logos} Vous avez unban %arg 1% !"
           set {ban.%arg-1%} to false

on connect:
   if {ban.%player%} is true:
       kick the player due to "{@logos} Vous avez été banni par &c%{banmod.%player%}% &7pour &c%{banmotif.%arg-1%}%"

nan toujours pas y a 14 erreur dans ton skript :'(

×
×
  • Créer...

Information importante

Nous avons placé des cookies sur votre appareil pour aider à améliorer ce site. Vous pouvez choisir d’ajuster vos paramètres de cookie, sinon nous supposerons que vous êtes d’accord pour continuer.