07.02.2010, 17:18
i use larp based gm , and i added many new cars . Usually cars and Ownable cars . All works but when you go first car it shows it cost 500 000 and its infernus and /v buy to buy it. But when you go second or third or fourth etc, then it dont sho that message . I dont find the porblem and i dont have idea how to fix it. Mabye anyone can help me ?
i edited these things :
This under addstatic cars:
these under loadcars and save car.cfg :
------------------------------------------
edited this:
and this too :
i hope somebody can help me .
i edited these things :
Код:
new CarInfo[401][cInfo];
Код:
for(new h = 301; h < sizeof(CarInfo); h++)
Код:
new idx = 301;
edited this:
Код:
public IsAnOwnableCar(vehicleid) { if((vehicleid >= 301) && (vehicleid <= 401)) { return 1; } return 0; }
Код:
if(strcmp(cmd, "/respawnallcars", true) == 0 || strcmp(cmd, "/rac", true) == 0) // by Ellis { if(IsPlayerConnected(playerid)) { if(PlayerInfo[playerid][pAdmin] < 3) { SendClientMessage(playerid, COLOR_GRAD1, " you are not authorized to use that command!"); return 1; } new bool:unwanted[CAR_AMOUNT]; for(new player=0; player<MAX_PLAYERS; player++) { if(IsPlayerInAnyVehicle(player)) { unwanted[GetPlayerVehicleID(player)]=true; } } for(new car = 1; car <= 401; car++) { if(!unwanted[car]) SetVehicleToRespawn(car); } GetPlayerName(playerid, sendername, sizeof(sendername)); format(string, sizeof(string), "SERVER: All unused cars respawned by %s.", sendername); BroadCast(COLOR_WHITE,string); } return 1; }