Aller au contenu

Item exécutant une commande


Messages recommandés

Posté(e)

Je voudrais que l'item " 4662 " et " 4664 " ouvrent un menu GUI où dedans, il y ai 4 items se nommant " Demande de Police ", " Demande de Médecin ", " Demande de Pompier " et " Demande de Taxi ".

 

Ces items exécuteront une commande en particulier :

Demande de Police : /p Police

Demande de Taxi : /ta Taxi

Demande de Pompier : /po Pompier

Demande de Médecin : /me Médecin

 

L'item " 4662 " et " 4664 " sont des items moddés (Flans Mod), Ipho** 4 et Ipho** 6.

Posté(e)

- Iphone 4 : https://prnt.sc/i0vb2m

- Iphone 6 : https://prnt.sc/i0vbgl

 

on click with 4662:
   wait 3 ticks
   open chest with 1 rows named "              &7Iphone &c4" to player
   format slot 1 of player with paper named "&cAppeler la police" to close then run [make player execute command "/p Police"]
   format slot 3 of player with paper named "&6Appeler un Taxi" to close then run [make player execute command " /ta Taxi"]
   format slot 5 of player with paper named "&bAppeler les Pompiers" to close then run [make player execute command "/po Pompier"]
   format slot 7 of player with paper named "&aAppeler un Médecin" to close then run [make player execute command "/me Médecin"]
   #Item entre les papiers ->
   format slot 0 of player with Red Stained Glass Pane named " " to close
   format slot 2 of player with Red Stained Glass Pane named " " to close
   format slot 4 of player with Red Stained Glass Pane named " " to close
   format slot 6 of player with Red Stained Glass Pane named " " to close
   format slot 8 of player with Red Stained Glass Pane named " " to close

on click with 4664:
   wait 3 ticks
   open chest with 1 rows named "              &7Iphone &66" to player
   format slot 1 of player with paper named "&cAppeler la police" to close then run [make player execute command "/p Police"]
   format slot 3 of player with paper named "&6Appeler un Taxi" to close then run [make player execute command " /ta Taxi"]
   format slot 5 of player with paper named "&bAppeler les Pompiers" to close then run [make player execute command "/po Pompier"]
   format slot 7 of player with paper named "&aAppeler un Médecin" to close then run [make player execute command "/me Médecin"]
   #Item entre les papiers ->
   format slot 0 of player with Yellow Stained Glass Pane named " " to close
   format slot 2 of player with Yellow Stained Glass Pane named " " to close
   format slot 4 of player with Yellow Stained Glass Pane named " " to close
   format slot 6 of player with Yellow Stained Glass Pane named " " to close
   format slot 8 of player with Yellow Stained Glass Pane named " " to close

 

PS : Vérifie que tu as l'addon SkQuery

Posté(e)
- Iphone 4 : https://prnt.sc/i0vb2m

- Iphone 6 : https://prnt.sc/i0vbgl

 

on click with 4662:
   wait 3 ticks
   open chest with 1 rows named "              &7Iphone &c4" to player
   format slot 1 of player with paper named "&cAppeler la police" to close then run [make player execute command "/p Police"]
   format slot 3 of player with paper named "&6Appeler un Taxi" to close then run [make player execute command " /ta Taxi"]
   format slot 5 of player with paper named "&bAppeler les Pompiers" to close then run [make player execute command "/po Pompier"]
   format slot 7 of player with paper named "&aAppeler un Médecin" to close then run [make player execute command "/me Médecin"]
   #Item entre les papiers ->
   format slot 0 of player with Red Stained Glass Pane named " " to close
   format slot 2 of player with Red Stained Glass Pane named " " to close
   format slot 4 of player with Red Stained Glass Pane named " " to close
   format slot 6 of player with Red Stained Glass Pane named " " to close
   format slot 8 of player with Red Stained Glass Pane named " " to close

on click with 4664:
   wait 3 ticks
   open chest with 1 rows named "              &7Iphone &66" to player
   format slot 1 of player with paper named "&cAppeler la police" to close then run [make player execute command "/p Police"]
   format slot 3 of player with paper named "&6Appeler un Taxi" to close then run [make player execute command " /ta Taxi"]
   format slot 5 of player with paper named "&bAppeler les Pompiers" to close then run [make player execute command "/po Pompier"]
   format slot 7 of player with paper named "&aAppeler un Médecin" to close then run [make player execute command "/me Médecin"]
   #Item entre les papiers ->
   format slot 0 of player with Yellow Stained Glass Pane named " " to close
   format slot 2 of player with Yellow Stained Glass Pane named " " to close
   format slot 4 of player with Yellow Stained Glass Pane named " " to close
   format slot 6 of player with Yellow Stained Glass Pane named " " to close
   format slot 8 of player with Yellow Stained Glass Pane named " " to close

 

PS : Vérifie que tu as l'addon SkQuery

 

Bonsoir,

J'ai bien SkQuery mais cela est un problème au niveau du Médecin et Taxi, voici un screen :

 

[ATTACH=full]7484[/ATTACH]

 

Cela affiche le Médecin en violet et bizarrement et la commande utilisée pour le Taxi est inconnue...

Je l'ai bien testé et la commande marche sans utiliser le téléphone.

 

Aussi, j'aimerais savoir comment faire pour un autre skript, as-tu un autre moyen de contact que sur le Forum ?

Posté(e)
Bonsoir,

J'ai bien SkQuery mais cela est un problème au niveau du Médecin et Taxi, voici un screen :

 

[ATTACH=full]7484[/ATTACH]

 

Cela affiche le Médecin en violet et bizarrement et la commande utilisée pour le Taxi est inconnue...

Je l'ai bien testé et la commande marche sans utiliser le téléphone.

 

Aussi, j'aimerais savoir comment faire pour un autre skript, as-tu un autre moyen de contact que sur le Forum ?

 

Ajoute moi sur Skype : lolBeachMc

×
×
  • 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.