15.04.2013, 19:43
Soy nuevo scripteando y no se como se harнa eso, їme podrнan ayudar por favor?
Este es el CMD /v estacionar.
Este es el CMD /v estacionar.
Код:
else if(strcmp(params[0],"estacionar",true) == 0)
{
if(GetPlayerState(playerid) != PLAYER_STATE_DRIVER) return Message(playerid, COLOR_GREY, "No eres el conductor.");
if(IsAnOwnableCar(idcar))
{
if(PlayerInfo[playerid][pPcarkey] == 9999) return Message(playerid, COLOR_GREY, "Usted no tiene un coche.");
if(idcar == PlayerInfo[playerid][pPcarkey])
{
GetVehiclePos(idcar, x, y, z);
GetVehicleZAngle(idcar, a);
CarInfo[idcar][cLocationx] = x;
CarInfo[idcar][cLocationy] = y;
CarInfo[idcar][cLocationz] = z;
CarInfo[idcar][cAngle] = a;
Message(playerid, COLOR_GRAD2, "Nuevas coordenadas guardadas. ЎAhora el vehнculo aparecerб aqui!");
OnPropUpdate(2);
return 1;
}
else return Message(playerid, COLOR_GREY, "No estбs en tu vehнculo!");
}
}

