samp.directory
← Scripts e bibliotecas

knownasrazi/samp-economy-cream

Cream economy system for SA-MP - bank, jobs, and shops, humanized.

Outro★ 5atualizado há 43 diasMITPawn
Abrir no GitHub

README.md

samp-economy-clean

Economy, refined.

Clean economy system for SA-MP - bank, jobs, and shops, hand-crafted.

Money feels real when the code reads real.

Systems

  • Bank - deposit, withdraw, interest with cron
  • Jobs - trucker, pizza, with clean paydays
  • Shops - 24/7 with stock, not infinite

Hand-crafted Pawn

\\pawn // economy/bank.pwn // Human note: "interest every hour, but only if they played" forward PayBankInterest(); public PayBankInterest() { foreach (Player, i) { if (!IsPlayerConnected(i)) continue; if (PlayerInfo[i][pBank] < 1000) continue; // too poor to earn new interest = floatround(PlayerInfo[i][pBank] * 0.015); // 1.5% GivePlayerBankMoney(i, interest); } } \\

Install

Include in gamemode, or as filterscript.

License

MIT

Esta página é montada com o que o GitHub publica sobre o repositório. O samp.directory não hospeda o código. Avisar de um problema com esta página