[Ayuda] Enganchar remolque
#5

Usa esto y dime que tal.
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));
}
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.
Reply


Messages In This Thread
[Ayuda] Enganchar remolque - by MrNatrio - 09.09.2014, 14:04
Respuesta: [Ayuda] Enganchar remolque - by OTACON - 09.09.2014, 14:10
Re: Respuesta: [Ayuda] Enganchar remolque - by MrNatrio - 09.09.2014, 14:48
Respuesta: [Ayuda] Enganchar remolque - by Alexander11 - 09.09.2014, 15:50
Respuesta: [Ayuda] Enganchar remolque - by xHanks - 09.09.2014, 16:14
Respuesta: [Ayuda] Enganchar remolque - by Alexander11 - 09.09.2014, 16:17
Re: [Ayuda] Enganchar remolque - by MrNatrio - 09.09.2014, 16:29
Respuesta: [Ayuda] Enganchar remolque - by xHanks - 09.09.2014, 16:30
Re: Respuesta: [Ayuda] Enganchar remolque - by MrNatrio - 09.09.2014, 16:53
Respuesta: [Ayuda] Enganchar remolque - by xHanks - 09.09.2014, 17:18

Forum Jump:


Users browsing this thread: 4 Guest(s)