Okey et merci pour l'aide que tu ma apporté .
Pour ce tout ce qui veulent le skript :
[spoiler=Skript]
command /setchat <integer> <text>:
trigger:
set {chat.%arg 2%.location} to player's location
set {chat.%arg 2%.ray} to arg 1
{areas::*} where [arg 2 is text input] isn't set
add arg 2 to {areas::*}
chat:
loop {areas::*}:
distance between {chat.%loop-value%.location} and player <= {chat.%loop-value%.ray}
set {_zone} to loop-value
exit loop
{_zone} is set
cancel event
send "[Zone %{_zone}%] %player% : %message%" to players where [distance between {chat.%{_zone}%.location} and player input <= {chat.%{_zone}%.ray}]
# Utilisation : /SetChat <Rayon> <Nom de la zone>
#Pour lister les zones
command /zones:
trigger:
if {areas::*} is set:
loop {areas::*}:
send "%loop-value% &7(Rayon de :%{chat.%loop-value%.ray}% au coordonée :%{chat.%loop-value%.location}%."
else:
send "&cAucune zone défini."
command /removechat <text>:
trigger:
loop {areas::*}:
if loop-value is arg 1:
set {_t} to true
if {_t} is set:
clear {chat.%arg 1%.location}
clear {chat.%arg 1%.ray}
remove arg 1 from {areas::*}
send "&6Vous avez bien remove &2%arg 1% &6des zones."
else:
send "&6La zone &2%arg 1% &6n'éxiste pas."
___
Grand merci a : LeCraftDeOuf , PsYZiiK , ShiRzoOa , Stevie78 et bien sur a
Blackmine57 qui ma mis ma premiere sanction pour double poste x)
ps: je trouve ce skript original :p