Problema con funcion KEY
#7

pawn Код:
if(newkeys == KEY_HANDBRAKE)
    {

        new newcar = GetPlayerVehicleID(playerid);
        new string[256];

        if(IsPlayerInAnyVehicle(playerid))
        {
            if(IsPlayerConnected(playerid))
            {
                if(engineOn[newcar] == 0)
                {
                    if(IsABike(newcar) || IsATrain(newcar) || IsASweeper(newcar) || IsAPlane(newcar)) { return 1; }
                                        if(GetPlayerState(playerid) == PLAYER_STATE_PASSENGER) { return 1; }
                                        if(IsAnOwnableCar(newcar)) { if(PlayerInfo[playerid][pPcarkey] == newcar) { } else { return 1; } }
                    format(string, sizeof(string), "* %s intenta prender el motor del vehiculo.", NombreJugador(playerid));
                    ProxDetector(30.0, playerid, string, COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW);
                    // aca va el timer de prender el motor del vehнculo, no se como lo tenes vos...
                    gEngine[playerid] = 1;
                    return 1;
                }
            }
        }
    }
Reply


Messages In This Thread
Problema con funcion KEY - by santo_zoketaso - 02.11.2011, 20:53
Respuesta: Problema con funcion KEY - by Jovanny - 02.11.2011, 21:06
Respuesta: Problema con funcion KEY - by santo_zoketaso - 02.11.2011, 21:26
Respuesta: Problema con funcion KEY - by TiNcH010 - 02.11.2011, 21:30
Respuesta: Problema con funcion KEY - by Synyster - 02.11.2011, 23:25
Respuesta: Problema con funcion KEY - by santo_zoketaso - 03.11.2011, 00:02
Respuesta: Problema con funcion KEY - by TiNcH010 - 03.11.2011, 00:26
Respuesta: Problema con funcion KEY - by santo_zoketaso - 03.11.2011, 00:32
Respuesta: Problema con funcion KEY - by TiNcH010 - 03.11.2011, 01:22
Re: Problema con funcion KEY - by dis77urbio - 03.11.2011, 01:25

Forum Jump:


Users browsing this thread: 1 Guest(s)