GivePlayerMoney == > GivePlayerCash problem...
#1

I got this AntiMoney Hack thingy:
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];
}
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:
Код:
PlayerInfo[playerid][pCash]
So it will work as GetPlayerMoney ......

Please can somebody help?

Forgot to add teh Defines in the paste bin added them here
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)