darcioantonio
www.adventurerpg.com.br
- Joined
- Jul 30, 2013
- Messages
- 165
- Solutions
- 1
- Reaction score
- 4
- Location
- Brasil
- Twitch
- darcio_
- YouTube
- UCEXCOEw_dYchojHNz
I used this script on my version 8.60 server,
I need to move it to TFS 1.3 or adapt it, I'm having difficulties can someone help me?
It represents a script if it checks if there is a player or more in a certain area X, Y if there is another one please get me!
I need to move it to TFS 1.3 or adapt it, I'm having difficulties can someone help me?
It represents a script if it checks if there is a player or more in a certain area X, Y if there is another one please get me!
Lua:
if #getPlayersInArea({x = 577, y = 448, z = 10}, {x = 579, y = 457, z = 10}) >= 1 then
doPlayerSendTextMessage(cid,19,"Existe um jogador dentro da arena aguarde.")
return false
end
function getPlayersInArea(fromPosition, toPosition)
local players = {}
for _, pid in ipairs(getPlayersOnline()) do
if isInRange(getPlayerPosition(pid), fromPosition, toPosition) then
table.insert(players, pid)
end
end
return players
end