Autos con /car
#3

pawn Код:
// En OnPlayerCommandText:

if(strcmp(cmdtext, "/car", true) == 0)
{
        new Car[MAX_PLAYERS];
        new Float:vPos[MAX_PLAYERS][3];
        DestroyVehicle(Car[playerid]);
        GetPlayerPos(playerid,vPos[playerid][0],vPos[playerid][1],vPos[playerid][2]);
        Car[playerid]=CreateVehicle(ID-DEL-CAR,vPos[playerid][0],vPos[playerid][1],vPos[playerid][2],0,-1,-1,30000); // Respawnea en 30 segundos. (si no lo usas)
        PutPlayerInVehicle(playerid,Auto[playerid], 0); // Ponemos al jugador dentro del vehнculo en el asiento del conductor.
        return 1;
}
Reply


Messages In This Thread
Autos con /car - by [CDL]NiCkO[DK] - 04.08.2012, 20:41
Respuesta: Autos con /car - by adrianxd - 04.08.2012, 21:24
Respuesta: Autos con /car - by TiNcH010 - 04.08.2012, 22:29

Forum Jump:


Users browsing this thread: 1 Guest(s)