[Pomoc] Helikopter

Započeo Petar Pan, Avgust 10, 2011, 20:27:14 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 2 gostiju pregledaju ovu temu.

Skripta koju koristim:PG
Detaljan opis problema:Kupio sam motor i otisao da kupim helikopter ukucao /kupiheli i pise da vec imam motor kako da namjestim da moze kupiti helikopter a da nema nikakve veze sa motorom

CMD:kupiheli(playerid, params[])
{
new string[128];
new sendername[MAX_PLAYER_NAME];
    if (HeliSpectating[playerid][0]!=-1)
    {
        if (Helist[playerid][HTyp] ==-1)
        {
            new price = HeliBuylist[HeliSpectating[playerid][0]][HPrice];
            if (price <= GetPlayerCash(playerid))
            {
new motohaus=HeliBuylist[HeliSpectating[playerid][0]][HAutohaus];
            GivePlayerCash(playerid, - price);
Helist[playerid][HCijena] = HeliBuylist[HeliSpectating[playerid][0]][HPrice];
PlayerInfo[playerid][pVoziloSpawnano] = 0;
            Helist[playerid][HTyp]=HeliSpectating[playerid][0]; Helist[playerid][HEX]=Helispawns[motohaus][HX]; Helist[playerid][HEY]=Helispawns[motohaus][HY];
Helist[playerid][HEZ]=Helispawns[motohaus][HZ]; Helist[playerid][HRotation]=Helispawns[motohaus][HRotation];  Helist[playerid][HLock]=0;
Helist[playerid][HTyp] = 1;
//---------------
new string1[128];
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string1, sizeof(string1), "%s",sendername);
strmid(Helist[playerid][HVlasnik], string1, 0, strlen(string1), 255);
//------------------
new heli;
heli = GetVehicleModel(HeliBuylist[HeliSpectating[playerid][0]][HCarid]);
Helist[playerid][HModel] = heli;
Helist[playerid][HCijena] = HeliBuylist[HeliSpectating[playerid][0]][HPrice];
        SetVehicleParamsForAll(HeliBuylist[HeliSpectating[playerid][0]][HCarid],0,0);
        TogglePlayerControllable(playerid,1);
TextDrawHideForPlayer(playerid, imevozila[playerid]);
TextDrawHideForPlayer(playerid, cijenavozila[playerid]);
TextDrawHideForPlayer(playerid, registracijavozila[playerid]);
HeliSave(playerid);
        HeliSpectating[playerid][0]=-1;
        RemovePlayerFromVehicle(playerid);
format(string,128,"Cestitamo! Kupio si novi helikopter za %i$!",price);
SendClientMessage(playerid, 0x8888C4FF, string);
SendClientMessage(playerid, 0x9B9BCDFF, "Vozila nestaju kada se diskonektujete sa servera.");
SendClientMessage(playerid, 0xA2A2D0FF, "Vracaju se nakon sto se vi konektujete.");
SendClientMessage(playerid, 0xAEAED6FF, "Ostalo: (/he)likopter.");
SendClientMessage(playerid, 0xB9B9DBFF, "Kucaj /he spawn da spawnas motor, samo pazi da nema objekata u blizini.");
SendClientMessage(playerid, 0xC0C0DEFF, "Cuvaj ovaj helikopter, i naravno puno srece sa njim!");
}
                else { format(string, 128, "Nemas dovoljno novca! ($%i)!", price); SendClientMessage(playerid, COLOR_LIGHTRED, string); }
}
else { SendClientMessage(playerid, COLOR_GREY, "Vec imas motor"); }
    }
    else { SendClientMessage(playerid, COLOR_GREY, "Nisi u izlozbenom helikopteru!"); }
    return 1;
}

Dio skripte:?
Neke slike/video za lakse dobivanje pomoci(neobavezno)://////


else { SendClientMessage(playerid, COLOR_GREY, "Vec imas motor"); } Zamijeni sa:
else { SendClientMessage(playerid, COLOR_GREY, "Vec imas helic"); }
Možda mogne... :-\

[quote author=[B-City] Petar Pan link=topic=29585.msg223032#msg223032 date=1313000834]

CMD:kupiheli(playerid, params[])



SendClientMessage(playerid, 0xB9B9DBFF, "Kucaj /he spawn da spawnas motor, samo pazi da nema objekata u blizini.");

else { SendClientMessage(playerid, COLOR_GREY, "Vec imas motor"); }
   



[/quote]


Na dva mjesta pise motor, probaj to izmjeniti
Last nick: Vectro64


new motohaus=HeliBuylist[HeliSpectating[playerid][0]][HAutohaus];
new helihouse probaj.... ::)