/v park bug larp
#1

When i type /v park on gamemode larp, the car disappear, how to resolve?
Reply
#2

Can you show me the command /v park in the script please?
Reply
#3

dont use it.
Reply
#4

Quote:
Originally Posted by maramizo
Посмотреть сообщение
Can you show me the command /v park in the script please?
pawn Код:
else if(strcmp(x_nr,"estacionar",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)
                {
                    if(PlayerInfo[playerid][pPcarkey] == 999 && PlayerInfo[playerid][pPcarkey2] == 999 & PlayerInfo[playerid][pPcarkey3])
                    {
                        SendClientMessage(playerid, COLOR_GREY, "Vocк nгo tem um carro.");
                        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~ Voce estacionou o veiculo aqui. ~n~");
                        GameTextForPlayer(playerid, "Voce estacionou o veiculo nesta posicao, ele dara spawn aqui.", 10000, 3);
                        OnPropUpdate();
                        OnPlayerUpdate(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;
                    }
                }
            }
i have changed my car system
Reply
#5

Quote:
Originally Posted by Macluawn
Посмотреть сообщение
dont use it.
I lol'd

Quote:
Originally Posted by GuikBretas
Посмотреть сообщение
pawn Код:
else if(strcmp(x_nr,"estacionar",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)
                {
                    if(PlayerInfo[playerid][pPcarkey] == 999 && PlayerInfo[playerid][pPcarkey2] == 999 & PlayerInfo[playerid][pPcarkey3])
                    {
                        SendClientMessage(playerid, COLOR_GREY, "Vocк nгo tem um carro.");
                        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~ Voce estacionou o veiculo aqui. ~n~");
                        GameTextForPlayer(playerid, "Voce estacionou o veiculo nesta posicao, ele dara spawn aqui.", 10000, 3);
                        OnPropUpdate();
                        OnPlayerUpdate(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;
                    }
                }
            }
i have changed my car system
Double lol'd.
If you changed it, why ask for help?
Reply
#6

/v park don't work! the car disappear!!! how to resolve!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)