SA-MP Forums Archive
[Include] [INC]Anti-Moneycheat by Xchos - 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: Filterscripts (https://sampforum.blast.hk/forumdisplay.php?fid=17)
+---- Forum: Includes (https://sampforum.blast.hk/forumdisplay.php?fid=83)
+---- Thread: [Include] [INC]Anti-Moneycheat by Xchos (/showthread.php?tid=156906)



[INC]Anti-Moneycheat by Xchos - Xchos - 24.06.2010

Код:
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


Re: [INC]Anti-Moneycheat by Xchos - andreyeu2007 - 24.06.2010

ALL script releases must include the .pwn file (the source code).


Re: [INC]Anti-Moneycheat by Xchos - SiJ - 24.06.2010

Quote:
Originally Posted by andreyeu2007
ALL script releases must include the .pwn file (the source code).
Includes are not in .pwn format.. You have to include a source code, it doesn't matter if it's in .pwn or on the web page :P


Re: [INC]Anti-Moneycheat by Xchos - Kar - 24.06.2010

Quote:
Originally Posted by andreyeu2007
ALL script releases must include the .pwn file (the source code).
good fight.


Re: [INC]Anti-Moneycheat by Xchos - willsuckformoney - 24.06.2010

Quote:
Originally Posted by andreyeu2007
ALL script releases must include the .pwn file (the source code).
why not be a noob?? copy the code and put it in your FS which is what most people do anyways


EDITon't forget the credits ofc


Re: [INC]Anti-Moneycheat by Xchos - Kar - 25.06.2010

yea l0l why make a fs using anti money hack rofl.. stupid just put it in your gm




Re: [INC]Anti-Moneycheat by Xchos - nuriel8833 - 05.07.2010

.pwn file? something?