Jump to content

Interior


Recommended Posts

Posted

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

 

Posted (edited)

Replace 'lv' with player in setTimer function, also do it for source as well.

Edited by DNL291

Please do not PM me with scripting related question nor support, use the forums instead.

Posted

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

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...