Money Hack System
#1

Hi bro, pls help me to use Money Hack System.. Why my money in game reset to 0, but i not using Hack Money?

PHP код:
#define ResetMoneyBar ResetPlayerMoney
#define UpdateMoneyBar GivePlayerMoney
new Cash[MAX_PLAYERS];
stock GivePlayerCash(playeridmoney)
{
    
Cash[playerid] += money;
    
ResetMoneyBar(playerid);//Resets the money in the original moneybar, Do not remove!
    
UpdateMoneyBar(playerid,Cash[playerid]);//Sets the money in the moneybar to the serverside cash, Do not remove!
    
return Cash[playerid];
}
stock SetPlayerCash(playeridmoney)
{
    
Cash[playerid] = money;
    
ResetMoneyBar(playerid);//Resets the money in the original moneybar, Do not remove!
    
UpdateMoneyBar(playerid,Cash[playerid]);//Sets the money in the moneybar to the serverside cash, Do not remove!
    
return Cash[playerid];
}
*/
stock ResetPlayerCash(playerid)*/
{
    
Cash[playerid] = 0;
    
ResetMoneyBar(playerid);//Resets the money in the original moneybar, Do not remove!
    
UpdateMoneyBar(playerid,Cash[playerid]);//Sets the money in the moneybar to the serverside cash, Do not remove!
    
return Cash[playerid];
}
stock GetPlayerCash(playerid)
{
    return 
Cash[playerid];

PHP код:
SetTimer("MoneyTimer"10001); 
PHP код:
public MoneyTimer()
{
    new 
username[MAX_PLAYER_NAME];
    for(new 
i=0i<MAX_PLAYERSi++)
    {
        if(
IsPlayerConnected(i))
        {
            if(
GetPlayerCash(i) != GetPlayerMoney(i))
            {
                
ResetMoneyBar(i);//Resets the money in the original moneybar, Do not remove!
                
UpdateMoneyBar(i,GetPlayerCash(i));//Sets the money in the moneybar to the serverside cash, Do not remove!
                
new hack GetPlayerMoney(i) - GetPlayerCash(i);
                
GetPlayerName(i,username,sizeof(username));
                
printf("%s has picked up/attempted to spawn $%d."username,hack);
            }
        }
    }

Reply
#2

Are you using GivePlayerCash/SetPlayerCash to add money or are you using GivePlayerMoney?
Reply
#3

no, when I logged on to the server, suddenly all of my money or reset to 0
Reply
#4

Help me pls...
i can add you in the Skype

Thanks
Reply
#5

Before adding that code into the gamemode you need to replace all the 'GivePlayerMoney' with 'GivePlayerCash'.
Reply
#6

Quote:
Originally Posted by Stinged
Посмотреть сообщение
Are you using GivePlayerCash/SetPlayerCash to add money or are you using GivePlayerMoney?
Quote:
Originally Posted by DandyCorleone
Посмотреть сообщение
no
I don't get it.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)