Help,Checkpoints
#1

pawn Код:
forward DriveCheck1(playerid)
public DriveCheck1(playerid)
{
    if(IsPlayerInAnyVehicle(playerid))
        {
            new vehicleid = GetPlayerVehicleID(playerid);
            if(IsATestingCar(vehicleid))
                {
                SetPlayerCheckpoint(playerid,1206.1053,-1570.3756,13.0115,5);
                }
            else
            {
            GameTextForPlayer(playerid,"You lost your testing car!",5000,5);
            }
        }
}

forward DriveCheck2(playerid)
public DriveCheck2(playerid)
{
    if(IsPlayerInAnyVehicle(playerid))
        {
            new vehicleid = GetPlayerVehicleID(playerid);
            if(IsATestingCar(vehicleid))
                {
                SetPlayerCheckpoint(playerid,1196.9167,-1400.6290,12.8755,5);
                }
            else
            {
            GameTextForPlayer(playerid,"You lost your testing car!",5000,5);
            }
        }
}

forward DriveCheck3(playerid)
public DriveCheck3(playerid)
{
    if(IsPlayerInAnyVehicle(playerid))
        {
            new vehicleid = GetPlayerVehicleID(playerid);
            if(IsATestingCar(vehicleid))
                {
                SetPlayerCheckpoint(playerid,918.6316,-1397.8654,12.8581,5);
                }
            else
            {
            GameTextForPlayer(playerid,"You lost your testing car!",5000,5);
            }
        }
}

forward DriveCheck4(playerid)
public DriveCheck4(playerid)
{
    if(IsPlayerInAnyVehicle(playerid))
        {
            new vehicleid = GetPlayerVehicleID(playerid);
            if(IsATestingCar(vehicleid))
                {
                SetPlayerCheckpoint(playerid,915.6722,-1566.8030,13.0073,5);
                }
            else
            {
            GameTextForPlayer(playerid,"You lost your testing car!",5000,5);
            }
        }
}

forward DriveCheck5(playerid)
public DriveCheck5(playerid)
{
    if(IsPlayerInAnyVehicle(playerid))
        {
            new vehicleid = GetPlayerVehicleID(playerid);
            if(IsATestingCar(vehicleid))
                {
                SetPlayerCheckpoint(playerid,811.7246,-1783.6833,13.1766,5);
                }
            else
            {
            GameTextForPlayer(playerid,"You lost your testing car!",5000,5);
            }
        }
}

forward DriveCheck6(playerid)
public DriveCheck6(playerid)
{
    if(IsPlayerInAnyVehicle(playerid))
        {
            new vehicleid = GetPlayerVehicleID(playerid);
            if(IsATestingCar(vehicleid))
                {
                SetPlayerCheckpoint(playerid,927.7553,-1787.5551,13.0351,5);
                }
            else
            {
            GameTextForPlayer(playerid,"You lost your testing car!",5000,5);
            }
        }
}

forward DriveCheck7(playerid)
public DriveCheck7(playerid)
{
    if(IsPlayerInAnyVehicle(playerid))
        {
            new vehicleid = GetPlayerVehicleID(playerid);
            if(IsATestingCar(vehicleid))
                {
                SetPlayerCheckpoint(playerid,1037.0238,-1789.0166,13.2495,5);
                }
            else
            {
            GameTextForPlayer(playerid,"You lost your testing car!",5000,5);
            }
        }
}

forward DriveCheck8(playerid)
public DriveCheck8(playerid)
{
    if(IsPlayerInAnyVehicle(playerid))
        {
            new vehicleid = GetPlayerVehicleID(playerid);
            if(IsATestingCar(vehicleid))
                {
                SetPlayerCheckpoint(playerid,1039.5668,-1717.9050,13.0096,5);
                }
            else
            {
            GameTextForPlayer(playerid,"You lost your testing car!",5000,5);
            }
        }
}

forward DriveCheck9(playerid)
public DriveCheck9(playerid)
{
    if(IsPlayerInAnyVehicle(playerid))
        {
            new vehicleid = GetPlayerVehicleID(playerid);
            if(IsATestingCar(vehicleid))
                {
                SetPlayerCheckpoint(playerid,1147.5571,-1714.9635,13.4062,5);
                }
            else
            {
            GameTextForPlayer(playerid,"You lost your testing car!",5000,5);
            }
        }
}

forward DriveCheck10(playerid)
public DriveCheck10(playerid)
{
    if(IsPlayerInAnyVehicle(playerid))
        {
            new vehicleid = GetPlayerVehicleID(playerid);
            if(IsATestingCar(vehicleid))
                {
                SetPlayerCheckpoint(playerid,1155.7971,-1574.8989,12.8981,5);
                }
            else
            {
            GameTextForPlayer(playerid,"You lost your testing car!",5000,5);
            }
        }
}

forward DriveCheck11(playerid)
public DriveCheck11(playerid)
{
    if(IsPlayerInAnyVehicle(playerid))
        {
            new vehicleid = GetPlayerVehicleID(playerid);
            if(IsATestingCar(vehicleid))
                {
                SetPlayerCheckpoint(playerid,1276.6660,-1561.6949,13.1993,5);
                }
            else
            {
            GameTextForPlayer(playerid,"You lost your testing car!",5000,5);
            }
        }
}

forward DriveCheck12(playerid)
public DriveCheck12(playerid)
{
    new carid = GetPlayerVehicleID(playerid);
    if(IsPlayerInAnyVehicle(playerid))
        {
            new vehicleid = GetPlayerVehicleID(playerid);
            if(IsATestingCar(vehicleid))
                {
                SafeGivePlayerMoney(playerid, - 5000);
                PlayerInfo[playerid][pCarLic] = 1;
                PlayerInfo[playerid][pDrivingLevel] = 0;
                SafeRemovePlayerFromVehicle(playerid);
                DestroyVehicle(carid);
                SetVehicleToRespawn(carid);
                }
            else
            {
            GameTextForPlayer(playerid,"You lost your testing car!",5000,5);
            }
        }
}


public OnPlayerEnterCheckpoint(playerid)
{
    new string[128];
    new string2[128];


    if(IsPlayerInRangeOfPoint(playerid,10.0,1256.8137,-1569.4379,13.0076))
        {
            if(PlayerInfo[playerid][pDrivingLevel] == 1)
                {
                DisablePlayerCheckpoint(playerid);
                SendClientMessage(playerid,COLOR_YELLOW,"Licenser : Ok,now you better continue,your not the perfect driver!");
                PlayerInfo[playerid][pDrivingLevel] = 2;
                SetTimer("DriveCheck1",1000,false);
                }
        }
    if(IsPlayerInRangeOfPoint(playerid,5.0,1206.1053,-1570.3756,13.0115))
        {
            if(PlayerInfo[playerid][pDrivingLevel] == 2)
                {
                DisablePlayerCheckpoint(playerid);
                SendClientMessage(playerid,COLOR_YELLOW,"Licenser : Nice driving,you passed all these steps,let's continue!");
                PlayerInfo[playerid][pDrivingLevel] = 3;
                SetTimer("DriveCheck2",1000,false);
                }
        }
       
    if(IsPlayerInRangeOfPoint(playerid,5.0,1196.9167,-1400.6290,12.8755))
        {
            if(PlayerInfo[playerid][pDrivingLevel] == 3)
                {
                DisablePlayerCheckpoint(playerid);
                SendClientMessage(playerid,COLOR_YELLOW,"Licenser : Ok,continue!");
                PlayerInfo[playerid][pDrivingLevel] = 4;
                SetTimer("DriveCheck3",1000,false);
                }
        }
       
    if(IsPlayerInRangeOfPoint(playerid,5.0,918.6316,-1397.8654,12.8581))
        {
            if(PlayerInfo[playerid][pDrivingLevel] == 4)
                {
                DisablePlayerCheckpoint(playerid);
                SendClientMessage(playerid,COLOR_YELLOW,"Licenser : Ok...Move on!");
                PlayerInfo[playerid][pDrivingLevel] = 5;
                SetTimer("DriveCheck4",1000,false);
                }
        }
       
    if(IsPlayerInRangeOfPoint(playerid,5.0,915.6722,-1566.8030,13.0073))
        {
            if(PlayerInfo[playerid][pDrivingLevel] == 5)
                {
                DisablePlayerCheckpoint(playerid);
                SendClientMessage(playerid,COLOR_YELLOW,"Licenser : Move,move,move!");
                PlayerInfo[playerid][pDrivingLevel] = 6;
                SetTimer("DriveCheck5",1000,false);
                }
        }

    if(IsPlayerInRangeOfPoint(playerid,5.0,811.7246,-1783.6833,13.1766))
        {
            if(PlayerInfo[playerid][pDrivingLevel] == 6)
                {
                DisablePlayerCheckpoint(playerid);
                SendClientMessage(playerid,COLOR_YELLOW,"Licenser : Ok...Move on!");
                PlayerInfo[playerid][pDrivingLevel] = 7;
                SetTimer("DriveCheck6",1000,false);
                }
        }
       
       

    if(IsPlayerInRangeOfPoint(playerid,5.0,927.7553,-1787.5551,13.0351))
        {
            if(PlayerInfo[playerid][pDrivingLevel] == 7)
                {
                DisablePlayerCheckpoint(playerid);
                SendClientMessage(playerid,COLOR_YELLOW,"Licenser : Nice nice.");
                PlayerInfo[playerid][pDrivingLevel] = 8;
                SetTimer("DriveCheck7",1000,false);
                }
        }

    if(IsPlayerInRangeOfPoint(playerid,5.0,1037.0238,-1789.0166,13.2495))
        {
            if(PlayerInfo[playerid][pDrivingLevel] == 8)
                {
                DisablePlayerCheckpoint(playerid);
                SendClientMessage(playerid,COLOR_YELLOW,"Licenser : Aha,continue!");
                PlayerInfo[playerid][pDrivingLevel] = 9;
                SetTimer("DriveCheck8",1000,false);
                }
        }

    if(IsPlayerInRangeOfPoint(playerid,5.0,1039.5668,-1717.9050,13.0096))
        {
            if(PlayerInfo[playerid][pDrivingLevel] == 9)
                {
                DisablePlayerCheckpoint(playerid);
                SendClientMessage(playerid,COLOR_YELLOW,"Licenser : Wow,your the best!");
                PlayerInfo[playerid][pDrivingLevel] = 10;
                SetTimer("DriveCheck9",1000,false);
                }
        }

    if(IsPlayerInRangeOfPoint(playerid,5.0,1147.5571,-1714.9635,13.4062))
        {
            if(PlayerInfo[playerid][pDrivingLevel] == 10)
                {
                DisablePlayerCheckpoint(playerid);
                SendClientMessage(playerid,COLOR_YELLOW,"Licenser : ...Almost Done...");
                PlayerInfo[playerid][pDrivingLevel] = 11;
                SetTimer("DriveCheck10",1000,false);
                }
        }

    if(IsPlayerInRangeOfPoint(playerid,5.0,1155.7971,-1574.8989,12.8981))
        {
            if(PlayerInfo[playerid][pDrivingLevel] == 11)
                {
                DisablePlayerCheckpoint(playerid);
                SendClientMessage(playerid,COLOR_YELLOW,"Licenser : Done,go to the Licensing Center again!");
                PlayerInfo[playerid][pDrivingLevel] = 12;
                SetTimer("DriveCheck11",1000,false);
                }
        }

    if(IsPlayerInRangeOfPoint(playerid,5.0,1276.6660,-1561.6949,13.1993))
        {
            new carid = GetPlayerVehicleID(playerid)
            if(PlayerInfo[playerid][pDrivingLevel] == 12)
                {
                DisablePlayerCheckpoint(playerid);
                SendClientMessage(playerid,COLOR_YELLOW,"Licenser : Well done,let's see!");
                SendClientMessage(playerid,COLOR_PINK,"*Licenser writes some notes");
                SendClientMessage(playerid, COLOR_LIGHTBLUE, "You bought a driving License for $5,000");
                SetTimer("DriveCheck12",1000,false);
                SafeGivePlayerMoney(playerid, - 5000);
                PlayerInfo[playerid][pCarLic] = 1;
                PlayerInfo[playerid][pDrivingLevel] = 0;
                SafeRemovePlayerFromVehicle(playerid);
                DestroyVehicle(carid);
                SetVehicleToRespawn(carid);
                }
        }
It just don't show any other checkpointwhy?
Reply


Messages In This Thread
Help,Checkpoints - by SkizzoTrick - 01.12.2010, 15:49

Forum Jump:


Users browsing this thread: 1 Guest(s)