Jump to content
  • 0

Question

4 answers to this question

Recommended Posts

  • 0
Posted

    new string[100];
    if(CP[playerid] == 100 && ccar && IsPlayerInVehicle(playerid, examcar[playerid]))
       {
        DisablePlayerRaceCheckpoint(playerid);
        SetPlayerRaceCheckpoint(playerid, 0, 1173.0288,-1842.1029,13.4076,1073.5226,-1849.5785,13.3915, 4.0);
        CP[playerid] = 101;
        format(string, sizeof(string), "~w~CHECKPOINTS: ~r~1~w~/~r~12");
        PlayerTextDrawSetString(playerid, DMVcheck[playerid], string);
    }
    else if(CP[playerid] == 101 && ccar && IsPlayerInVehicle(playerid, examcar[playerid]))
    {
        DisablePlayerRaceCheckpoint(playerid);
        SetPlayerRaceCheckpoint(playerid,0, 1073.5226,-1849.5785,13.3915,928.6128,-1771.5583,13.4154, 4.0);
        CP[playerid] = 102;
        format(string, sizeof(string), "~w~CHECKPOINTS: ~r~2~w~/~r~12");
        PlayerTextDrawSetString(playerid, DMVcheck[playerid], string);
    }
    else if(CP[playerid] == 102 && ccar && IsPlayerInVehicle(playerid, examcar[playerid]))
    {
        DisablePlayerRaceCheckpoint(playerid);
        SetPlayerRaceCheckpoint(playerid,0, 928.6128,-1771.5583,13.4154,919.9623,-1583.3364,13.3828, 4.0);
        CP[playerid] = 103;
        format(string, sizeof(string), "~w~CHECKPOINTS: ~r~3~w~/~r~12");
        PlayerTextDrawSetString(playerid, DMVcheck[playerid], string);
    }
    else if(CP[playerid] == 103 && ccar && IsPlayerInVehicle(playerid, examcar[playerid]))
    {
        DisablePlayerRaceCheckpoint(playerid);
        SetPlayerRaceCheckpoint(playerid,0, 919.9623,-1583.3364,13.3828,986.9628,-1574.6317,13.3828, 4.0);
        CP[playerid] = 104;
        format(string, sizeof(string), "~w~CHECKPOINTS: ~r~4~w~/~r~12");
        PlayerTextDrawSetString(playerid, DMVcheck[playerid], string);
    }
    else if(CP[playerid] == 104 && ccar && IsPlayerInVehicle(playerid, examcar[playerid]))
    {
        DisablePlayerRaceCheckpoint(playerid);
        SetPlayerRaceCheckpoint(playerid,0, 986.9628,-1574.6317,13.3828,1027.0857,-1574.8798,13.3828, 4.0);
        CP[playerid] = 105;
        format(string, sizeof(string), "~w~CHECKPOINTS: ~r~5~w~/~r~12");
        PlayerTextDrawSetString(playerid, DMVcheck[playerid], string);
    }
    else if(CP[playerid] == 105 && ccar && IsPlayerInVehicle(playerid, examcar[playerid]))
    {
        DisablePlayerRaceCheckpoint(playerid);
        SetPlayerRaceCheckpoint(playerid,0, 1027.0857,-1574.8798,13.3828,1131.1912,-1574.7911,13.3437, 4.0);
        CP[playerid] = 106;
        format(string, sizeof(string), "~w~CHECKPOINTS: ~r~6~w~/~r~12");
        PlayerTextDrawSetString(playerid, DMVcheck[playerid], string);
    }
    else if(CP[playerid] == 106 && ccar && IsPlayerInVehicle(playerid, examcar[playerid]))
    {
        DisablePlayerRaceCheckpoint(playerid);
        SetPlayerRaceCheckpoint(playerid,0, 1131.1912,-1574.7911,13.3437,1237.6929,-1574.5093,13.3828, 4.0);
        CP[playerid] = 107;
        format(string, sizeof(string), "~w~CHECKPOINTS: ~r~7~w~/~r~12");
        PlayerTextDrawSetString(playerid, DMVcheck[playerid], string);
    }
    else if(CP[playerid] == 107 && ccar && IsPlayerInVehicle(playerid, examcar[playerid]))
    {
        DisablePlayerRaceCheckpoint(playerid);
        SetPlayerRaceCheckpoint(playerid,0, 1237.6929,-1574.5093,13.3828,1290.1370,-1574.9191,13.3828, 4.0);
        CP[playerid] = 108;
        format(string, sizeof(string), "~w~CHECKPOINTS: ~r~8~w~/~r~12");
        PlayerTextDrawSetString(playerid, DMVcheck[playerid], string);
    }
    else if(CP[playerid] == 108 && ccar && IsPlayerInVehicle(playerid, examcar[playerid]))
    {
        DisablePlayerRaceCheckpoint(playerid);
        SetPlayerRaceCheckpoint(playerid, 0,1290.1370,-1574.9191,13.3828,1295.2000,-1699.4351,13.3828, 4.0);
        CP[playerid] = 109;
        format(string, sizeof(string), "~w~CHECKPOINTS: ~r~9~w~/~r~12");
        PlayerTextDrawSetString(playerid, DMVcheck[playerid], string);
    }
    else if(CP[playerid] == 109 && ccar && IsPlayerInVehicle(playerid, examcar[playerid]))
    {
        DisablePlayerRaceCheckpoint(playerid);
        SetPlayerRaceCheckpoint(playerid,0, 1295.2000,-1699.4351,13.3828,1100.5679,-1738.3038,13.5471, 4.0);
        CP[playerid] = 110;
        format(string, sizeof(string), "~w~CHECKPOINTS: ~r~10~w~/~r~12");
        PlayerTextDrawSetString(playerid, DMVcheck[playerid], string);
    }
    else if(CP[playerid] == 110 && ccar && IsPlayerInVehicle(playerid, examcar[playerid]))
    {
        DisablePlayerRaceCheckpoint(playerid);
        SetPlayerRaceCheckpoint(playerid,1, 1100.5679,-1738.3038,13.5471,0,0,0, 4.0);
        CP[playerid] = 111;
        format(string, sizeof(string), "~w~CHECKPOINTS: ~r~11~w~/~r~12");
        PlayerTextDrawSetString(playerid, DMVcheck[playerid], string);
    }
    else if(CP[playerid] == 111 && ccar && IsPlayerInVehicle(playerid, examcar[playerid]))
    {
        PlayerTextDrawHide(playerid, DMVexam[playerid]);
        PlayerTextDrawHide(playerid, DMVcheck[playerid]);
        DisablePlayerRaceCheckpoint(playerid);
        PlayerInfo[playerid][pCarLic] = 1;
        PlayerInfo[playerid][pCarLicT] = 100;
        TakingLesson[playerid] = 0;
        DestroyVehicle(examcar[playerid]);
        DisableRemoteVehicleCollisions(playerid, 0);
        examcar[playerid] = -1;
        DestroyDynamicObject(GetPVarInt(playerid, "ObjExam"));
        new str1[128];
        mysql_format(SQL,str1,sizeof(str1),"UPDATE users SET `CarLic`='1',`CarLicT`='100' WHERE `name`='%s'",PlayerInfo[playerid][pNormalName]);
        mysql_tquery(SQL,str1,"","");
        SendClientMessage(playerid, COLOR_LIGHTGREEN, "Ai primit licenta de condus pentru 100 de ore. Felicitari!");
        CP[playerid] = 0;
    }
    return 1;
}

 

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.