[pomoc] /v park

Započeo Rabiosa, Oktobar 14, 2011, 15:34:29 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 2 gostiju pregledaju ovu temu.

mod:  Balkan Underground

problem: ja kada kucam u svom autu /v park auto mi se normalno sacuva ali na nekim autima kada ja kucam /v park stvori mi se novo auto tj npr imam infernusa a nakon parkanja stvori mi se bulet....a pregledo sam sva auta i u modu i u cfg sve se poklapa i ok je sve.....al samo je problem sto se promjeni auto

dio skripte: evo vam park komanda
else if(strcmp(x_nr,"park",true) == 0)
        {
            new Float:x,Float:y,Float:z;
new Float:a;
new carid;
new getcarid;
if(GetPlayerVehicleID(playerid) == PlayerInfo[playerid][pPcarkey]) { carid = PlayerInfo[playerid][pPcarkey]; }
else if(GetPlayerVehicleID(playerid) == PlayerInfo[playerid][pPcarkey2]) { carid = PlayerInfo[playerid][pPcarkey2]; }
else if(GetPlayerVehicleID(playerid) == PlayerInfo[playerid][pPcarkey3]) { carid = PlayerInfo[playerid][pPcarkey3]; }
else { return 1; }
getcarid = GetPlayerVehicleID(playerid);
GetPlayerName(playerid, playername, sizeof(playername));
GetVehiclePos(carid, x, y, z);
//GetPlayerFacingAngle(playerid, a);
GetVehicleZAngle(carid, a);
if(IsPlayerInVehicle(playerid,carid) && CarInfo[carid][cOwned] == 1)
{
              new Float:health;
              GetVehicleHealth(GetPlayerVehicleID(playerid),health);
if(health >= 600)//gigicar
{
    if(PlayerInfo[playerid][pPcarkey] == 999 && PlayerInfo[playerid][pPcarkey2] == 999 & PlayerInfo[playerid][pPcarkey3])
{
SendClientMessage(playerid, COLOR_GREY, "Nemate auto.");
return 1;
}
if(getcarid == carid)
{
CarInfo[carid][cLocationx] = x;
CarInfo[carid][cLocationy] = y;
CarInfo[carid][cLocationz] = z;
CarInfo[carid][cAngle] = a;
format(string, sizeof(string), "~n~ Parkirali ste vozilo na ovoj lokaciji. ~n~");
GameTextForPlayer(playerid, "Parkirali ste vozilo ovdje. Ovdje ce se respawnovati.", 10000, 3);
OnPropUpdate();
OnPlayerUpdateCustom(playerid);
DestroyVehicle(carid);
CreateVehicle(CarInfo[carid][cModel],CarInfo[carid][cLocationx],CarInfo[carid][cLocationy],CarInfo[carid][cLocationz]+1.0,CarInfo[carid][cAngle],CarInfo[carid][cColorOne],CarInfo[carid][cColorTwo],60000);
TogglePlayerControllable(playerid, 1);
return 1;
    }
}
else
{
SendClientMessage(playerid,COLOR_WHITE,"Ne mozete koristiti ovu komadnu jer vam je vozilo osteceno!");
SendClientMessage(playerid,COLOR_WHITE,"Prvo ga popravite kako bi ste ga mogli parkirati!");
}
}
        }


slike ili video:/

Molim vas pomozite mi jako mi je bitno !
Respect to:
[BD]Gagi

Nije do skripte nadji vehicales u scripfiles :S


sta kazes ti?
Respect to:
[BD]Gagi