Castillo

Dinero

Jul 4th, 2011
163
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.32 KB | None | 0 0
  1. --client side
  2. function botonDeMillonarios()
  3. triggerServerEvent("dar_dinero",getLocalPlayer(),getLocalPlayer())
  4. end
  5. addEventHandler("onClientGUIClick",myBoton,botonDeMillonarios,false)
  6.  
  7. --server side
  8. addEvent("dar_dinero",true)
  9. addEventHandler("dar_dinero",root,
  10. function (jugador)
  11. givePlayerMoney(jugador,1000)
  12. end)
Advertisement
Add Comment
Please, Sign In to add comment