Hallo Community...
gibt es keine einfachere form für diesen payday?
z.b. GivePlayerMoney(i,-19% vom Lohn abzuziehen)?
SetPVarInt(i,"Paytime",0);
if(isPlayerInFrakt(i,1))
{
switch(GetPVarInt(i,"Rang"))
{
case 1:{GivePlayerMoney(i,1200);GivePlayerMoney(i,-228);SendClientMessage(i,BLAU,"Payday. Du erhältst 1200$.");SendClientMessage(i,BLAU,"Steuern:-228");}
case 2:{GivePlayerMoney(i,1600);GivePlayerMoney(i,-304);SendClientMessage(i,BLAU,"Payday. Du erhältst 1600$.");SendClientMessage(i,BLAU,"Steuern:-304");}
case 3:{GivePlayerMoney(i,1800);GivePlayerMoney(i,-342);SendClientMessage(i,BLAU,"Payday. Du erhältst 1800$.");SendClientMessage(i,BLAU,"Steuern:-342");}
case 4:{GivePlayerMoney(i,2000);GivePlayerMoney(i,-380);SendClientMessage(i,BLAU,"Payday. Du erhältst 2000$.");SendClientMessage(i,BLAU,"Steuern:-380");}
case 5:{GivePlayerMoney(i,2500);GivePlayerMoney(i,-475);SendClientMessage(i,BLAU,"Payday. Du erhältst 2500$.");SendClientMessage(i,BLAU,"Steuern:-475");}
case 6:{GivePlayerMoney(i,3000);GivePlayerMoney(i,-570);SendClientMessage(i,BLAU,"Payday. Du erhältst 3000$.");SendClientMessage(i,BLAU,"Steuern:-570");}
}
}