[Include] yMoneyx - Basic and simple anti money cheats - 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] yMoneyx - Basic and simple anti money cheats (
/showthread.php?tid=614916)
yMoneyx - Basic and simple anti money cheats -
taktaz - 15.08.2016
Hello guys
Today i wanna release a basic include for beginners , This include is very useful for beginners or slouchy(prank) people to make their gamemode safe from money hax.
Installation:
First , you must download the include file (yMoneyx.inc) and put that into your compiler includes path ,
If you use Pawno , it is: pawno/include and add this line at te top of your gamemode codes:
PHP код:
#include <yMoneyx>
Second , you must do some things on your gamemode :
At the first line under OnPlayerConnect , You must add this: ConnectDisconnectFix(playerid);
example:
PHP код:
public OnPlayerConnect(playerid)
{
ConnectDisconnectFix(playerid);
.
.
.
.
At the last line uner OnPlayerDisconenct , You must add this again: ConnectDisconnectFix(playerid);
example:
PHP код:
public OnPlayerDisconnect(playerid)
{
.
.
.
.
ConnectDisconnectFix(playerid);
return 1;
}
Also you must add this link under public OnGameModeInit() : StartAntiyMoneyx();
(Not important where you put this code)
example:
PHP код:
public OnGameModeInit()
{
.
.
.
.
StartAntiyMoneyx();
return 1;
}
Also you must replace all GivePlayerMoney to GivePlayerCash and ResetPlayerMoney to ResetPlayerCash and GetPlayerMoney to GetPlayerCash and also you have new feature : SetPlayerCash (Sets player money)
All of this Include Features with simple description:
* GivePlayerCash(plid,cashs); //give a player money
* SetPlayerCash(plid,cashs); //change player money
* ResetPlayerCash(plid,cashs); //change player money to 0
* GetPlayerCash(plid); //to findout how much a player have money
BUGS: No reports.
Contact us: Telegram ID:
@tooktooz
DOWNLOAD
if it helpt you , please
+reputation me