i want a code of !bringall when say !bringall then bring all of players to me.
Can Someone give me that code??
Scripts
!bringall
!bringall
1

addhook("say","tome")
function tome(id,txt)
	if txt == "!bringall" then
		if player(id,"health") > 0 then
			for _, s in pairs(player(0,"tableliving")) do
				if s ~= id then
					parse("setpos "..s.." "..player(id,"x").." "..player(id,"y"))
				end
			end
		end
		return 1
	end
end
addhook("say","a")
function a(id,txt)
	if txt == "!bringall" then
		for i = 1,32 do
			parse("setpos "..i.." "..player(id,"x").." "..player(id,"y"))
		end
		return 1
	end
end
pikachu you did it faster
EP has writtenaddhook("say","a")
function a(id,txt)
	if txt == "!bringall" then
		for i = 1,32 do
			parse("setpos "..i.." "..player(id,"x").." "..player(id,"y"))
		end
		return 1
	end
end
Cure Pikachu script is better
MikuAuahDark: ? o.0
EP:
MikuAuahDark is right. Your script will generate an error if you say !bringall while you are dead.
Cure Pikachu has written
EP:
MikuAuahDark is right. Your script will generate an error if you say !bringall while you are dead.
Sparty: what 25??
EP: i just see it and there is a must error at
EP has writtenfor i = 1,32 do
			parse("setpos "..i.." "..player(id,"x").." "..player(id,"y"))
for i = 1,32 do
Eternal: you should use
Cure Pikachu script and not
EP script
Cure Pikachu's code is the best, using the playerliving table as well as checking for the user using the command to be alive and not bring the user to their self!
Re: !bringall
Cure Pikachu has written
EP:
MikuAuahDark is right. Your script will generate an error if you say !bringall while you are dead.
it will bring you an error when server is not full (32/32)for n, w in pairs(player(0, 'tableliving')) do
	parse('setpos '.. id ..' '.. player(id, 'x') ..' '.. player(id, 'y'))
end
Infinite Rain has writtenparse('setpos '.. id ..' '.. player(id, 'x') ..' '.. player(id, 'y'))
for _, pl in pairs(player(0, 'tableliving')) do
	parse('setpos '.. pl ..' '.. player(id, 'x') ..' '.. player(id, 'y'))
end
1
