SA-MP Forums Archive
[Pedido] Dinheiro Random - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Non-English (https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [Pedido] Dinheiro Random (/showthread.php?tid=498148)



Dinheiro Random - powerths - 02.03.2014

Intгo alguem pode me ajudar tipo quando um player vai receber o sбlario ai tem impostos da casa ai tipo quando player vai receber os imposto da casa a taxa da cobranзa vem ex: $100, $350, $500 e por diante.

Alguem pode me ajudar??


Re: Dinheiro Random - VivendoVirtual - 02.03.2014

pawn Код:
SetTimerEx("Imposto", 1000, false, "i", playerid); // colocaria na public do Salбrio
pawn Код:
forward Imposto(playerid); // aki vc teria q identificar se o player tem ou nгo casa
public Imposto(playerid)
{
new Taxas = random(3);
if(Taxas == 1){
SendClientMessageToAll(0xFF8000FF, "Imposto: a sua taxa desse mКs foi R$100 reais");
GivePlayerMoney(playerid, -100);
}
else if(Taxas == 2){
SendClientMessageToAll(0xFF8000FF, "Imposto: a sua taxa desse mes foi R$3500 reais");
GivePlayerMoney(playerid, -350);
}
else if(Taxas == 3){
SendClientMessageToAll(0xFF8000FF, "Imposto: a sua taxa desse mes foi R$500 reais");
GivePlayerMoney(playerid, -500);
}
}



Re: Dinheiro Random - powerths - 02.03.2014

Nгo mais to querendo colocar quando o player tiver uma casa ai quando ele vai receber ai ele recebe uma quantia de impostos da casa

# Edit:

Viw