Need some help..
#1

Hello.

I trying to edit Raven's Rolelay edit by GTA-Roleplay currently. I trying to change something on it. I can only own two cars in that game, and I've searched on the thing as show up when I try to buy a new one. I have a script bit here, but I dont know that is much enough to edit.

PHP код:
      if(PlayerInfo[playerid][pPcarkey] == 9999 || PlayerInfo[playerid][pPcarkey2] == 9999) { }
                    else return 
SendClientMessage(playeridCOLOR_GREY,"* You already own Two cars!");
                    if(
GetPlayerMoney(playerid) >= GetVehiclePrice(idcar))
                    {
                        if(
PlayerInfo[playerid][pCarLic] == 1)
                        {
                            for(new 
1sizeof(CarInfo); h++)
                            {
                                if(
CarInfo[h][cOwned] == 0)
                                {
                                    
car h;
                                    
9999;
                                }
                            }
                            
format(stringsizeof(string),"LARP/Vehicles/%d.ini",car)
                            
dini_Create(string);
                            
                            if(
PlayerInfo[playerid][pPcarkey] != 9999) { PlayerInfo[playerid][pPcarkey2] = car; }
                            else { 
PlayerInfo[playerid][pPcarkey] = car; }
                            
CarInfo[car][cOwned] = 1;
                            
strmid(CarInfo[car][cOwner], sendername0strlen(sendername), 999);
                            
SafeGivePlayerMoney(playerid,-GetVehiclePrice(idcar));
                            if(
IsModelAPlane(idcar) || IsModelAHeli(idcar))
                            {
                                
CarInfo[car][cLocationx] = 1432.6451;
                                
CarInfo[car][cLocationy] = 1378.7216;
                                
CarInfo[car][cLocationz] = 11.5507;
                                
CarInfo[car][cAngle] = 359.2072;
                                
SendClientMessage(playeridCOLOR_YELLOW2"Your Aircraft has been deliveried to Las Venturas Airport, you can get it there!");
                                
SendClientMessage(playeridCOLOR_YELLOW2"Your vehicle is unlocked so you can pay someone to deliver it to your new spawn point!");
                                
SendClientMessage(playeridCOLOR_NICERED"REMEMBER: Leaving your car in the deliver point can get your car SOLD by an administration without refund!");
                                
GameTextForPlayer(playerid"~p~Congratulations~n~~w~Don't forget to pickup your car at the ~b~Las Venturas Airport!"50003);
                            } 
Something here? Please help me.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)