Ayuda con comando grua - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: Non-English (
https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (
https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Español/Spanish (
https://sampforum.blast.hk/forumdisplay.php?fid=29)
+---- Thread: Ayuda con comando grua (
/showthread.php?tid=415086)
Ayuda con comando grua -
telerinrin - 11.02.2013
Hola, soy mecanico en mi server, y no se como remolcar coche, el comando /remolcar, no funciona, nose que comando es... en /ayuda faccion, tampoco sale nada (de que me sirve grua sin eso)
Grax!! Urge!
Respuesta: Ayuda con comando grua -
CrossOv3r - 11.02.2013
Trata de buscar todo lo que tenga que ver con "remolcar" en el gamemode.
Respuesta: Ayuda con comando grua -
devilcome - 11.02.2013
me parece que cuando apretabas "2" del teclado numerico pequeсo podias remolcar autos
Respuesta: Ayuda con comando grua -
OTACON - 11.02.2013
GetVehicleTrailer Obtener el ID del remolque unido a un vehнculo.
IsTrailerAttachedToVehicle Comprueba si un vehнculo tiene un remolque enganchado a ella.
DetachTrailerFromVehicle Separe la conexiуn entre un vehнculo y su remolque, si los hubiere.
AttachTrailerToVehicle Adjuntar un vehнculo a otro vehнculo como un remolque.
pawn Код:
if(strcmp(cmd,"/remolcar",true)==0)
{
if(IsPlayerConnected(playerid))
{
if(IsPlayerInAnyVehicle(playerid))
{
if (GetVehicleModel(GetPlayerVehicleID(playerid)) == 525)
{
if(GetPlayerState(playerid)==2)
{
new Float:pX,Float:pY,Float:pZ;
GetPlayerPos(playerid,pX,pY,pZ);
new Float:vX,Float:vY,Float:vZ;
new Found=0;
new vid=0;
while((vid<MAX_VEHICLES)&&(!Found))
{
vid++;
GetVehiclePos(vid,vX,vY,vZ);
if ((floatabs(pX-vX)<7.0)&&(floatabs(pY-vY)<7.0)&&(floatabs(pZ-vZ)<7.0)&&(vid!=GetPlayerVehicleID(playerid)))
{
Found=1;
if(IsTrailerAttachedToVehicle(GetPlayerVehicleID(playerid)))
{
DetachTrailerFromVehicle(GetPlayerVehicleID(playerid));
}
else
{
AttachTrailerToVehicle(vid,GetPlayerVehicleID(playerid));
}
}
}
if(!Found)
{
SendClientMessage(playerid,0xFFFF00AA,"No hay Ningun vehiculo cerca para remolcar.");
}
}
else
{
SendClientMessage(playerid, COLOR_GRAD2, "Tienes que ser el Conductor para poder remolacar!");
return 1;
}
}
else
{
SendClientMessage(playerid, COLOR_GRAD2, "Nesesitas estar en una Grua para Remolcar!");
return 1;
}
}
else
{
SendClientMessage(playerid, COLOR_GRAD2, "No puedes remolcar a pie!");
return 1;
}
}
return 1;
}