/llave1
#2

no sй como tengas definida la variable de los vehнculos, pero podrнas usar algo como esto:
PHP код:
if (strcmp("/llave1"cmdtexttrue10) == 0)
{
    for(new 
0sizeof(Coche); h++) // Existen varias llaves ??
    
{
        if(
Informacion[playerid][LlaveCoche1] != && Informacion[playerid][LlaveCoche1] == h)
        {
            new 
Float:x,Float:y,Float:z;
            
GetVehiclePos(Coche[h], Float:xFloat:yFloat:z);
            if (
IsPlayerInRangeOfPoint(playerid7.0xyz))
            {
                if(
Coche[h][Cerradura] == 0Coche[h][Cerradura] = 1;
                else if(
Coche[h][Cerradura] == 1Coche[h][Cerradura] = 0;
            }
        }
    }
    return 
1;

Use "Coche[h]" como si fuera el vehнculo.
Reply


Messages In This Thread
/llave1 - by ivibeserro - 11.03.2016, 21:14
Respuesta: /llave1 - by DragonZafiro - 11.03.2016, 22:24
Re: /llave1 - by ivibeserro - 14.03.2016, 20:45
Respuesta: Re: /llave1 - by DragonZafiro - 15.03.2016, 00:43
Re: /llave1 - by ivibeserro - 15.03.2016, 22:20

Forum Jump:


Users browsing this thread: 3 Guest(s)