SA-MP Forums Archive
Dar vehiculo al spawnear - 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: Dar vehiculo al spawnear (/showthread.php?tid=367083)



Dar vehiculo al spawnear - CeKiT - 08.08.2012

Hola a todos!

Como hago para al teleportarse a cierto tele por ejemplo /ls lo saque del vehiculo actual y le de un infernus



Gracias


Respuesta: Dar vehiculo al spawnear - TiNcH010 - 08.08.2012

Usб la misma funciуn, SetPlayerPos, pero usa SetVehiclePos. Luego puedes meter al jugador dentro del vehнculo a la fuerza mediante la funciуn PutPlayerInVehicle.


Respuesta: Dar vehiculo al spawnear - santi.arg - 08.08.2012

Usa ZCMD

PHP код:
CMD:ls(playeridparams[])
{
    if (
IsPlayerInAnyVehicle(playerid))
        
DestroyVehicle(GetPlayerVehicleID(playerid));
    
    new 
veh CreateVehicle(411Float:xFloat:yFloat:zFloat:angle, -1, -12000);
    
PutPlayerInVehicle(playeridveh0);
    
    return 
1;

Reemplazб X, Y, y Z y el бngulo por las coordenadas de Los Santos.


Respuesta: Dar vehiculo al spawnear - CeKiT - 08.08.2012

Gracias a los dos