Ayuda Funcion --> coches
#6

Trata de usar asi:

pawn Код:
if(strcmp(cmd, "/agregaraleron", true) == 0)
    {  
        if(!IsPlayerInAnyVehicle(playerid))
        {
            SendClientMessage(playerid, COLOR_GREY, "No Estas En un coche !");
            return 1;
        }
        new car = GetPlayerVehicleID(playerid);
        if(car == AUTOID || car == AUTOID) // CAMBIA AUTOID POR EL ID DEL AUTO AL QUE NO SE LE PUEDE AGREGAR EL ALERON, SI QUIERES MAS SIMPLEMENTE "ALARGA" LA FUNCION if...
        {
            SendClientMessage(playerid, COLOR, "No puedes agregar Aleron en Este Vehiculo!"); // Aqui cambia COLOR por un Color..
            return 1;
        }
        AddVehicleComponent(car,1003);
        SendClientMessage(playerid, COLOR_GREY, "Has Agregado aleron al Coche !");
        return 1;
    }
Reply


Messages In This Thread
Ayuda Funcion --> coches - by Fede.Zink - 02.08.2011, 23:38
Respuesta: Ayuda Funcion --> coches - by Lunnatiicz - 03.08.2011, 00:07
Respuesta: Ayuda Funcion --> coches - by Fede.Zink - 03.08.2011, 01:10
Respuesta: Ayuda Funcion --> coches - by TheChaoz - 03.08.2011, 02:07
Respuesta: Ayuda Funcion --> coches - by VetoBarrera - 03.08.2011, 03:38
Respuesta: Ayuda Funcion --> coches - by [TF]Death_Ghost - 03.08.2011, 03:46
Respuesta: Ayuda Funcion --> coches - by Fede.Zink - 03.08.2011, 09:56
Respuesta: Ayuda Funcion --> coches - by [TF]Death_Ghost - 03.08.2011, 19:39

Forum Jump:


Users browsing this thread: 3 Guest(s)