Jump to content

Ayuda


JesusAliso

Recommended Posts

  • Replies 74
  • Created
  • Last Reply

Top Posters In This Topic

Posted

No te sale el outputChatBox porque solo se va ejecutar si presionas Z. Prueba asi:

Marker = createMarker ( 1294.7626953125, -1379.625, 13.486034584045, "corona",1.5,90,253,70,163) 
  
function check (thePlayer, source) 
   if ( isElementWithinMarker( thePlayer, Marker ) ) then 
        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(thePlayer, "z", "down", check) 
  
function decir(hitElement) 
outputChatBox ("Preciona Z para comprar el armor!", hitElement, 8, 224, 13 ) 
end 
addEventHandler("onMarkerHit", Marker, decir) 
  

State: Inactive

Posted
   Marker = createMarker ( 1294.7626953125, -1379.625, 13.486034584045, "corona",1.5,90,253,70,163) 
addEventHandler('onMarkerHit', Marker, 
    function (hitElement) 
    if (getElementType(hitElement) == 'player' ) then 
    if (getPlayerMoney(hitElement) >= 1000 ) then 
     setPedArmor ( hitElement, 10 ) 
     else 
     outputChatBox ("No tienes Dinero para comprar Armor!", hitElement, 8, 224, 13 ) 
     end 
  end 
 end 
) 

My ingame nickname : Ops!

-DeathMatch GameMode By Ops! : 5%

Posted

Les doy gracias a todos aquellos que me ayudaron, SHADOW y gracias tu script si funciono aun que no sea con un bind pero gracias. Me podrías decir por que nunca funciono el bindKey?

Posted

el bindkey lo tenes que poner dentro del script del marker creo

Visita Full GameZ DayZ Mod

Server IP: mtasa://158.69.125.144:29015

Posted
Marker = createMarker ( 1294.7626953125, -1379.625, 13.486034584045, "corona", 1.5, 90, 253, 70, 163 ) 
  
function check ( thePlayer ) 
   if ( isElementWithinMarker ( thePlayer, Marker ) ) then 
        local money = getPlayerMoney ( thePlayer ) 
        if ( money >= 1000 ) then 
            setPedArmor ( thePlayer, 10 ) 
        else 
            outputChatBox ( "No tienes Dinero para comprar Armor!", thePlayer, 8, 224, 13 ) 
        end 
    end 
end 
  
function decir ( hitElement ) 
    if ( getElementType ( hitElement ) == "player" ) then 
        if ( not isPedInVehicle ( hitElement ) ) then 
            if ( eventName == "onMarkerHit" ) then 
                outputChatBox ("Preciona Z para comprar el armor!", hitElement, 8, 224, 13 ) 
                bindKey ( hitElement, "z", "down", check ) 
            else 
                unbindKey ( hitElement, "z", "down", check ) 
            end 
        end 
    end 
end 
addEventHandler ( "onMarkerHit", Marker, decir ) 
addEventHandler ( "onMarkerLeave", Marker, decir ) 

San Andreas Utopia RPG (SAUR) Owner & Developer.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

Posted

Aun que creo que todos pensamos y intentamos y todos intentaron muchas veces, nunca lo haría solo ese script Jejejeje...

Gracias a Todos los que me ayudaron también a ti Solid Gracias :)

Posted (edited)
Aun que creo que todos pensamos y intentamos y todos intentaron muchas veces, nunca lo haría solo ese script Jejejeje...

Gracias a Todos los que me ayudaron también a ti Solid Gracias :)

No hay problema , Yo tampoco lo hubiese echo a ese script . Solid es el que más sabe Almenos del habla hispana.

Edited by Guest

------------------------------------------------------------------------------------------

My scripts

http://community.multitheftauto.com/index.php?p=resources&s=details&id=6977

http://community.multitheftauto.com/index.php?p=resources&s=details&id=7740

Posted

De nada.

San Andreas Utopia RPG (SAUR) Owner & Developer.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

Posted

Pusistes

local pMoney = getPlayerMoney(source) 
if pMoney >= elprecio then 

Visita Full GameZ DayZ Mod

Server IP: mtasa://158.69.125.144:29015

Posted
Marker = createMarker ( 1294.6767578125, -1337.5, 17.860641479492, "cylinder", 1.5, 255, 0, 0, 255 ) 
  
function check ( thePlayer ) 
   if ( isElementWithinMarker ( thePlayer, Marker ) ) then 
        local money = getPlayerMoney ( thePlayer ) 
        if money >= 30000 then 
            setPedArmor ( thePlayer, 100 ) 
        else 
            outputChatBox ( "No tienes Dinero para comprar Armor!", thePlayer, 8, 224, 13 ) 
        end 
    end 
end 
  
function decir ( hitElement ) 
    if ( getElementType ( hitElement ) == "player" ) then 
        if ( not isPedInVehicle ( hitElement ) ) then 
            if ( eventName == "onMarkerHit" ) then 
                outputChatBox ("Preciona Z para comprar el armor Costo: 30.000$", hitElement, 8, 224, 13 ) 
                bindKey ( hitElement, "z", "down", check ) 
            else 
                unbindKey ( hitElement, "z", "down", check ) 
            end 
        end 
    end 
end 
addEventHandler ( "onMarkerHit", Marker, decir ) 
addEventHandler ( "onMarkerLeave", Marker, decir ) 

Asi?

Perdón por no responder rápido, se esta yendo mucho la luz.

Posted
 Marker = createMarker ( 1294.6767578125, -1337.5, 17.860641479492, "cylinder", 1.5, 255, 0, 0, 255 ) 
  
function check ( thePlayer ) 
   if ( isElementWithinMarker ( thePlayer, Marker ) ) then 
        local money = getPlayerMoney ( thePlayer ) 
        if money >= 30000 then 
            takePlayerMoney ( thePlayer, 30000 ) 
            setPedArmor ( thePlayer, 100 ) 
        else 
            outputChatBox ( "No tienes Dinero para comprar Armor!", thePlayer, 8, 224, 13 ) 
        end 
    end 
end 
  
function decir ( hitElement ) 
    if ( getElementType ( hitElement ) == "player" ) then 
        if ( not isPedInVehicle ( hitElement ) ) then 
            if ( eventName == "onMarkerHit" ) then 
                outputChatBox ("Preciona Z para comprar el armor Costo: 30.000$", hitElement, 8, 224, 13 ) 
                bindKey ( hitElement, "z", "down", check ) 
            else 
                unbindKey ( hitElement, "z", "down", check ) 
            end 
        end 
    end 
end 
addEventHandler ( "onMarkerHit", Marker, decir ) 
addEventHandler ( "onMarkerLeave", Marker, decir )  

State: Inactive

  • Recently Browsing   0 members

    • No registered users viewing this page.

×
×
  • Create New...