Jump to content
  • 0

Question

Posted

Am comanda /v park adaugata pe sv inainte mergea dar de cand am facut update pe 0.3x  nu mai merge:

[pawn]         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] && PlayerInfo[playerid][pDonateRank] >= 1) { carid = PlayerInfo[playerid][pPcarkey3]; }

else if(GetPlayerVehicleID(playerid) == PlayerInfo[playerid][pPcarkey4] && PlayerInfo[playerid][pDonateRank] >= 2) { carid = PlayerInfo[playerid][pPcarkey4]; }

else if(GetPlayerVehicleID(playerid) == PlayerInfo[playerid][pPcarkey5] && PlayerInfo[playerid][pDonateRank] >= 2) { carid = PlayerInfo[playerid][pPcarkey5]; }

else if(GetPlayerVehicleID(playerid) == PlayerInfo[playerid][pPcarkey6] && PlayerInfo[playerid][pDonateRank] >= 3) { carid = PlayerInfo[playerid][pPcarkey6]; }

else if(GetPlayerVehicleID(playerid) == PlayerInfo[playerid][pPcarkey7] && PlayerInfo[playerid][pDonateRank] >= 3) { carid = PlayerInfo[playerid][pPcarkey7]; }

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)

{

  if(PlayerInfo[playerid][pPcarkey] == 999 && PlayerInfo[playerid][pPcarkey2] == 999 && PlayerInfo[playerid][pPcarkey3] == 999 && PlayerInfo[playerid][pPcarkey4] == 999 && PlayerInfo[playerid][pPcarkey5] == 999 && PlayerInfo[playerid][pPcarkey6] == 999 & PlayerInfo[playerid][pPcarkey7])

{

SendClientMessage(playerid, COLOR_GREY, "You don't own a car.");

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~ You have parked your vehicle in this location. ~n~");

GameTextForPlayer(playerid, "You have parked your vehicle in this position. It will respawn here.", 10000, 3);

OnPropUpdate();

OnPlayerUpdate(playerid);

DestroyVehicle(carid);

SetVehicleNumberPlate(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),CarInfo[carid][cLicense]);

                        if(CarInfo[carid][cPaintjob] != 999)

{

ChangeVehiclePaintjob(carid, CarInfo[carid][cPaintjob]);

}

SetVehicleModifications(carid);

SaveVehicleComponents(carid);

TogglePlayerControllable(playerid, 1);

return 1;

  }

}

        }[/pawn]

Stie cineva ce are??

Multumesc Pentru ajutor

4 answers to this question

Recommended Posts

Posted

In ce sens nu iti functioneaza? [Nu mai functioneaza Deloc.. Are Bug cad dai /v park].

Ai incercat sa dai Update la Plugins-uri, unele Include-uri?

Posted

Am comanda /v park adaugata pe sv inainte mergea dar de cand am facut update pe 0.3x  nu mai merge:

Imposibil sa nu mearga chiar dac acuma e 0.3x

 

logo.png

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.