09.09.2014, 16:14
Usa esto y dime que tal.
Es un cуdigo cutre, luego puedes aсadirle el mensaje de "ЎNo tienes un remolque creado!" y mil locuras mбs, agradece que te lo he hecho como mнnimo.. Te recuerdo que estб en zCMD.
pawn Код:
new miRemolque[MAX_PLAYERS];
CMD:cremolque(playerid, params[])
{
new Float:pPosicion[3];
GetPlayerPos(playerid, pPosicion[0], pPosicion[1], pPosicion[2]);
miRemolque[playerid] = CreateVehicle(611,pPosicion[0], pPosicion[1], pPosicion[2], 0, 0, 0, 0);
return 1;
}
CMD:vremolque(playerid, params[]) //Esto coloca el remolque, tъ le puedes aсadir un if que detecte la distancia..
{
AttachTrailerToVehicle(miRemolque[playerid], GetPlayerVehicleID(playerid));
}