I have bug on my driving test help me
#2

Try this:
pawn Код:
if(CCP[playerid] == 1)
{
    new vehicleid = GetPlayerVehicleID(playerid);
    if(IsATestCar(vehicleid))
    {
        new Float:health;
        GetVehicleHealth(vehicleid, health);
        if(health < 900.0)
        {
            SendClientMessage(playerid, COLOR_LIGHTBLUE,"Driver Instructor says: The car is to damaged!");
            SendClientMessage(playerid, COLOR_LIGHTBLUE,"Driver Instructor says: You didn't passed the test, please try again!");
            DisablePlayerCheckpoint(playerid);
            RemovePlayerFromVehicle(playerid);
            SetVehicleToRespawn(vehicleid);
            PlayerInfo[playerid][pTakingLesson] = 0;
            return 0;
        }
        DisablePlayerCheckpoint(playerid);
        CCP[playerid] = 2;
        SetPlayerCheckpoint(playerid, 1429.81,-1732.20,13.38, 10.0);
    }
    else
    {
        SendClientMessage(playerid, COLOR_LIGHTBLUE,"Driver Instructor says: You are not in a car!");
        SendClientMessage(playerid, COLOR_LIGHTBLUE,"Driver Instructor says: You didn't pass the test, please try again!");
        DisablePlayerCheckpoint(playerid);
        RemovePlayerFromVehicle(playerid);
        SetVehicleToRespawn(vehicleid);
        PlayerInfo[playerid][pTakingLesson] = 0;
        return 0;
    }
    return 1;
}
if(CCP[playerid] == 2)
{
    DisablePlayerCheckpoint(playerid);
    CCP[playerid] = 3;
    SetPlayerCheckpoint(playerid, 1820.42,-1732.44,13.38, 10.0);
    return 1;
}
Reply


Messages In This Thread
I have bug on my driving test help me - by Kenway - 29.01.2013, 13:50
Re: I have bug on my driving test help me - by Roach_ - 29.01.2013, 17:02
Re: I have bug on my driving test help me - by Kenway - 29.01.2013, 17:50
Re: I have bug on my driving test help me - by Roach_ - 29.01.2013, 17:58
Re: I have bug on my driving test help me - by Kenway - 29.01.2013, 18:21
Re: I have bug on my driving test help me - by Kenway - 30.01.2013, 11:23
Re: I have bug on my driving test help me - by Roach_ - 30.01.2013, 16:51

Forum Jump:


Users browsing this thread: 1 Guest(s)