Jump to content

AlvesMTA

Members
  • Posts

    9
  • Joined

  • Last visited

Posts posted by AlvesMTA

  1. Como posso fazer para que caso a pessoa esteja com certa ElementData ele spawne em um lugar diferente de quem não tem essa ElementData?

     

    function entrarLocal(thePlayer)
    	if getElementType( thePlayer ) == "player" and not isPedInVehicle(thePlayer) then
    		if source == enterpvp then
    			setElementPosition(thePlayer, tps[aleatorio][1], tps[aleatorio][2], tps[aleatorio][3], tps[aleatorio][4] ) -- Posição de Entrada no interior
                setElementData(thePlayer, "pvpak", false)
    		end	
    	end
    end
    addEventHandler("onMarkerHit", getRootElement(), entrarLocal)
    
    function teste(source)
        local Akkkk = getElementData( source, "pvpak" )
    	if source and (Akkkk) then
    		setTimer(spawnPlayer, 7000, 1, source, 237.89525, 1396.99829, 10.58594, 0)
    	end
    end
    addEventHandler("onPlayerWasted", root, teste)

     

×
×
  • Create New...