15.08.2016, 00:40
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:
Second , you must do some things on your gamemode :
At the first line under OnPlayerConnect , You must add this: ConnectDisconnectFix(playerid);
example:
At the last line uner OnPlayerDisconenct , You must add this again: ConnectDisconnectFix(playerid);
example:
Also you must add this link under public OnGameModeInit() : StartAntiyMoneyx();
(Not important where you put this code)
example:
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
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>
At the first line under OnPlayerConnect , You must add this: ConnectDisconnectFix(playerid);
example:
PHP код:
public OnPlayerConnect(playerid)
{
ConnectDisconnectFix(playerid);
.
.
.
.
example:
PHP код:
public OnPlayerDisconnect(playerid)
{
.
.
.
.
ConnectDisconnectFix(playerid);
return 1;
}
(Not important where you put this code)
example:
PHP код:
public OnGameModeInit()
{
.
.
.
.
StartAntiyMoneyx();
return 1;
}
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