29.03.2009, 20:22
I got this AntiMoney Hack thingy:
Pastebin: http://pastebin.com/f369c72d9
Now the problem is that I want to Implant this into a Car Ownership FS I got, But the thing is That I don't understand how to modify this:
So it will work as GetPlayerMoney ......
Please can somebody help?
Forgot to add teh Defines in the paste bin added them here
pawn Код:
#define ResetMoneyBar ResetPlayerMoney
#define UpdateMoneyBar GivePlayerMoney
stock GivePlayerCash(playerid, money)
{
PlayerInfo[playerid][pCash] += money;
ResetMoneyBar(playerid);//Resets the money in the original moneybar, Do not remove!
UpdateMoneyBar(playerid,PlayerInfo[playerid][pCash]);//Sets the money in the moneybar to the serverside cash, Do not remove!
return PlayerInfo[playerid][pCash];
}
stock SetPlayerCash(playerid, money)
{
PlayerInfo[playerid][pCash] = money;
ResetMoneyBar(playerid);//Resets the money in the original moneybar, Do not remove!
UpdateMoneyBar(playerid,PlayerInfo[playerid][pCash]);//Sets the money in the moneybar to the serverside cash, Do not remove!
return PlayerInfo[playerid][pCash];
}
stock ResetPlayerCash(playerid)
{
PlayerInfo[playerid][pCash] = 0;
ResetMoneyBar(playerid);//Resets the money in the original moneybar, Do not remove!
UpdateMoneyBar(playerid,PlayerInfo[playerid][pCash]);//Sets the money in the moneybar to the serverside cash, Do not remove!
return PlayerInfo[playerid][pCash];
}
stock GetPlayerCash(playerid)
{
return PlayerInfo[playerid][pCash];
}
Now the problem is that I want to Implant this into a Car Ownership FS I got, But the thing is That I don't understand how to modify this:
Код:
PlayerInfo[playerid][pCash]
Please can somebody help?
Forgot to add teh Defines in the paste bin added them here