-
Compteur de contenus
853 -
Inscription
-
Dernière visite
-
Jours gagnés
19
Type de contenu
Profils
Forums
Téléchargements
Tout ce qui a été posté par Crazy
-
J'ai corrigé les erreurs, tu avais oublier un " et aussi un { et après c'est parce que tu avais mal placer un "
-
options: prefix1: &6[staff] prefix2: &3[ProtectoServ] command /setgrade <offline player> <text>: permission: setgrade.sk permission message: {@prefix2} &4You don't have permission to use this command! trigger: if arg 1 is not set: message "{@prefix2} &4Please specify the name of the player." else if arg 2 is not set: message "{@prefix2} &4Please specify the name of the rank." else: if arg 1 is set: if arg 2 is "Administrator": if {grade.%uuid of arg 1%} is "&l&4Administrator": send "{@prefix2} &4This player already has the rank of &l&4Administrator&r&4." else: set {grade.%uuid of arg 1%} to "&l&4Administrator" send "{@prefix2} &2%arg-1% &4became &l&4Administrator&r&4." send "{@prefix1} &4You've become &l&4Administrator&r&4!" to arg 1 else if arg 2 is "Chief Moderator": if {grade.%uuid of arg 1%} is "&l&2Chief Moderator": send "{@prefix2} &4This player already has the rank of &l&2Chief Moderator&r&4." else: set {grade.%uuid of arg 1%} to "&l&2Chief Moderator" send "{@prefix2} &2%arg-1% &4became &l&2Chief Moderatortor&r&4." send "{@prefix1} &4You've become &l&2Chief Moderator&r&4!" to arg 1 else if arg 2 is "Chief Builder": if {grade.%uuid of arg 1%} is "&l&1Chief Builder": send "{@prefix2} &4This player already has the rank of &l&1Chief Builder&r&4." else: set {grade.%uuid of arg 1%} to "&l&1Chief Builder" send "{@prefix2} &2%arg-1% &4became &l&1Chief Builder&r&4." send "{@prefix1} &4You've become &l&1Chief Builder&r&4!" to arg 1 else if arg 2 is "Moderator": if {grade.%uuid of arg 1%} is "&l&aModerator": send "{@prefix2} &4This player already has the rank of &l&aModerator&r&4." else: set {grade.%uuid of arg 1%} to "&l&&Moderator" send "{@prefix2} &2%arg-1% &4became &l&aModerator&r&4." send "{@prefix1} &4You've become &l&aModerator&r&4!" to arg 1 else if arg 2 is "Moderator-Chat": if {grade.%uuid of arg 1%} is "&l&8Moderator-Chat": send "{@prefix2} &4This player already has the rank of &l&8Moderator-Chat&r&4." else: set {grade.%uuid of arg 1%} to "&l&8Moderator-Chat" send "{@prefix2} &2%arg-1% &4became &l&8Moderator-Chat&r&4." send "{@prefix1} &4You've become &l&8Moderator-Chat&r&4!" to arg 1 else if arg 2 is "Builder": if {grade.%uuid of arg 1%} is "&1&9Builder": send "{@prefix2} &4This player already has the rank of &l&9Builder&r&4." else: set {grade.%uuid of arg 1%} to "&l&9Builder" send "{@prefix2} &2%arg-1% &4became &l&9Builder&r&4." send "{@prefix1} &4You've become &l&9Builder&r&4!" to arg 1 else if arg 2 is "Helper": if {grade.%uuid of arg 1%} is "&l&6Helper": send "{@prefix2} "&4This player already has the rank of &l&6Helper&r&4." else: set {grade.%uuid of arg 1%} to "&1&6Helper" send "{@prefix2} &2%arg-1% &4became &l&6Helper&r&4." send "{@prefix1} &4You've become &l&6Helper&r&4!" to arg 1 else if arg 2 is "Youtuber": if {grade.%uuid of arg 1%} is "&l&4You&l&ftuber": send "{@prefix2} &4This player already has the rank of &l&4You&l&ftuber&r&4." else: set {grade.%uuid of arg 1%} to "&l&4You&l&ftuber" send "{@prefix2} &2%arg-1% &4became &l&4You&l&ftuber&r&4." send "{@prefix1} &4You've become &l&4You&l&ftuber&r&4!" to arg 1 else if arg 2 is "Alpha": if {grade.%uuid of arg 1%} is "&bAlpha": send "{@prefix2} &4This player already has the rank of &bAlpha&4." else: set {grade.%uuid of arg 1%} to "&bAlpha3 send "{@prefix2} &2%arg-1% &4became &bAlpha&4." send "{@prefix1} &2You've become &bAlpha&4!" to arg 1 else if arg 2 is "Ultra Vip": if {grade.%uuid of arg 1%} is "&5Ultra Vip": send "{@prefix2} &4This player already has the rank of &5Ultra Vip&4." else: set {grade.%uuid of arg 1%} to "&5Ultra Vip" send "{@prefix2} &2%arg-1% &4became &5Ultra Vip&4." send "{@prefix1} &4You've become &5Ultra Vip&4!" to arg 1 else if arg 2 is "Vip": if {grade.%uuid of arg 1%} is "&eVip": send "{@prefix2} &4This player already has the rank of &eVip&4." else: set {grade.%uuid of arg 1%} to "&eVip" send "{@prefix2} &2%arg-1% &4became &eVip&4." send "{@prefix1} &4You've become &eVip&4!" to arg 1 else if arg 2 is "Croziumien": if {grade.%uuid of arg 1%} is "&1Croziumien": send "{@prefix2} &4This player already has the rank of &1Croziumien&4." else: set {grade.%uuid of arg 1%} to "&1Croziumien" send "{@prefix2} &2%arg-1% &4became &1Croziumien&4." send "{@prefix1} &4You've become &1Croziumien&4!" to arg 1 else if arg 2 is "Player": if {grade.%uuid of arg 1%} is "&7Player": send "{@prefix2} &4This player already has the rank of &7Player&4." else: set {grade.%uuid of arg 1%} to "&7Player" send "{@prefix2} &2%arg-1% &4became &7Player&4." send "{@prefix1} &4You've become &7Player&4!" to arg 1 else: send "{@prefix2} &4This rank does not exist!"
-
Remplacer un mot dans un fichier du serveur
Crazy a répondu à un(e) question de PastequeBuild dans Résolus
Rajoute ça a la fin du code et au début du code (après avoir set la variable {var::*} broadcast "%{_var::*}%" Et dis moi ce qu'il te dis dans le chat -
Remplacer un mot dans un fichier du serveur
Crazy a répondu à un(e) question de PastequeBuild dans Résolus
Je pense que c'est parce que c'est une liste essaye ça : set {_var::*} to file contents of "plugins\test.txt" loop {_var::*}: replace "mot exemple" with "deuxieme mot" in {_var::%loop-index%} set file contents of "plugins\test.txt" to {_var::*} -
DevSkript #51 - Liste des joueurs (MenuGUI)
Crazy a répondu à un(e) sujet de ConcombreGaming dans Tutoriels
J'ai fais un système de page (peut être qu'on peut mieux l'optimiser mais c'est un casse tête) Lien : https://skript-mc.fr/forum/threads/menu-gui-dynamique.10775/ Si tu as besoin d'aide tu peut me mp ;) -
Remplacer un mot dans un fichier du serveur
Crazy a répondu à un(e) question de PastequeBuild dans Résolus
Oui mais je pense que avec le "all" ça change rien x) je sais pas pk j'ai voulu le mettre :p Essaye ça : set {_var::*} to file contents of "plugins\test.txt" replace "mot exemple" with "deuxieme mot" in {_var::*} set file contents of "plugins\test.txt" to {_var::*} -
Est ce que il y a un 2 ème broadcast quand la victime meurt par chute/lave ?
-
Tu dois avoir un every 2 minutes dans un de tes skripts et qu'il essaye d'effectuer un truc sur un joueur déconnecté Regarde dans tout tes skripts
-
on damage: attacker isn't victim #On vérifie si l'attaquant n'est pas la victime (j'ai déjà eu un problème comme ça) {last.attacker::%victim%} isn't attacker's name set {last.attacker::%victim%} to attacker's name set {_now} to "%now%" set {last.attacker.now::%victim%} to {_now} wait 10 seconds #Delai {last.attacker.now::%victim%} is {_now} {last.attacker::%victim%} is attacker's name clear {last.attacker::%victim%} on death: victim is a player add 1 to {totaldeaths.%victim%} broadcast "%attacker%" if attacker isn't a player: broadcast "%{last.attacker::%victim%}%" if {last.attacker::%victim%} is set: add 1 to {totalkills.%{last.attacker::%victim%}%} add 1 to {killstreak.%{last.attacker::%victim%}%} if {killstreak.%{last.attacker::%victim%}%} is greater than {bestkillstreak.%{last.attacker::%victim%}%}: set {bestkillstreak.%{last.attacker::%victim%}%} to {killstreak.%{last.attacker::%victim%}%} Reprend ce code et dis moi ce que ça fais quand tu tues un joueur dans un 1VS1 et quand tu le tues mais qu'il meurt par dégât de chutes (ou autres). Normalement il doit y avoir 1 seul broadcast quand c'est un 1VS1 et c'est ton pseudo normalement (attacker) et dans le 1VS1 mais meurt par dégât de chutes (ou autres) ça doit afficher en premier <none> je pense et le deuxième ton pseudo (bien sûr il faut que les 10 secondes sont respectées)
-
Remplacer un mot dans un fichier du serveur
Crazy a répondu à un(e) question de PastequeBuild dans Résolus
Si tu enlèves le every et que tu le remplaces par all ça marche ? replace all "mot1" with "mot2" in file "plugins/fichier.txt" -
Tout simplement : remove all chest from player's inventory
-
Je viens de voir que je suis passer dans la catégorie "plus de messages" et "plus de points" dans les membres notables
-
Oui met je me rappelle plus trop et sur tel c'est galère donc je le ferais quand j'aurais mon pc
-
Je l'avais déjà fais dans un code tien normalement ça ça marche : if arg 1 is not "setcd": if difference between {antispam.annonce.%player%} and now is less than {cd.annonce}: set {_wait} to {cd.annonce} remove difference between {antispam.annonce.%player%} and now from {_wait} set {_wait} to "%{_wait}%" replace "second" with "seconde" in {_wait} replace "hour" with "heure" in {_wait} replace "day" with "jour" in {_wait} replace "and" with "et" in {_wait} message "{@logo} &cVous devez attendre &e&l%{_wait}% &cavant de refaire une annonce !"
-
Déjà un UP après 3 heures c'est pas très logique ça ... Je peut te le faire quand j'ai mon pc
-
Essaye ça mais je suis pas sur : if arg 1 is not "setcd": if difference between {antispam.annonce.%player%} and now is less than {cd.annonce}: set {_wait} to "%difference between now and {antispam.annonce.%player%}%" replace "second" with "seconde" in {_wait} replace "hour" with "heure" in {_wait} replace "day" with "jour" in {_wait} replace "and" with "et" in {_wait} message "{@logo} &cVous devez attendre &e&l%{_wait}% &cavant de refaire une annonce !"
-
Tien j'ai modifier le début de ton code : options: prefix1: &6[staff] prefix2: &3[ProtectoServ] command /setgrade <offline player> <text>: permission: setgrade.sk permission message: {@prefix2} &4You don't have permission to use this command! trigger: if arg 1 is not set: message "{@prefix2} &4Please specify the name of the player." else if arg 2 isn't set message "{@prefix2} &4Please specify the name of the rank." else: #Suite de ton code
-
Met un else if : else if {players.1::*} is set:
-
Une longue absence ? xD c'est que 1 jour :p et aussi met ton code dans les balises code Met ça avant la condition "if attacker isn't set" broadcast "%attacker%" et après la condition tu met : broadcast "%{last.attacker::%victim%}" Et tu es sur de taper le joueur 10 secondes avant sa mort ? Car sinon ça peut pas fonctionner ou alors tu modifies le temps dans le wait 10 seconds
-
Essaye ça : if arg 1 is not "setcd": if difference between {antispam.annonce.%player%} and now is less than {cd.annonce}: set {_wait} to "%difference between {antispam.annonce.%player%} and now%" replace "second" with "seconde" in {_wait} replace "hour" with "heure" in {_wait} replace "day" with "jour" in {_wait} replace "and" with "et" in {_wait} message "{@logo} &cVous devez attendre &e&l%{_wait}% &cavant de refaire une annonce !" J'ai fais la traduction fr en plus :p
-
Essaye ça : if arg 1 is "setcd": if player is op: if arg 2 is set: set {cd.annonce} to arg 2 minutes send "Cooldown défini à %arg 2% minutes" else: message "{@logo} &cDésolé, mais tu dois être &c&lOPERATEUR&c pour éxécuter cette commande !" Si ça marche pas essaye ce code la : if arg 1 is "setcd": if player is op: if arg 2 is set: set {cd.annonce} to "%arg 2% minutes" set {cd.annonce} to {cd.annonce} parsed as timespan send "Cooldown défini à %arg 2% minutes" else: message "{@logo} &cDésolé, mais tu dois être &c&lOPERATEUR&c pour éxécuter cette commande !"
-
Passe en résolu
-
Ou utilise les functions
-
on damage: attacker isn't victim #On vérifie si l'attaquant n'est pas la victime (j'ai déjà eu un problème comme ça) {last.attacker::%victim%} isn't attacker set {last.attacker::%victim%} to attacker wait 10 seconds #Delai {last.attacker::%victim%} is attacker clear {last.attacker::%victim%} on death: victim is a player add 1 to {totaldeaths.%victim%} if attacker isn't set: if {last.attacker::%victim%} is set: add 1 to {totalkills.%{last.attacker::%victim%}%} add 1 to {killstreak.%{last.attacker::%victim%}%} if {killstreak.%{last.attacker::%victim%}%} is greater than {bestkillstreak.%{last.attacker::%victim%}%}: set {bestkillstreak.%{last.attacker::%victim%}%} to {killstreak.%{last.attacker::%victim%}%} else: attacker is a player add 1 to {totalkills.%attacker%} add 1 to {killstreak.%attacker%} if {killstreak.%attacker%} is greater than {bestkillstreak.%attacker%}: set {bestkillstreak.%attacker%} to {killstreak.%attacker%} set {killstreak.%victim%} to 0 clear {last.attacker::%victim%} Ok essaye avec ce code. Si le joueur meurt et qu'un joueur la tapé dans les 10 secondes qui précèdent, il est considéré comme l'attacker Tu peut changer 10 secondes et mettre moins ou plus bien sur ;) PS: dis moi si il y a des erreurs