pawn Код:
if(CCP[playerid] == 1)
{
if(!IsATestCar(GetPlayerVehicleID(playerid)))
{
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(GetPlayerVehicleID(playerid));
PlayerInfo[playerid][pTakingLesson] = 0;
return 0;
}
new Float:health;
GetVehicleHealth(GetPlayerVehicleID(playerid), health);
if(health < 950.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(GetPlayerVehicleID(playerid));
PlayerInfo[playerid][pTakingLesson] = 0;
return 0;
}
DisablePlayerCheckpoint(playerid);
CCP[playerid] = 2;
SetPlayerCheckpoint(playerid, 1429.81,-1732.20,13.38, 10.0);
return 1;
}
if(CCP[playerid] == 2)
{
if(!IsATestCar(GetPlayerVehicleID(playerid)))
{
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(GetPlayerVehicleID(playerid));
PlayerInfo[playerid][pTakingLesson] = 0;
return 0;
}
new Float:health;
GetVehicleHealth(GetPlayerVehicleID(playerid), health);
if(health < 950.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(GetPlayerVehicleID(playerid));
PlayerInfo[playerid][pTakingLesson] = 0;
return 0;
}
DisablePlayerCheckpoint(playerid);
CCP[playerid] = 3;
SetPlayerCheckpoint(playerid, 1820.42,-1732.44,13.38, 10.0);
return 1;
}
if(CCP[playerid] == 3)
{
if(!IsATestCar(GetPlayerVehicleID(playerid)))
{
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(GetPlayerVehicleID(playerid));
PlayerInfo[playerid][pTakingLesson] = 0;
return 0;
}
new Float:health;
GetVehicleHealth(GetPlayerVehicleID(playerid), health);
if(health < 950.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(GetPlayerVehicleID(playerid));
PlayerInfo[playerid][pTakingLesson] = 0;
return 0;
}
DisablePlayerCheckpoint(playerid);
CCP[playerid] = 4;
SetPlayerCheckpoint(playerid, 1822.19,-1583.38,13.35, 10.0);
return 1;
}
if(CCP[playerid] == 4)
{
if(!IsATestCar(GetPlayerVehicleID(playerid)))
{
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(GetPlayerVehicleID(playerid));
PlayerInfo[playerid][pTakingLesson] = 0;
return 0;
}
new Float:health;
GetVehicleHealth(GetPlayerVehicleID(playerid), health);
if(health < 950.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(GetPlayerVehicleID(playerid));
PlayerInfo[playerid][pTakingLesson] = 0;
return 0;
}
DisablePlayerCheckpoint(playerid);
CCP[playerid] = 5;
SetPlayerCheckpoint(playerid, 1850.08,-1180.60,23.64, 10.0);
return 1;
}
if(CCP[playerid] == 5)
{
if(!IsATestCar(GetPlayerVehicleID(playerid)))
{
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(GetPlayerVehicleID(playerid));
PlayerInfo[playerid][pTakingLesson] = 0;
return 0;
}
new Float:health;
GetVehicleHealth(GetPlayerVehicleID(playerid), health);
if(health < 950.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(GetPlayerVehicleID(playerid));
PlayerInfo[playerid][pTakingLesson] = 0;
return 0;
}
DisablePlayerCheckpoint(playerid);
CCP[playerid] = 6;
SetPlayerCheckpoint(playerid,1454.18,-1160.58,23.66, 10.0);
return 1;
}
if(CCP[playerid] == 6)
{
if(!IsATestCar(GetPlayerVehicleID(playerid)))
{
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(GetPlayerVehicleID(playerid));
PlayerInfo[playerid][pTakingLesson] = 0;
return 0;
}
new Float:health;
GetVehicleHealth(GetPlayerVehicleID(playerid), health);
if(health < 950.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(GetPlayerVehicleID(playerid));
PlayerInfo[playerid][pTakingLesson] = 0;
return 0;
}
DisablePlayerCheckpoint(playerid);
CCP[playerid] = 7;
SetPlayerCheckpoint(playerid, 1195.41,-1144.61,23.70, 10.0);
return 1;
}
if(CCP[playerid] == 7)
{
if(!IsATestCar(GetPlayerVehicleID(playerid)))
{
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(GetPlayerVehicleID(playerid));
PlayerInfo[playerid][pTakingLesson] = 0;
return 0;
}
new Float:health;
GetVehicleHealth(GetPlayerVehicleID(playerid), health);
if(health < 950.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(GetPlayerVehicleID(playerid));
PlayerInfo[playerid][pTakingLesson] = 0;
return 0;
}
DisablePlayerCheckpoint(playerid);
CCP[playerid] = 8;
SetPlayerCheckpoint(playerid, 943.04,-1144.72,23.79, 10.0);
return 1;
}
if(CCP[playerid] == 8)
{
if(!IsATestCar(GetPlayerVehicleID(playerid)))
{
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(GetPlayerVehicleID(playerid));
PlayerInfo[playerid][pTakingLesson] = 0;
return 0;
}
new Float:health;
GetVehicleHealth(GetPlayerVehicleID(playerid), health);
if(health < 950.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(GetPlayerVehicleID(playerid));
PlayerInfo[playerid][pTakingLesson] = 0;
return 0;
}
DisablePlayerCheckpoint(playerid);
CCP[playerid] = 9;
SetPlayerCheckpoint(playerid, 939.98,-1324.30,13.38, 10.0);
return 1;
}
if(CCP[playerid] == 9)
{
if(!IsATestCar(GetPlayerVehicleID(playerid)))
{
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(GetPlayerVehicleID(playerid));
PlayerInfo[playerid][pTakingLesson] = 0;
return 0;
}
new Float:health;
GetVehicleHealth(GetPlayerVehicleID(playerid), health);
if(health < 950.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(GetPlayerVehicleID(playerid));
PlayerInfo[playerid][pTakingLesson] = 0;
return 0;
}
DisablePlayerCheckpoint(playerid);
CCP[playerid] = 10;
SetPlayerCheckpoint(playerid, 1058.40,-1324.46,13.38, 10.0);
return 1;
}
if(CCP[playerid] == 10)
{
if(!IsATestCar(GetPlayerVehicleID(playerid)))
{
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(GetPlayerVehicleID(playerid));
PlayerInfo[playerid][pTakingLesson] = 0;
return 0;
}
new Float:health;
GetVehicleHealth(GetPlayerVehicleID(playerid), health);
if(health < 950.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(GetPlayerVehicleID(playerid));
PlayerInfo[playerid][pTakingLesson] = 0;
return 0;
}
DisablePlayerCheckpoint(playerid);
CCP[playerid] = 11;
SetPlayerCheckpoint(playerid, 1053.15,-1486.43,13.39, 10.0);
return 1;
}
if(CCP[playerid] == 11)
{
if(!IsATestCar(GetPlayerVehicleID(playerid)))
{
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(GetPlayerVehicleID(playerid));
PlayerInfo[playerid][pTakingLesson] = 0;
return 0;
}
new Float:health;
GetVehicleHealth(GetPlayerVehicleID(playerid), health);
if(health < 950.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(GetPlayerVehicleID(playerid));
PlayerInfo[playerid][pTakingLesson] = 0;
return 0;
}
DisablePlayerCheckpoint(playerid);
CCP[playerid] = 12;
SetPlayerCheckpoint(playerid, 1037.01,-1572.37,13.39, 10.0);
return 1;
}
if(CCP[playerid] == 12)
{
if(!IsATestCar(GetPlayerVehicleID(playerid)))
{
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(GetPlayerVehicleID(playerid));
PlayerInfo[playerid][pTakingLesson] = 0;
return 0;
}
new Float:health;
GetVehicleHealth(GetPlayerVehicleID(playerid), health);
if(health < 950.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(GetPlayerVehicleID(playerid));
PlayerInfo[playerid][pTakingLesson] = 0;
return 0;
}
DisablePlayerCheckpoint(playerid);
CCP[playerid] = 13;
SetPlayerCheckpoint(playerid,1132.79,-1572.31,13.32, 10.0);
return 1;
}
if(CCP[playerid] == 13)
{
if(!IsATestCar(GetPlayerVehicleID(playerid)))
{
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(GetPlayerVehicleID(playerid));
PlayerInfo[playerid][pTakingLesson] = 0;
return 0;
}
new Float:health;
GetVehicleHealth(GetPlayerVehicleID(playerid), health);
if(health < 950.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(GetPlayerVehicleID(playerid));
PlayerInfo[playerid][pTakingLesson] = 0;
return 0;
}
DisablePlayerCheckpoint(playerid);
CCP[playerid] = 14;
SetPlayerCheckpoint(playerid, 1297.63,-1572.63,13.38, 10.0);
return 1;
}
if(CCP[playerid] == 14)
{
if(!IsATestCar(GetPlayerVehicleID(playerid)))
{
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(GetPlayerVehicleID(playerid));
PlayerInfo[playerid][pTakingLesson] = 0;
return 0;
}
new Float:health;
GetVehicleHealth(GetPlayerVehicleID(playerid), health);
if(health < 950.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(GetPlayerVehicleID(playerid));
PlayerInfo[playerid][pTakingLesson] = 0;
return 0;
}
DisablePlayerCheckpoint(playerid);
CCP[playerid] = 15;
SetPlayerCheckpoint(playerid, 1311.79,-1852.47,13.38, 10.0);
return 1;
}
if(CCP[playerid] == 15)
{
if(!IsATestCar(GetPlayerVehicleID(playerid)))
{
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(GetPlayerVehicleID(playerid));
PlayerInfo[playerid][pTakingLesson] = 0;
return 0;
}
new Float:health;
GetVehicleHealth(GetPlayerVehicleID(playerid), health);
if(health < 950.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(GetPlayerVehicleID(playerid));
PlayerInfo[playerid][pTakingLesson] = 0;
return 0;
}
DisablePlayerCheckpoint(playerid);
CCP[playerid] = 16;
SetPlayerCheckpoint(playerid, 1312.82,-1733.0,13.38, 10.0);
return 1;
}
if(CCP[playerid] == 16)
{
if(!IsATestCar(GetPlayerVehicleID(playerid)))
{
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(GetPlayerVehicleID(playerid));
PlayerInfo[playerid][pTakingLesson] = 0;
return 0;
}
new Float:health;
GetVehicleHealth(GetPlayerVehicleID(playerid), health);
if(health < 950.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(GetPlayerVehicleID(playerid));
PlayerInfo[playerid][pTakingLesson] = 0;
return 0;
}
DisablePlayerCheckpoint(playerid);
CCP[playerid] = 17;
SetPlayerCheckpoint(playerid, 1429.12,-1732.33,13.38, 10.0);
return 1;
}
if(CCP[playerid] == 17)
{
if(!IsATestCar(GetPlayerVehicleID(playerid)))
{
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(GetPlayerVehicleID(playerid));
PlayerInfo[playerid][pTakingLesson] = 0;
return 0;
}
new Float:health;
GetVehicleHealth(GetPlayerVehicleID(playerid), health);
if(health < 950.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(GetPlayerVehicleID(playerid));
PlayerInfo[playerid][pTakingLesson] = 0;
return 0;
}
SendClientMessage(playerid, COLOR_LIGHTBLUE,"Driver Instructor says: You pass the car driving test.");
RemovePlayerFromVehicle(playerid);
SetVehicleToRespawn(GetPlayerGetPlayerVehicleID(playerid)(playerid));
PlayerInfo[playerid][pTakingLesson] = 0;
PlayerInfo[playerid][pCarLic] = 1;
DisablePlayerCheckpoint(playerid);
return 1;
}