Ayuda con /v park
#1

Hola Amigos!
Les queria pedir ayuda para hacer que mi comando /v park , Estacione el Auto mas no lo repare, Aqui el Comando:

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 { 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)
                    {
                        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~ Has estacionadado tu vehiculo en esta posicion. ~n~");
                        GameTextForPlayer(playerid, "Si el servidor se reinicia o el auto explota, Deberas buscarlo en el ultimo lugar que lo aparkaste.", 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;
                    }
                }
        }
Reply
#2

Ami tambien me gustaria eso
Reply
#3

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 { 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)
{
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~ Has estacionadado tu vehiculo en esta posicion. ~n~");
GameTextForPlayer(playerid, "Si el servidor se reinicia o el auto explota, Deberas buscarlo en el ultimo lugar que lo aparkaste.", 10000, 3);
OnPropUpdate();
OnPlayerUpdate(playerid);
TogglePlayerControllable(playerid, 1);
return 1;
  }
}
    }
Seria asн, no crees?
Reply
#4

Diosss, Te Crees que sabes Mucho Eh? "Nombre_Apellido"

PD: No, NO ES ASI
Reply
#5

E, que encima que intento ayudar me tratas asн, despreciando mi atenciуn.
Y encima faltandome el respeto con esa frase.
Quote:

Te Crees que sabes Mucho Eh?

PD: te pasa algo con mi nombre?, o es que te molesta?
Reply
#6

Cuando Aprendas Hablar Espaсol Hablamos.
Reply
#7

Quote:
Originally Posted by Jesus^
Cuando Aprendas Hablar Espaсol Hablamos.
Eso a que viene ?
Esto es para ayudar, no para comentar lo que hace la gente.
Reply
#8

Pasa estos 2 callbacks que te pido:

pawn Код:
OnPropUpdate();
OnPlayerUpdate(playerid);
A lo mejor ahi puede aver alguna referencia en cuanto a repairvehicule.
Reply
#9

Quote:
Originally Posted by xenowort
Pasa estos 2 callbacks que te pido:

pawn Код:
OnPropUpdate();
OnPlayerUpdate(playerid);
A lo mejor ahi puede aver alguna referencia en cuanto a repairvehicule.
Eso lo que hace es, "Modificar el cars.cfg" por decirlo asi.
Reply
#10

Quote:
Originally Posted by Roymer
Quote:
Originally Posted by xenowort
Pasa estos 2 callbacks que te pido:

pawn Код:
OnPropUpdate();
OnPlayerUpdate(playerid);
A lo mejor ahi puede aver alguna referencia en cuanto a repairvehicule.
Eso lo que hace es, "Modificar el cars.cfg" por decirlo asi.
Claro, pero que pase el callback aveces pasa que por "bugs" se reparan.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)