Jump to content

DropMoney


Narutimmy

Recommended Posts

Posted

Hola quiero hacer un script que al precionar la Tecla "b" se cree un pickup de dinero en el piso y otro usuario lo pueda tomar y que suene un sonido que solo escuche el que lo precione...

Asi esta bien?

function DropMoney (thePlayer) 
   
    x,y,z  = getElementPosition ( source )  
    money = createPickup ( x + 3,y,z, 3, 1212,0 )   - 
     
if money then  
if (getPlayerMoney() <= 50) then 
  
x,y,z  = getElementPosition ( source )  
money = createPickup ( x + 3,y,z, 3, 1212,0 ) 
takePlayerMoney(thePlayer, 50) 
playSound ( "Money.mp3" ) 
  
  
function GivePlayerMoney (thePlayer) 
givePlayerMoney ( thePlayer, 50 )   
destroyElement ( source )   
end 
addEventHandler ( "onPickupHit", money, GivePlayerMoney ) 
  end 
  end 
end 
  
  
  
  
bindKey ( thePlayer,"b","down",DropMoney ) 

mtasa://66.85.14.178:22003

350x20_FFFFFF_FFFFFF_000000_000000.png

Ts3: thezombiworld.com:7777

350x20_FFFFFF_FFFFFF_000000_000000.png

Posted

No tiene ningun sentido el script ese.

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...