[Pomoc] Auta - Spawn nakon kupovine

Započeo GOLDSTYLE, April 26, 2011, 19:31:42 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 2 gostiju pregledaju ovu temu.

Skripta koju koristim:edit Reavens Roleplay 2.8
Detaljan opis problema:Znaci kada u salonu kupim auto i kucam ono da se ono pojavi, pojavi se ali u drugom gradu e mozel mi neko pomoci kako da napravim da kad kucam da se pojavi pored mene ili tu blizu
Dio skripte:
Neke slike/video za lakse dobivanje pomoci(neobavezno)://
Poslednja Izmena: April 26, 2011, 19:32:16 POSLE PODNE od BloodMaster.amx

Daj nam tu komandu u kojoj ukucas da se vozilo pojavi.

Da u ravenu nakon kupnje auta, auto se spawna na SF dockovima ili na LV Airportu.Evo da ti pomognem kako da resis taj problem. Odi u svoju skririptu, ctrl+f i kucaj "buy" ispod toga ces naci nesto kao ovo

       else if(strcmp(x_nr,"buy",true) == 0)
       {
           new car = 1;
           new model = GetVehicleModel(idcar);
           if(IsASalesVehicle(idcar))
           {
               if(PlayerInfo[playerid][pLevel] < 2)
    {
                    SendClientMessage(playerid, COLOR_GREY, "You need to be level 2 to buy a vehicle!");
                    return 1;
    }
    if(PlayerInfo[playerid][pPcarkey] == 9999 || PlayerInfo[playerid][pPcarkey2] == 9999) { }
    else return SendClientMessage(playerid, COLOR_GREY,"* You already own Two cars!");
if(GetPlayerMoney(playerid) >= GetVehiclePrice(idcar))
{
   if(PlayerInfo[playerid][pCarLic] == 1)
   {
for(new h = 1; h < sizeof(CarInfo); h++)
{
if(CarInfo[h][cOwned] == 0)
{
car = h;
h = 9999;
}
}
format(string, sizeof(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], sendername, 0, strlen(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(playerid, COLOR_YELLOW2, "Your Aircraft has been deliveried to Las Venturas Airport, you can get it there!");
SendClientMessage(playerid, COLOR_YELLOW2, "Your vehicle is unlocked so you can pay someone to deliver it to your new spawn point!");
SendClientMessage(playerid, COLOR_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!", 5000, 3);
}
else if(IsModelABoat(idcar))
{
       CarInfo[car][cLocationx] = -1568.9614;
CarInfo[car][cLocationy] = 169.0118;
CarInfo[car][cLocationz] = -0.6016;
CarInfo[car][cAngle] = 208.7506;
SendClientMessage(playerid, COLOR_YELLOW2, "Your Boat has been deliveried to San Fierro Docks, you can get it there!");
SendClientMessage(playerid, COLOR_YELLOW2, "Your vehicle is unlocked so you can pay someone to deliver it to your new spawn point!");
SendClientMessage(playerid, COLOR_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~San Fierro Docks!", 5000, 3);
}
else
{
                                                               CarInfo[car][cLocationx] = -1589.2644;
CarInfo[car][cLocationy] = 106.9119;
CarInfo[car][cLocationz] = 3.5495;
CarInfo[car][cAngle] = 317.1649;
SendClientMessage(playerid, COLOR_YELLOW2, "Your vehicle has been deliveried to San Fierro Docks, you can get it there!");
SendClientMessage(playerid, COLOR_YELLOW2, "Your vehicle is unlocked so you can pay someone to deliver it to your new spawn point!");
SendClientMessage(playerid, COLOR_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~San Fierro Docks!", 5000, 3);

}


ovo je ono sto ti trebas menjati , znaci zamenis svojim kordinatima.       
CarInfo[car][cLocationx] = ....;
CarInfo[car][cLocationy] = ....;
CarInfo[car][cLocationz] = ....;

I procitaj ovaj text Your Vehicle has been delivered, tu imas sta je poslano na dokove tako i ti menjas, Auto na kopnu, Heli i Avion na kopnu kordinate stavis, a brod stavis u vodi naravno.


Poslednja Izmena: April 26, 2011, 22:05:29 POSLE PODNE od -donpawn-
Menjam Steam 1800+ igrica za Molten WoW -Ragnaros accl! PM!!