Jump to content

Ayuda pls


Arsilex

Recommended Posts

Posted
function Encender3() 
    if takePlayerMoney ( thePlayer, 500 ) then 
            giveWeapon ( source, 25, 100 ) 
    else 
        outputChatBox ( "No hay dinero no hay armas amigo" ) 
    end 
end 
addEvent( "Armas.Escopeta", true ) 
addEventHandler( "Armas.Escopeta", getRootElement(), Encender3 ) 

No se si esta bien o mal pero me como podria hacer si el player no tiene 500$ para que no le de el arma?

rsilex.png.0e6ad382b3fdc3cbe6390e3e847572c9.png
Posted
function Encender3 ( ) 
    if ( getPlayerMoney ( source ) >= 500 ) then 
        takePlayerMoney ( source, 500 ) 
        giveWeapon ( source, 25, 100 ) 
    else 
        outputChatBox ( "No hay dinero no hay armas amigo" ) 
    end 
end 
addEvent( "Armas.Escopeta", true ) 
addEventHandler( "Armas.Escopeta", getRootElement(), Encender3 ) 

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

Postea como ejecutas el evento: "Armas.Escopeta".

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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...