Aller au contenu
  • 0

Si l'équipe des 2 joueur n'est pas mis, alors...


Question

Posté(e) (modifié)

Bonjour !

Encore un problème x)

Donc mon problème d'aujourd'hui est que j'ai un problème pour set le joueur si il n'a pas d'équipe set

Skript: 2.2

Addons: Tout les addons qu'il faut pour cela

Je vous drop TOUT mon code:

P.S: Des fois ça marche mais il ne se téléporte pas en même temps.

Citation

loop all players:
	if {team.%loop-player%} is not set:
		if size of {teambleu::*} > 0:
			stop
		else:
			set {team.%loop-player%} to "bleu"
			add loop-player to {teambleu::*}
			teleport loop-player to {spawnbleu}
			set slot 0 of loop-player to iron sword of knockback 2 and sharpness 1
			set slot 1 of loop-player to diamond pickaxe of efficiency 3
			set slot 2 of loop-player to 64 golden apple
			set slot 3 of loop-player to 64 blue clay
			set slot 4 of loop-player to 64 blue clay
			set slot 5 of loop-player to 64 blue clay
			set slot 6 of loop-player to 64 blue clay
			set slot 7 of loop-player to 64 blue clay
			set slot 8 of loop-player to 64 blue clay
			equip loop-player with all leather armour  
			dye loop-player's helmet blue
			dye loop-player's chestplate blue
			dye loop-player's legging blue
			dye loop-player's boots blue
			set loop-player tab name to "&9%loop-player%"
			set loop-player's tag to "&9Bleu "
			wait 1 tick
			set loop-player's gamemode to survival
			set {antimove} to true
			play raw sound "note.pling" at loop-player with pitch 1 volume 0.5
			wait 1 second
			send loop-player title "&a2"
			play raw sound "note.pling" at loop-player with pitch 1 volume 0.5
			wait 1 second
			send loop-player title "&a1"
			play raw sound "note.pling" at loop-player with pitch 1 volume 0.5
			wait 1 second
			send loop-player title "&eGO !"
			play raw sound "note.pling" at loop-player with pitch 8 volume 0.5
			delete {antimove}
		if size of {teamrouge::*} > 0:
			set {team.%loop-player%} to "bleu"
			add loop-player to {teambleu::*}
			teleport loop-player to {spawnbleu}
			set slot 0 of loop-player to iron sword of knockback 2 and sharpness 1
			set slot 1 of loop-player to diamond pickaxe of efficiency 3
			set slot 2 of loop-player to 64 golden apple
			set slot 3 of loop-player to 64 blue clay
			set slot 4 of loop-player to 64 blue clay
			set slot 5 of loop-player to 64 blue clay
			set slot 6 of loop-player to 64 blue clay
			set slot 7 of loop-player to 64 blue clay
			set slot 8 of loop-player to 64 blue clay
			equip loop-player with all leather armour  
			dye loop-player's helmet blue
			dye loop-player's chestplate blue
			dye loop-player's legging blue
			dye loop-player's boots blue
			set loop-player tab name to "&9%loop-player%"
			set loop-player's tag to "&9Bleu "
			wait 1 tick
			set loop-player's gamemode to survival
			set {antimove} to true
			play raw sound "note.pling" at loop-player with pitch 1 volume 0.5
			wait 1 second
			send loop-player title "&a2"
			play raw sound "note.pling" at loop-player with pitch 1 volume 0.5
			wait 1 second
			send loop-player title "&a1"
			play raw sound "note.pling" at loop-player with pitch 1 volume 0.5
			wait 1 second
			send loop-player title "&eGO !"
			play raw sound "note.pling" at loop-player with pitch 8 volume 0.5
			delete {antimove}
		else:
			if {team.%loop-player%} is "bleu":
				send ""
			else:
				set {team.%loop-player%} to "rouge"
				add loop-player to {teamrouge::*}
				teleport loop-player to {spawnrouge}
				set slot 0 of loop-player to iron sword of knockback 2 and sharpness 1
				set slot 1 of loop-player to diamond pickaxe of efficiency 3
				set slot 2 of loop-player to 64 golden apple
				set slot 3 of loop-player to 64 red clay
				set slot 4 of loop-player to 64 red clay
				set slot 5 of loop-player to 64 red clay
				set slot 6 of loop-player to 64 red clay
				set slot 7 of loop-player to 64 red clay
				set slot 8 of loop-player to 64 red clay
				equip loop-player with all leather armour  
				dye loop-player's helmet red
				dye loop-player's chestplate red
				dye loop-player's legging red
				dye loop-player's boots red
				set loop-player tab name to "&c%loop-player%"
				set loop-player's tag to "&cRouge "
				wait 1 tick
				set loop-player's gamemode to survival
				set {antimove} to true
				play raw sound "note.pling" at loop-player with pitch 1 volume 0.5
				wait 1 second
				send loop-player title "&a2"
				play raw sound "note.pling" at loop-player with pitch 1 volume 0.5
				wait 1 second
				send loop-player title "&a1"
				play raw sound "note.pling" at loop-player with pitch 1 volume 0.5
				wait 1 second
				send loop-player title "&eGO !"
				play raw sound "note.pling" at loop-player with pitch 8 volume 0.5
				delete {antimove}
			else:
				if {team.%loop-player%} is "bleu":
					teleport loop-player to {spawnbleu}
					set slot 0 of loop-player to iron sword of knockback 2 and sharpness 1
					set slot 1 of loop-player to diamond pickaxe of efficiency 3
					set slot 2 of loop-player to 64 golden apple
					set slot 3 of loop-player to 64 blue clay
					set slot 4 of loop-player to 64 blue clay
					set slot 5 of loop-player to 64 blue clay
					set slot 6 of loop-player to 64 blue clay
					set slot 7 of loop-player to 64 blue clay
					set slot 8 of loop-player to 64 blue clay
					equip loop-player with all leather armour  
					dye loop-player's helmet blue
					dye loop-player's chestplate blue
					dye loop-player's legging blue
					dye loop-player's boots blue
					set loop-player tab name to "&9%loop-player%"
					set loop-player's tag to "&9Bleu "
					wait 1 tick
					set loop-player's gamemode to survival
					set {antimove} to true
					send loop-player title "&a3"
					play raw sound "note.pling" at loop-player with pitch 1 volume 0.5
					wait 1 second
					send loop-player title "&a2"
					play raw sound "note.pling" at loop-player with pitch 1 volume 0.5
					wait 1 second
					send loop-player title "&a1"
					play raw sound "note.pling" at loop-player with pitch 1 volume 0.5
					wait 1 second
					send loop-player title "&eGO !"
					play raw sound "note.pling" at loop-player with pitch 8 volume 0.5
					delete {antimove}
				if {team.%loop-player%} is "rouge":
					teleport loop-player to {spawnrouge}
					set slot 0 of loop-player to iron sword of knockback 2 and sharpness 1
					set slot 1 of loop-player to diamond pickaxe of efficiency 3
					set slot 2 of loop-player to 64 golden apple
					set slot 3 of loop-player to 64 red clay
					set slot 4 of loop-player to 64 red clay
					set slot 5 of loop-player to 64 red clay
					set slot 6 of loop-player to 64 red clay
					set slot 7 of loop-player to 64 red clay
					set slot 8 of loop-player to 64 red clay
					equip loop-player with all leather armour  
					dye loop-player's helmet red
					dye loop-player's chestplate red
					dye loop-player's legging red
					dye loop-player's boots red
					set loop-player tab name to "&c%loop-player%"
					set loop-player's tag to "&cRouge "
					wait 1 tick
					set loop-player's gamemode to survival
					set {antimove} to true
					send loop-player title "&a3"
					play raw sound "note.pling" at loop-player with pitch 1 volume 0.5
					wait 1 second
					send loop-player title "&a2"
					play raw sound "note.pling" at loop-player with pitch 1 volume 0.5
					wait 1 second
					send loop-player title "&a1"
					play raw sound "note.pling" at loop-player with pitch 1 volume 0.5
					wait 1 second
					send loop-player title "&eGO !"
					play raw sound "note.pling" at loop-player with pitch 8 volume 0.5
					delete {antimove}

 

 

Modifié par LOUDO
Signalement modérateur

4 réponses à cette question

Messages recommandés

  • 0
Posté(e)

Re,

Commente ton code, ce sera plus simple pour tout le monde y compris pour toi. Souvent en commentant mon code c'est là que je trouve des erreurs, des modifs à faire ...

Cordialement,

B

Invité
Ce sujet ne peut plus recevoir de nouvelles réponses.
×
×
  • 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.