[Include] yMoneyx - Basic and simple anti money cheats
#1

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
Reply


Messages In This Thread
yMoneyx - Basic and simple anti money cheats - by taktaz - 15.08.2016, 00:40

Forum Jump:


Users browsing this thread: 1 Guest(s)