rogerioexper Posted September 20, 2016 Share Posted September 20, 2016 good I did woe traffic command in the favela to server rpg but wanted something more complex stand at some marker and making money if you can help me thank you thank you local Exitdoorrob1 = createMarker(2607.2707519531, -968.03039550781, 81.985939025879, "arrow", 1.5, 255, 255, 0, 255) setElementInterior(Exitdoorrob1, 6) setElementDimension(Exitdoorrob1, 1) local Doorentryrob1 = createMarker(2607.2707519531, -968.03039550781, 81.985939025879, "arrow", 1.5, 255, 255, 0, 255) createBlipAttachedTo(Doorentryrob1, 59, 2, 0, 255, 0, 0, 0, 7000) local robmarker1 = createMarker(2607.2707519531, -968.03039550781, 81.985939025879, "cylinder", 1.2, 255, 10, 10, 255) setElementInterior(robmarker1, 6) setElementDimension(robmarker1, 1) addEventHandler("onPlayerJoin", root, whenJoin) duty1 = function(l_2_0, l_2_1) if isElementWithinMarker(l_2_0, robmarker1) then setPlayerWantedLevel(l_2_0, 6) removeCommandHandler ( "traficar" ) triggerClientEvent(root, "playTheSound", root, l_2_0) outputChatBox("*Você vai Começar a Traficar No Morro Fique atento...", l_2_0, 0, 255, 0) outputChatBox("#FFFF00[Aviso]: #FFFFFFO Jogador " .. getPlayerName(l_2_0) .. "#FFFF00 Esta Traficando na favela de los Santos#FFFF00", root, 255, 255, 255, true) setElementPosition(robmarker1, 2607.2707519531, -968.03039550781, 81.985939025879) setMarkerSize(Exitdoorrob1, 0) local blip1 = createBlipAttachedTo(Doorentryrob1, 23, 2, 0, 255, 0, 0, 0, 7000) setTimer(triggerClientEvent, 21000, 1, root, "playTheSound", root, l_2_0) setTimer(triggerClientEvent, 42000, 1, root, "playTheSound", root, l_2_0) setTimer(triggerClientEvent, 63000, 1, root, "playTheSound", root, l_2_0) setTimer(setElementPosition, 200000, 1, robmarker1, 2607.2707519531, -968.03039550781, 81.985939025879) setTimer(setMarkerSize, 40000, 1, Exitdoorrob1, 1.5) setTimer(givePlayerMoney, 40000, 1, l_2_0, 3000) setTimer(destroyElement, 120000, 1, blip1) setTimer(destroy, 300000, 1, blip1) else outputChatBox("", source, 255, 0, 0) end end addCommandHandler("traficar", duty1) addEventHandler("onMarkerHit", getRootElement(), Exitdrob1) Doorerob1 = function(l_4_0) if source == Doorentryrob1 and getElementType(l_4_0) == "player" then fadeCamera(l_4_0, false, 1, 0, 0, 0) setTimer(fadeCamera, 1000, 1, l_4_0, true, 1) setTimer(setElementPosition, 1000, 1, l_4_0, 2607.2707519531, -968.03039550781, 81.985939025879) setTimer(setElementInterior, 1000, 1, l_4_0, 2607.2707519531, -968.03039550781, 81.985939025879) setTimer(setElementDimension, 1000, 1, l_4_0, 1) setTimer(outputChatBox, 2000, 1, "*Digite /traficar pra começar.", l_4_0, 0, 255, 255) end end function destroy() addCommandHandler("traficar", duty1) end Link to comment
GTX Posted September 20, 2016 Share Posted September 20, 2016 You made? Then why do I see variables from luadec? (l_2_0 etc) Make your own script. 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