Neves Posted October 20, 2020 Share Posted October 20, 2020 Olá, estou tendo dificuldade em fazer esse script funcionar. Eu dei uma olhada na net e saiu esse script. local pos = { {2539.65234, -1641.96484, 1414.71558} } function PosicaoPlayer (thePlayer, command) local azar = math.random (#pos) local veh = getPedOccupiedVehicle(thePlayer) if (veh) then setElementPosition(veh,unpack (pos{azar})) else setElementPosition(thePlayer,unpack(pos{azar})) setElementPosition ( thePlayer, ) outputChatBox ('#000000[ #8b0000Teleport#000000 ]: #ffFFFF' .. getPlayerName(thePlayer) .. ' #bebebeFoi Foi para a Operação 01 #000000(#8b0000 /op1 #000000)', root, 255, 255, 255, true) end addCommandHandler ( "op1", PosicaoPlayer) Queria saber do por que de quando eu digitar op1 não ir para o local que eu indiquei. Link to comment
Administrators Tut Posted October 20, 2020 Administrators Share Posted October 20, 2020 Thread has been moved to the Portuguese language forum. For any further posting in this language, please use this forum. 1 Link to comment
Boechat Posted October 22, 2020 Share Posted October 22, 2020 Veja se funciona, só tirei uma linha que com certeza devia estar dando erro function PosicaoPlayer (thePlayer, command) local azar = math.random (#pos) local veh = getPedOccupiedVehicle(thePlayer) if (veh) then setElementPosition(veh,unpack (pos{azar})) else setElementPosition(thePlayer,unpack(pos{azar})) --setElementPosition ( thePlayer, ) não entendi essa linha ???? outputChatBox ('#000000[ #8b0000Teleport#000000 ]: #ffFFFF' .. getPlayerName(thePlayer) .. ' #bebebeFoi Foi para a Operação 01 #000000(#8b0000 /op1 #000000)', root, 255, 255, 255, true) end addCommandHandler ( "op1", PosicaoPlayer) Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now