Arsilex Posted September 28, 2012 Posted September 28, 2012 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?
Castillo Posted September 28, 2012 Posted September 28, 2012 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. Education is the most powerful weapon which you can use to change the world.
Castillo Posted September 28, 2012 Posted September 28, 2012 Postea como ejecutas el evento: "Armas.Escopeta". San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
Arsilex Posted September 28, 2012 Author Posted September 28, 2012 function Escopeta1() triggerServerEvent ( "Armas.Escopeta", getRootElement() ) showCursor ( false ) end
Arsilex Posted September 28, 2012 Author Posted September 28, 2012 Ya lo eh solucionado gracias castillo
Castillo Posted September 28, 2012 Posted September 28, 2012 De nada. San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
Recommended Posts