Si ça peut t'aider, c'est pas trop ce que t'as fait, mais ça peut te donner un ordre d'idée :)
function delaytp(p: player , l: object):
send "%{essentials.prefix}% &3Téléportation dans 3 secondes." to {_p}
send "&3Ne bougez pas..." to {_p}
set {_locPlayerX1} to {_p}'s x-coordinate
set {_locPlayerZ1} to {_p}'s z-coordinate
set {_locPlayerY1} to {_p}'s y-coordinate
show 100 "portal" particles at location of {_p} for {_p} offset by 1, 1, 1
send "&33..." to {_p}
wait 20 tick
show 300 "portal" particles at location of {_p} for {_p} offset by 1, 1, 1
send "&32..." to {_p}
wait 20 tick
show 300 "portal" particles at location of {_p} for {_p} offset by 1, 1, 1
send "&31..." to {_p}
wait 20 tick
show 300 "portal" particles at location of {_p} for {_p} offset by 1, 1, 1
show 15 "lava" particles at location of {_p} for {_p} offset by 1, 0.1, 1
set {_locPlayerX2} to {_p}'s x-coordinate
set {_locPlayerZ2} to {_p}'s z-coordinate
set {_locPlayerY2} to {_p}'s y-coordinate
if {_locPlayerX1} is equal to {_locPlayerX2}:
if {_locPlayerZ1} is equal to {_locPlayerZ2}:
if {_locPlayerY1} is equal to {_locPlayerY2}:
set {tpback.%{_p}%} to location of {_p}
send "%{essentials.prefix}%&3 Vous avez été téléporté." to {_p}
teleport {_p} to {_l}
stop
send "%{essentials.prefix}% &cVous avez bougé. Téléportation annulée." to {_p}
PS : Appelle la fonction comme ceci : delaytp(joueur, variable_de_location)
PS2 : C'est pour le début, ton délai de tp ^^, pour la variable, fais comme on t'a dit au dessus ça fonctionne normalement ^^"