15.01.2011, 07:21
At least tell me where the car folder is? I'm unable to find it.
else if(strcmp(x_nr,"buy",true) == 0) { new car = 195; new model = GetVehicleModel(idcar); if(IsASalesVehicle(idcar)) { if(PlayerInfo[playerid][pLevel] < 4) { SendClientMessage(playerid, COLOR_LIGHTRED, "Ai nevoie de level 4 pentru a cumpara un vehicul!"); return 1; } if(PlayerInfo[playerid][pPcarkey] == 9999 || PlayerInfo[playerid][pPcarkey2] == 9999 || PlayerInfo[playerid][pPcarkey3] == 9999) { } else return SendClientMessage(playerid, COLOR_GREY,"* Detii deja 3 masini!"); if(GetPlayerMoney(playerid) >= GetVehiclePrice(idcar)) { if(PlayerInfo[playerid][pCarLic] == 1) { for(new h = 195; h < sizeof(CarInfo); h++) { if(CarInfo[h][cOwned] == 1) { car = h + 1; } } if(PlayerInfo[playerid][pPcarkey] == 9999) { PlayerInfo[playerid][pPcarkey] = idcar; } else if(PlayerInfo[playerid][pPcarkey2] == 9999) { PlayerInfo[playerid][pPcarkey2] = idcar; } else if(PlayerInfo[playerid][pPcarkey3] == 9999) { PlayerInfo[playerid][pPcarkey3] = idcar; } else { PlayerInfo[playerid][pPcarkey] = car; } CarInfo[car][cOwned] = 1; strmid(CarInfo[car][cOwner], sendername, 0, strlen(sendername), 999); SafeGivePlayerMoney(playerid,-GetVehiclePrice(idcar)); if(IsModelAPlane(idcar) || IsModelAHeli(idcar)) { CarInfo[car][cLocationx] = 1857.5852; CarInfo[car][cLocationy] = -2544.7224; CarInfo[car][cLocationz] = 13.5469; CarInfo[car][cAngle] = 276.5629; SendClientMessage(playerid, COLOR_NICERED, "Avionul/Elicopetrul dvs. a fost livrata la AEROPORTUL LOS SANTOS, puteti sa o ridicati de acolo!"); SendClientMessage(playerid, COLOR_YELLOW2, "Retine: Daca lasati avionul/heli in zona de livrare , va fi CONFISCATA de administratori !!"); } else if(IsModelABoat(idcar)) { CarInfo[car][cLocationx] = 187.9967; CarInfo[car][cLocationy] = -1979.0901; CarInfo[car][cLocationz] = -0.6024; CarInfo[car][cAngle] = 214.4243; SendClientMessage(playerid, COLOR_NICERED, "Barca dvs. a fost livrata la AEROPORTUL LOS SANTOS, puteti sa o ridicati de acolo!"); SendClientMessage(playerid, COLOR_YELLOW2, "Retine: Daca lasati barca in zona de livrare , va fi CONFISCATA de administratori !"); } else { CarInfo[car][cLocationx] = 1960.2401; CarInfo[car][cLocationy] = -2360.0776; CarInfo[car][cLocationz] = 13.5469; CarInfo[car][cAngle] = 0.3884; SendClientMessage(playerid, COLOR_NICERED, "Masina/Mootocilceta dvs. a fost livrata la AEROPORTUL LOS SANTOS, puteti sa o ridicati de acolo"); SendClientMessage(playerid, COLOR_YELLOW2, "Retine: Daca lasati masina/motocicleta in zona de livrare , va fi CONFISCATA de administratori !"); } CarInfo[car][cModel] = model; CarInfo[car][cVirWorld] = 0; DestroyVehicle(car); CreateVehicle(CarInfo[car][cModel],CarInfo[car][cLocationx],CarInfo[car][cLocationy],CarInfo[car][cLocationz],90.0,1,1,30000); PlayerPlayMusic(playerid); GameTextForPlayer(playerid, "~w~Felicitari~n~Nu uitati sa folositi /v park it!", 5000, 3); SendClientMessage(playerid, COLOR_GRAD2, "Foloseste /vehiclehelp pentru a vedea comenzile disponibile!"); gEngine[playerid] = 0; engineOn[GetPlayerVehicleID(playerid)] = false; DateProp(playerid); OnPropUpdate(4); OnPlayerUpdateEx(playerid); SafeRemovePlayerFromVehicle(playerid); TogglePlayerControllable(playerid, 1); } else { SendClientMessage(playerid, COLOR_WHITE, "* Din motive de securitate, este nevoie de un permis de conducere pentru a cumpara o masina!"); return 1; } } else { SendClientMessage(playerid, COLOR_GREY, " Nu aveti suficienti bani ! "); return 1; } } }
else if(strcmp(x_nr,"buy",true) == 0) { new car = 195; new model = GetVehicleModel(idcar); if(IsASalesVehicle(idcar)) { if(PlayerInfo[playerid][pLevel] < 4) { SendClientMessage(playerid, COLOR_LIGHTRED, "Ai nevoie de level 4 pentru a cumpara un vehicul!"); return 1; } if(PlayerInfo[playerid][pPcarkey] == 9999 || PlayerInfo[playerid][pPcarkey2] == 9999 || PlayerInfo[playerid][pPcarkey3] == 9999) { } else return SendClientMessage(playerid, COLOR_GREY,"* Detii deja 3 masini!"); if(GetPlayerMoney(playerid) >= GetVehiclePrice(idcar)) { if(PlayerInfo[playerid][pCarLic] == 1) { for(new h = 195; h < sizeof(CarInfo); h++) { if(CarInfo[h][cOwned] == 1) { car = h + 1; } } if(PlayerInfo[playerid][pPcarkey] == 9999) { PlayerInfo[playerid][pPcarkey] = idcar; } else if(PlayerInfo[playerid][pPcarkey2] == 9999) { PlayerInfo[playerid][pPcarkey2] = idcar; } else if(PlayerInfo[playerid][pPcarkey3] == 9999) { PlayerInfo[playerid][pPcarkey3] = idcar; } else { PlayerInfo[playerid][pPcarkey] = car; } CarInfo[car][cOwned] = 1; strmid(CarInfo[car][cOwner], sendername, 0, strlen(sendername), 999); SafeGivePlayerMoney(playerid,-GetVehiclePrice(idcar)); if(IsModelAPlane(idcar) || IsModelAHeli(idcar)) { CarInfo[car][cLocationx] = 1857.5852; CarInfo[car][cLocationy] = -2544.7224; CarInfo[car][cLocationz] = 13.5469; CarInfo[car][cAngle] = 276.5629; SendClientMessage(playerid, COLOR_NICERED, "Avionul/Elicopetrul dvs. a fost livrata la AEROPORTUL LOS SANTOS, puteti sa o ridicati de acolo!"); SendClientMessage(playerid, COLOR_YELLOW2, "Retine: Daca lasati avionul/heli in zona de livrare , va fi CONFISCATA de administratori !!"); } else if(IsModelABoat(idcar)) { CarInfo[car][cLocationx] = 187.9967; CarInfo[car][cLocationy] = -1979.0901; CarInfo[car][cLocationz] = -0.6024; CarInfo[car][cAngle] = 214.4243; SendClientMessage(playerid, COLOR_NICERED, "Barca dvs. a fost livrata la AEROPORTUL LOS SANTOS, puteti sa o ridicati de acolo!"); SendClientMessage(playerid, COLOR_YELLOW2, "Retine: Daca lasati barca in zona de livrare , va fi CONFISCATA de administratori !"); } else { CarInfo[car][cLocationx] = 1960.2401; CarInfo[car][cLocationy] = -2360.0776; CarInfo[car][cLocationz] = 13.5469; CarInfo[car][cAngle] = 0.3884; SendClientMessage(playerid, COLOR_NICERED, "Masina/Mootocilceta dvs. a fost livrata la AEROPORTUL LOS SANTOS, puteti sa o ridicati de acolo"); SendClientMessage(playerid, COLOR_YELLOW2, "Retine: Daca lasati masina/motocicleta in zona de livrare , va fi CONFISCATA de administratori !"); } CarInfo[car][cModel] = model; CarInfo[car][cVirWorld] = 0; DestroyVehicle(car); CreateVehicle(CarInfo[car][cModel],CarInfo[car][cLocationx],CarInfo[car][cLocationy],CarInfo[car][cLocationz],90.0,1,1,30000); PlayerPlayMusic(playerid); GameTextForPlayer(playerid, "~w~Felicitari~n~Nu uitati sa folositi /v park it!", 5000, 3); SendClientMessage(playerid, COLOR_GRAD2, "Foloseste /vehiclehelp pentru a vedea comenzile disponibile!"); gEngine[playerid] = 0; engineOn[GetPlayerVehicleID(playerid)] = false; DateProp(playerid); OnPropUpdate(4); OnPlayerUpdateEx(playerid); SafeRemovePlayerFromVehicle(playerid); TogglePlayerControllable(playerid, 1); } else { SendClientMessage(playerid, COLOR_WHITE, "* Din motive de securitate, este nevoie de un permis de conducere pentru a cumpara o masina!"); return 1; } } else { SendClientMessage(playerid, COLOR_GREY, " Nu aveti suficienti bani ! "); return 1; } } }
Yeah, thats true, thank you But do you know how to fix bug with /veh and spawn money?
I found out somethink new! After /respawnallcars server destroy every hydra, hunter, rhino and army boat(predator) on server (same is with /rtc) and thank when you type command /veh server is searching first free car slot....and spawn new car as national guard because rhino is disappear(too army boats and hydra and hunter from dev zone).... But the most important bug for me is money on first spawn.... But also everythink is ok after server restart....but i dont want to restart server after every user registration... |
i need help the server is bugged
every i got crashed tutorials can not work the anti cheat ban and kick without reason can some one reply this command plz |
crashed? not in my case, did you put some FS on server?
Turorial works on my Raven...(v3.0 RC5) Can we make somethink to reset all player money before they register, before they type sex, continent, birthdate... (SafeResetPlayerMoney or somethink like that...) and freeze before reg... |