noftaly

Untitled

Sep 22nd, 2018
177
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.78 KB | None | 0 0
  1. on packet event play_client_update_sign:
  2. if {usingsign.%player%} is true:
  3. set {_lines::*} to string array pinfo 0 of event-packet
  4. set {usingsign.%player%} to false
  5. set {casino::mise::%player%} to "%{_lines::1}%"
  6. broadcast "Debug: packet sent"
  7. if {casino::mise::%player%} parsed as integer is an integer:
  8. broadcast "Debug: It is an integer !"
  9. if player's balance >= {casino::mise::%the player%}:
  10. broadcast "Debug: money: enough"
  11. remove {casino::mise::%player%} from player's balance
  12. wait 0.2 second
  13. playGui(player)
  14. else:
  15. broadcast "Debug: money: not enough"
  16. message "&cYou don't have enough money !"
  17. else:
  18. broadcast "Debug: It is not an integer !"
  19. wait 0.1 second
  20. signInput(player)
  21. message "&cYou have to put an int !"
  22. stop
Advertisement
Add Comment
Please, Sign In to add comment