Ati money
#1

Please i have an buy car cmd and when i buy a car the money in bank remains and only the money in green goes down..i have anti money..look please help from someone who knows..im not a newly scripter.
Reply
#2

Show us the anti-money hack function you use and the command
Reply
#3

PHP код:
 else if(strcmp(x_nr,"buy",true) == 0)
            {
                if(
IsAnOwnableCar(idcar))
                {
                    if(
PlayerInfo[playerid][pPcarkey] == -1) { }
                    else if(
PlayerInfo[playerid][pPcarkey2] == -1) { }
                    else if(
PlayerInfo[playerid][pPcarkey3] == -1) { }
                    else { 
SendClientMessage(playeridCOLOR_GREY"   Ai deja 3 masini!!"); return 1; }
                    if(
CarInfo[idcar][cOwned]==1)
                    {
                        
SendClientMessage(playeridCOLOR_GREY"Someone already owns this car");
                        return 
1;
                    }
                    if(
GetPlayerMoney(playerid) >= CarInfo[idcar][cValue])
                    {
                        if(
PlayerInfo[playerid][pPcarkey] == -1) { PlayerInfo[playerid][pPcarkey] = idcar; }
                        else if(
PlayerInfo[playerid][pPcarkey2] == -1) { PlayerInfo[playerid][pPcarkey2] = idcar; }
                        else if(
PlayerInfo[playerid][pPcarkey3] == -1) { PlayerInfo[playerid][pPcarkey3] = idcar; }
                        else { return 
1; }
                        
CarInfo[idcar][cOwned] = 1;
                        
GetPlayerName(playeridsendernamesizeof(sendername));
                        
strmid(CarInfo[idcar][cOwner], sendername0strlen(sendername), 999);
                        
GivePlayerCash(playerid,-CarInfo[idcar][cValue]);
                        
PlayerPlaySound(playerid10520.00.00.0);
                        
GameTextForPlayer(playerid"~w~Felicitari~n~Nu uita sa o parchezi cu /v park!"50003);
                        
SendClientMessage(playeridCOLOR_GRAD2"Felicitari ti-ai cumparat o masina noua!");
                        
TogglePlayerControllable(playerid1);
                        
OnPropUpdate(); SavePlayerData(playerid);
                        return 
1;
                    }
                    else
                    {
                        
SendClientMessage(playeridCOLOR_GREY"  You don't have enough cash with you ! ");
                        return 
1;
                    }
                }
            } 
cmd and il pm you the function.
Reply
#4

wow no one/what is wrong with all of you?no one answers to my topic..
Reply
#5

anyone helping??please?
Reply
#6

srsly, ur bumps are the responsible for ur topic getting ignored
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)