Jump to content

marker nao reinicia


Recommended Posts

Posted (edited)
quando digito /trabalhar inicia os marker quando inicio funçao do marker de trabalho ex: /soldar funciona normalmente mas quando eu digito /sairemprego e novamente volto ao local do /trabalhar o marker nao se inicia mais 

function Soldadortrabalhar ( source, cmd )
if not isElementWithinMarker(source, Markersoldador) then return end
if getElementData(source, "soldador", true) then
outputChatBox("#00FA9AVoçe ja esta trabalhando",source,255,255,255,true)
else
outputChatBox("#00FA9AVoçe iniciou o trabalho de soldador",source,255,255,255,true)
setElementData(source, "soldador", true)
setPedSkin(source, 45)

setElementVisibleTo(criartrampo, source, true)
setElementVisibleTo(criartrampo2, source, true)
	
                   setTimer( function ()
                        triggerEvent(eventorestart, root)
                end, 1000, 1)
				 end 
				  end

addCommandHandler("trabalhar", Soldadortrabalhar)





function Sair ( source )
	if getElementData(source, "soldador") == true then
		setElementData(source, "soldador", false)
		setPedSkin(source, 0)
		
setElementVisibleTo(criartrampo, source, false)
setElementVisibleTo(criartrampo2, source, false)
		outputChatBox("#00FA9AVoce saiu do emprego de soldador",source,255,255,255,true)
	else
		setTimer( function ()
			triggerEvent(eventorestart, root)
		end, 1000, 1)
	end 
end
addCommandHandler("sairemprego", Sair)
Spoiler

 

 


Edited by magicplayerc
  • Other Languages Moderators
Posted

Favor não fazer spam de tópicos, mantenha-se no tópico anterior: 

 

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