• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Teleport all player

garvarN

Mapper aka Configurer
Joined
May 29, 2009
Messages
35
Reaction score
0
Location
Sweden, Huddinge
Hello!

I do need help with following.
You write /tp and then ALL players will be teleported to

X = 0 Y = 0 Z = 0
_____________________________
Thx
 
Code:
function onSay(cid, words, param, channel)
	for _, player in ipairs(getPlayersOnline()) do
		doTeleportThing(player, {x = , y = , z =})
	end
	return true
end
 
Help plxxxxxxxxxxxxxxxxxxxxxxxxx :peace::D

[11/12/2009 14:28:28] [Warning - Event::loadScript] Cannot load script (data/talkactions/scripts/3n3.lua)
[11/12/2009 14:28:28] data/talkactions/scripts/3n3.lua:8: '<eof>' expected near 'end'

PHP:
function onSay(cid, words, param, channel)
	for _, player in ipairs(getPlayersOnline()) do
		doTeleportThing(player, {x = 1007, y = 1134, z = 7})
  end
  doBroadcastMessage("3n3 plugin is being loaded, chose your team members.")
return TRUE
end
end
end
 
Code:
function onSay(cid, words, param, channel)
	for _, player in ipairs(getPlayersOnline()) do
		doTeleportThing(player, {x = 1007, y = 1134, z = 7})
	end
	doBroadcastMessage("3n3 plugin is being loaded, chose your team members.")
	return true
end
 
If you will use return true the message /tp won't appear above character, if false - message will appear.
 
Now its hard.

This is what i need help with.

3 players stand on 3 different sqm = team 1
3 players stand on 3 different sqm = team 2

When u use the switch, each team will be teleported to:

team 1 = x, 1, y, 1, z, 1
team 2 = x, 1, y, 1, z, 1

Thx in advance
 
Last edited:
Back
Top