Jump to content

Interior


Recommended Posts


Sorry, the wrong English is that I'm from Brazil.
o I'm doing a script and I want to do that when I do this command on the marker it teleport pro Interior 0 that's the normal world more will not it can help me
Quote

function lv(player,thePlayer)
    if isElementWithinMarker(player, Saida) then
        if getPlayerMoney(player) >= 5000 then
            takePlayerMoney(player, 5000)
            setTimer(setElementInterior,100,1,lv,0,1679.1728515625, 1501.638671875, 10.769113540649) 
            outputChatBox ( "( #00ff00INFO#ffffff ) #ffff00Obrigado Por Usar A UBI Bom Dia", source, 255, 255, 255, true )
           else 
               outputChatBox ( "( #00ff00INFO#ffffff ) #ffff00Você não tem dinheiro Suficiente", source, 255, 255, 255, true )
        end
    end
end
addCommandHandler("comprar",lv)

 

 

You do not have to have the team so I want you to teleport

 

Link to comment

Try:

function lv (thePlayer, cmd)
	if isElementWithinMarker (thePlayer, Saida) then
		if getPlayerMoney (thePlayer) >= 5000 then
			takePlayerMoney (thePlayer, 5000)
			theTimer = setTimer (function ()
				setElementInterior (thePlayer, 0, 1679.1728515625, 1501.638671875, 10.769113540649) 
				outputChatBox ("( #00ff00INFO#ffffff ) #ffff00Obrigado Por Usar A UBI Bom Dia", thePlayer, 255, 255, 255, true)
			end, 100, 1)
		else 
			outputChatBox "( #00ff00INFO#ffffff ) #ffff00Você não tem dinheiro Suficiente", thePlayer, 255, 255, 255, true)
		end
	end
end
addCommandHandler ("comprar", lv)

@zThyPvpTK

Link to comment

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...