Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- stock FazerCobranca(playerid, dinheiro)
- {
- new S[128];
- if(InfoP[playerid][Cartao] <= 1)
- {
- if(GetPlayerCash(playerid) < dinheiro)
- {
- format(S, sizeof(S), "Você não possui dinheiro suficiente. (%d)", dinheiro);
- MensagemE(playerid, S);
- return 0;
- }
- else
- {
- GivePlayerCash(playerid, -dinheiro);
- return 1;
- }
- }
- else if(InfoP[playerid][Cartao] == 2)
- {
- if(InfoP[playerid][Banco] < dinheiro)
- {
- format(S, sizeof(S), "Você não possui saldo suficiente. (%d)", dinheiro);
- MensagemE(playerid, S);
- return 0;
- }
- else
- {
- InfoP[playerid][Banco] -= dinheiro;
- return 1;
- }
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement