Electricity bill - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Electricity bill (
/showthread.php?tid=93710)
Electricity bill -
Cracker - 26.08.2009
Sotty about my bad english... nto sure that subject is correct

But anyways... im useing LARP GM and tehre i found ebill. So if i set my payday time to 1000 sec and used it with fast /payday command i sawd that in 1000 sec i get -5 dollar of electric bills.
But id like to set it highrt but where i can do it?
I looked for ebill's and that was all i got in scipt:
Код:
new ebill = (PlayerInfo[i][pAccount]/10000)*(PlayerInfo[i][pLevel]);
//ConsumingMoney[i] = 1;
SafeGivePlayerMoney(i, checks);
account += checks;
if(PlayerInfo[i][pAccount] > 0)
{
PlayerInfo[i][pAccount] -= ebill;
SBizzInfo[4][sbTill] += ebill;
}
else
{
ebill = 0;
}
And also one property, but i didnt found there anything what could be common with ebill.
Quote:
903.700012,54.799999,231.399993,1114.099975,1080.9 00024,0,0,0,0,0,0,Kelly_Shard,7 Room Luxury,650000,0,0,5,1,1,0,250,1,4750,418,-1,-1,238,5,25
1421.800048,-
|
Edit: Fixed some words
Re: Electricity bill -
Cracker - 26.08.2009
ok, i looked a bit again, but it has nothing common with sbentrance. how should i add it there?
it takes bills only on level
Re: Electricity bill -
UsaBoy91 - 26.08.2009
karkakouse will have pleasure to see this post !!!
POST ON GODFATHER TOPIC
Re: Electricity bill -
Correlli - 26.08.2009
http://forum.sa-mp.com/index.php?topic=67900.0
Re: Electricity bill -
Cracker - 26.08.2009
where exactly is that karka... post or what u wants to offer hem

I also almoust have made solution for my efore it gained money on player level, but now i changed it on Bizentrance, but i need to make it so, that it calculates something like this bEntranceCost*pLevel Is it possible to make?
At the moment line looks like this:
Код:
new ebill = (PlayerInfo[i][pAccount]/10000)*(SBizzInfo[4][sbEntranceCost]);
Im probaly ending the topic with that question, if il get my result.