take some money every day -
iStrow - 31.03.2012
can I somehow make a code that takes some money to player every day and gives it to other player or saves to place where other player can pick it up....
Re: take some money every day -
Randyy - 31.03.2012
There is a filterscript that dropping money but every day i think not. u can use
OnPlayerSpawn(playerid)
{
GivePlayerMoney(giveplayerid, -100);
every spawn he will give him -100 cash. u can change the 100 what you want
Re: take some money every day -
Jonny5 - 31.03.2012
Im assuming you know how to script and just looking for a guideline.
you would have to store the last date a player logged in on and money was taken from them,
then when they log in compare their last logged in day with the current date,
if it was not current date then find out how many days it was.
(they flaw here is it only happens IF they log in again)
OR
you could have a global var that the server checks and at a set time everyday
loop threw all player files and remove the money.
For players online you should remove there money right from them and
give a message as to why.
You need to see if the player even has that much money,
take what you can and then
I would then add that money to a global var and
then make a pickup(or a few of them) and when A player picks it up give them so much of the total cash the server has. I would also only allow them to pickup so much cash a day, to give others a chance.
if your looking for a script that does this you need to post in the script request thread,
regards,
Re: take some money every day -
iStrow - 31.03.2012
hmmm.... I changed my mind...i don't think it's good way to make it like that, can I make a realtime watch that goes exactly as real watch and then on 12:00PM, 3:00PM, 6:00PM, 9:00PM, 12:00AM, 3:00AM, 6:00AM, 9:00AM execute GivePlayerMoney(playerid,-200)