- 
                Posts611
- 
                Joined
- 
                Last visited
Everything posted by AlvareZ_
- 
	a ver esto. Marker = createMarker ( 1294.7626953125, -1379.625, 13.486034584045, "corona",1.5,90,253,70,163) function check (thePlayer, source) if ( isElementWithinMarker( thePlayer, Marker ) ) then outputChatBox ("Preciona Z para comprar el armor!", source, 8, 224, 13 ) local money = getPlayerMoney(thePlayer) if (money > 1000) then setPedArmor ( thePlayer, 10 ) else outputChatBox ("No tienes Dinero para comprar Armor!", source, 8, 224, 13 ) end end end bindKey("z", "down", check)
- 
	lol no es debajo del bindKey ponlo arriba end end end
- 
	En resume. Si no te anda agregale un end creo e.é function check (thePlayer) if ( isElementWithinMarker( thePlayer, Marker ) ) then outputChatBox ("Preciona Z para comprar el armor!", thePlayer, 8, 224, 13 ) local money = getPlayerMoney(thePlayer) if (money > 1000) then setPlayerArmor ( thePlayer, 20 ) else outputChatBox ("No tienes Dinero para comprar Armor!", thePlayer, 8, 224, 13 ) end end bindKey("z", "down", check)
- 
	Seria algo Así no se local Marker = createMarker ( 1294.7626953125, -1379.625, 13.486034584045, "corona",1.5,90,253,70,163) bindKey("z","down", function () if isElementWithinMarker(thePlayer,Marker) then outputChatBox ("Preciona Z para comprar el armor!", thePlayer, 8, 224, 13 ) local money = getPlayerMoney(thePlayer) if (money > 1000) then setPlayerArmor ( thePlayer, 20 ) else outputChatBox ("No tienes Dinero para comprar Armor!", thePlayer, 8, 224, 13 ) end end end )
- 
	Usa lo que te dije, No sirvio ? Julian.. ZombieVille ._.
- 
	Ham... , te anda como lo deje ciber?
- 
	A no ps, Intenta esto si no me rindo ._. local hillArea = createColCuboid ( 1187.7066650391, -1409.201171875, 12.010873603821, 150, 122, 35 ) local hillRadar = createRadarArea ( 1187.7066650391, -1409.201171875, 150, 122, 117, 233, 229, 220 ) function hill_Enter ( thePlayer, matchingDimension ) givePlayerMoney ( thePlayer, 1000 ) outputChatBox( getPlayerName(thePlayer) .. " Entro a zona de ganar Dinero!", getRootElement(), 255, 255, 109 ) setRadarAreaFlashing ( hillRadar, true ) end addEventHandler ( "onColShapeHit", hillArea, hill_Enter ) setTimer ( hill_Enter, 1000, 1 ) function hill_Leave ( thePlayer, matchingDimention ) givePlayerMoney ( thePlayer, 0 ) end addEventHandler ( "onColShapeLeave", hillArea, hill_Enter )
- 
	Como dice ciber, Te quedaria así Intenta: local hillArea = createColCuboid ( 1187.7066650391, -1409.201171875, 12.010873603821, 150, 122, 35 ) local hillRadar = createRadarArea ( 1187.7066650391, -1409.201171875, 150, 122, 117, 233, 229, 220 ) function hill_Enter ( thePlayer, matchingDimension ) if getElementType ( thePlayer ) == "player" then givePlayerMoney ( thePlayer, 1000 ) outputChatBox( getPlayerName(thePlayer) .. " Entro a zona de ganar Dinero!", getRootElement(), 255, 255, 109 ) setRadarAreaFlashing ( hillRadar, true ) end end addEventHandler ( "onColShapeHit", hillArea, hill_Enter ) setTimer ( hill_Enter, 1000, 1 ) function hill_Leave ( thePlayer, matchingDimention ) givePlayerMoney ( thePlayer, 0 ) end addEventHandler ( "onColShapeLeave", hillArea, hill_Enter )
- 
	Borre el getElementType creo que no es necesario intenta nuevamente local hillArea = createColCuboid ( 1187.7066650391, -1409.201171875, 12.010873603821, 150, 122, 35 ) local hillRadar = createRadarArea ( 1187.7066650391, -1409.201171875, 150, 122, 117, 233, 229, 220 ) function hill_Enter ( thePlayer, matchingDimension ) givePlayerMoney ( thePlayer, 1000 ) outputChatBox( getPlayerName(thePlayer) .. " Entro a zona de ganar Dinero!", getRootElement(), 255, 255, 109 ) setRadarAreaFlashing ( hillRadar, true ) end end addEventHandler ( "onColShapeHit", hillArea, hill_Enter ) setTimer ( hill_Enter, 1000, 1 ) function hill_Leave ( thePlayer, matchingDimention ) givePlayerMoney ( thePlayer, 0 ) end addEventHandler ( "onColShapeLeave", hillArea, hill_Enter )
- 
	Intenta esto: local hillArea = createColCuboid ( 1187.7066650391, -1409.201171875, 12.010873603821, 150, 122, 35 ) local hillRadar = createRadarArea ( 1187.7066650391, -1409.201171875, 150, 122, 117, 233, 229, 220 ) function hill_Enter ( thePlayer, matchingDimension ) if (getElementType(thePlayer) == "player") then givePlayerMoney ( thePlayer, 1000 ) outputChatBox( getPlayerName(thePlayer) .. " Entro a zona de ganar Dinero!", getRootElement(), 255, 255, 109 ) setRadarAreaFlashing ( hillRadar, true ) end end addEventHandler ( "onColShapeHit", hillArea, hill_Enter ) setTimer ( hill_Enter, 1000, 1 ) function hill_Leave ( thePlayer, matchingDimention ) givePlayerMoney ( thePlayer, 0 ) end addEventHandler ( "onColShapeLeave", hillArea, hill_Enter )
- 
	Se ve mas bonito el mio, Jum ><
- 
	Creo que es .. local hillArea = createColCuboid ( 1187.7066650391, -1409.201171875, 12.010873603821, 150, 122, 35 ) local hillRadar = createRadarArea ( 1187.7066650391, -1409.201171875, 150, 122, 117, 233, 229, 220 ) function hill_Enter ( thePlayer, matchingDimension ) givePlayerMoney ( thePlayer, 1000 ) if (getElementType(thePlayer) == "player") then outputChatBox( getPlayerName(thePlayer) .. " Entro a zona de ganar Dinero!", getRootElement(), 255, 255, 109 ) setRadarAreaFlashing ( hillRadar, true ) end end addEventHandler ( "onColShapeHit", hillArea, hill_Enter ) setTimer ( hill_Enter, 1000, 1 ) function hill_Leave ( thePlayer, matchingDimention ) givePlayerMoney ( thePlayer, 0 ) end addEventHandler ( "onColShapeLeave", hillArea, hill_Enter )
- 
	Creo que seria así: (No estoy Seguro) function dependeText() dxDrawText( "Hola!", sx/3.5, sy/3.5, 1020, 424, tocolor(255, 0, 0, 255), 1, "bankgothic", "left", "center", false, false, true, false, false) end function encenderTexto() addEventHandler("onClientRender", root, dependeText) end function apagarTexto() removeEventHandler("onClientRender", root, dependeText) end function decir() setTimer(encenderTexto, 6000, 1) setTimer(apagarTexto, 12000, 1) addCommandHandler ( "drawtext", decir )
- 
	Eso no tiene nada de sentido.
- 
	Listo, Muchas Gracias. Seria igual con el nivel no ? getElementData ( localPlayer, "level" )
- 
	La verdad agrege eso que me dio Plate, Pero no agrego la columna a el scoreboard y me ando
- 
	setTimer dxDrawText addCommandHandler
- 
	Intente las dos y sigue Igual.
- 
	A que te refieres con "global" ?
- 
	No se por que no me quiere agarrar, en el debug me dice: Attempt to contatemate global 'Exp' (a bpolean value) Client-Side: Exp = "-" function hideIt(myExp) Exp = myExp end addEvent("watafaka",true) addEventHandler("watafaka",root,hideIt) addEventHandler("onClientRender", root, function() dxDrawText("#878787Exp : #FF7700"..Exp, 0, 195, 183, 351, tocolor(0, 255, 251, 255), 1,"pricedown", "left", "center", false, false, true, true, false) end ) Server-Side: function onZombieWasted(_,killer) if (killer) then if (getElementType(killer) == "player") and (getElementType(source) == "ped") then if (getElementData(source, "zombie") == true) then local account = getPlayerAccount(killer) if account and not isGuestAccount(account) then local myExp = exports.exp_system:getPlayerLevel ( thePlayer ) triggerClientEvent(killer,"watafaka",killer,myExp) end end end end end addEventHandler("onPedWasted", root, onZombieWasted)
- 
	Ya lo solucione, Muchas gracias a los dos

 
        