[Include] [INC]Anti-Moneycheat by Xchos
#1

Код:
new money[MAX_PLAYERS];
stock GiveMoney(playerid, cast)
{
	if(GetPlayerMoney(playerid)<money[playerid] && GetPlayerMoney(playerid)!=0) 
	{
		money[playerid]=GetPlayerMoney(playerid);
	}
	else if(cast!=0)
	{
		money[playerid]+=cast;
		ResetPlayerMoney(playerid);
		GivePlayerMoney(playerid, money[playerid]);
	}
	else if(GetPlayerMoney(playerid)>money[playerid])
	{
		ResetPlayerMoney(playerid);
		GivePlayerMoney(playerid, money[playerid]);
	}
	return 1;
}
stock GetMoney(playerid){return money[playerid];}
stock ResetMoney(playerid){money[playerid]=0;return 1;}
works deduction of money, which makes the core game, for example in Ammunations or tuning garage
Reply


Messages In This Thread
[INC]Anti-Moneycheat by Xchos - by Xchos - 24.06.2010, 16:30
Re: [INC]Anti-Moneycheat by Xchos - by andreyeu2007 - 24.06.2010, 18:06
Re: [INC]Anti-Moneycheat by Xchos - by SiJ - 24.06.2010, 20:47
Re: [INC]Anti-Moneycheat by Xchos - by Kar - 24.06.2010, 21:16
Re: [INC]Anti-Moneycheat by Xchos - by willsuckformoney - 24.06.2010, 23:32
Re: [INC]Anti-Moneycheat by Xchos - by Kar - 25.06.2010, 00:09
Re: [INC]Anti-Moneycheat by Xchos - by nuriel8833 - 05.07.2010, 17:55

Forum Jump:


Users browsing this thread: 1 Guest(s)