samp.directory
← Скрипты и библиотеки

knownasrazi/samp-economy-cream

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

Другое★ 5обновлён 42 дня назадMITPawn
Открыть на 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

Страница собрана из того, что GitHub публикует о репозитории. samp.directory не хранит этот код. Сообщить о проблеме с этой записью