Comme ceci ?
# ___ ___ ____________ __________ #
# | | | | | __________| | ________| #
# | \_/ | | | | | #
# | _ _ | | |__________ | | #
# | |\_/ | | |___________ | | | ____ #
# | | | | | | | | |__ | #
# | | | | __________| | | |______| | #
# |___| |___| |____________| |__________| #
# Skript De Message Private Par OmegaFX
# Les options:
options:
Chat_Format_Sender: &7(&bmoi&7 -> &b%arg 1%&7) &7%arg 2%
Chat_Format_Recive: &7(&b%sender%&7 -> &bmoi&7) &7%arg 2%
prefix: &7
# Premiere commande: /msg (/m, /mess, /tell, /t)
Command /msg [<player>] [<text>]:
aliases: /m, /mess, /tell, /t
trigger:
if arg 1 is not set:
message "{@prefix} Tu dois mettre un pseudo! /msg <Joueur> <Message>."
if arg 1 is set:
if arg 2 is not set:
message "{@prefix} Tu dois mettre un message! /msg <Joueur> <Message>."
if arg 2 is set:
send json of "{@Chat_Format_Sender}" tooltip "&bClique pour lui répondre" suggest "/msg %arg 1%" to player
send json of "{@Chat_Format_Recive}" tooltip "&bClique pour lui répondre" suggest "/msg %player%" to arg-1
play raw sound "note.pling" at player with pitch 1 volume 10
play raw sound "note.pling" at arg 1 with pitch 1 volume 10
set {rep.%arg 1%} to player
# Deuxieme commande: /r (/rep, /reponce)
command /r [<text>]:
aliases: /rep, /reponce
trigger:
if arg 1 is not set:
message "{@prefix} Tu dois mettre un message! /r <Message>."
if arg 1 is set:
if {rep.%player%} is set:
send json of "&7(&bmoi&7 -> &b%{rep.%player%}%&7) &7%arg 1%" tooltip "&bClique pour lui répondre" suggest "/msg %player%" to player
send json of "&7(&b%player%&7 -> &bmoi&7) &7%arg 1%" tooltip "&bClique pour lui répondre" suggest "/msg %arg 1%" to {rep.%player%}
play raw sound "note.pling" at player with pitch 1 volume 10
play raw sound "note.pling" at {rep.%player%} with pitch 1 volume 10
set {rep.%{rep.%player%}%} to player
if {rep.%player%} is not set:
message "{@prefix} Tu n'as personne a qui répondre!"
on quit:
delete {rep.%player%}