Advertisement
Guest User

Untitled

a guest
Oct 23rd, 2019
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.64 KB | None | 0 0
  1. stock FazerCobranca(playerid, dinheiro)
  2. {
  3. new S[128];
  4. if(InfoP[playerid][Cartao] <= 1)
  5. {
  6. if(GetPlayerCash(playerid) < dinheiro)
  7. {
  8. format(S, sizeof(S), "Você não possui dinheiro suficiente. (%d)", dinheiro);
  9. MensagemE(playerid, S);
  10. return 0;
  11. }
  12. else
  13. {
  14. GivePlayerCash(playerid, -dinheiro);
  15. return 1;
  16. }
  17. }
  18. else if(InfoP[playerid][Cartao] == 2)
  19. {
  20. if(InfoP[playerid][Banco] < dinheiro)
  21. {
  22. format(S, sizeof(S), "Você não possui saldo suficiente. (%d)", dinheiro);
  23. MensagemE(playerid, S);
  24. return 0;
  25. }
  26. else
  27. {
  28. InfoP[playerid][Banco] -= dinheiro;
  29. return 1;
  30. }
  31. }
  32. return 0;
  33. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement