Help Server Money
#8

here are they
Код:
public SafeGivePlayerMoney(plyid, amounttogive)
{
	new curHour, curMinute, curSecond;
	gettime(curHour, curMinute, curSecond);
	ScriptMoneyUpdated[plyid] = curSecond;
	if (amounttogive < 0)
	{
		GivePlayerMoney(plyid, amounttogive);
		ScriptMoney[plyid] = (ScriptMoney[plyid] + amounttogive);
	}
	else
	{
		ScriptMoney[plyid] = (ScriptMoney[plyid] + amounttogive);
		GivePlayerMoney(plyid, amounttogive);
	}
	return 1;
}

public SafeResetPlayerMoney(plyid)
{
	new curHour, curMinute, curSecond;
	gettime(curHour, curMinute, curSecond);
	ScriptMoneyUpdated[plyid] = curSecond;
	ResetPlayerMoney(plyid);
	ScriptMoney[plyid] = 0;
	return 1;
}
i added the reset money too
Reply


Messages In This Thread
Help Server Money - by Dark Crow - 13.05.2012, 20:55
Re: Help Server Money - by ViniBorn - 13.05.2012, 20:58
Re: Help Server Money - by Yuryfury - 13.05.2012, 20:59
Re: Help Server Money - by Dark Crow - 13.05.2012, 21:06
Re: Help Server Money - by ViniBorn - 13.05.2012, 21:10
Re: Help Server Money - by Dark Crow - 13.05.2012, 21:15
Re: Help Server Money - by ViniBorn - 13.05.2012, 21:25
Re: Help Server Money - by Dark Crow - 13.05.2012, 21:28
Re: Help Server Money - by Yuryfury - 13.05.2012, 21:43
Re: Help Server Money - by Dark Crow - 13.05.2012, 21:51

Forum Jump:


Users browsing this thread: 3 Guest(s)