SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Filterscripts > Includes

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Old 24/06/2010, 04:30 PM   #1
Xchos
Little Clucker
 
Join Date: Mar 2010
Posts: 1
Reputation: 0
Default [INC]Anti-Moneycheat by Xchos

Code:
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
Xchos is offline   Reply With Quote
 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[Include] [INC] Anti Money Cheat, Anti Ban Weapon FreshKilla Includes 28 11/08/2014 03:05 PM
[DUV] Como criar um Anti-MoneyHack, e Anti-Airbreak [NWD]Tweener_ Português/Portuguese 21 26/11/2010 03:45 PM
[FilterScript] [FS]ANTI-ESC GhOsT[X] Lançamentos/Releases 8 29/03/2010 04:16 PM
Help pls, moneycheat luuksa Help Archive 1 02/01/2010 09:29 PM


All times are GMT. The time now is 07:40 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.