15.02.2017, 00:14
(
Последний раз редактировалось MiiSha; 15.02.2017 в 00:15.
Причина: Removed my signature
)
Please, I did everything well but it happens again, the same problem when I reach the first Checkpoint nothing happens !
OnPlayerEnterCheckpoint
Please Help me .. REP+ whoever could fix my problem <3
OnPlayerEnterCheckpoint
PHP код:
public OnPlayerEnterCheckpoint(playerid)
{
switch(DMVExam[playerid])
{
case 1: // DMV SYSTEM CHECKPOINT 1 ( it was set when the player enter the DMV car )
{
DisablePlayerCheckpoint(playerid);
SetPlayerCheckpoint(playerid,1948.1033,-1930.6860,13.4751,5); // 2
DMVExam[playerid] = 2;
}
case 2:
{
DisablePlayerCheckpoint(playerid);
SetPlayerCheckpoint(playerid,1830.9167,-1930.0353,13.4754,5); // 3
DMVExam[playerid] = 3;
}
case 3:
{
DisablePlayerCheckpoint(playerid);
SetPlayerCheckpoint(playerid,1823.9110,-1791.2739,13.4752,5); // 4
DMVExam[playerid] = 4;
}
case 4:
{
DisablePlayerCheckpoint(playerid);
SetPlayerCheckpoint(playerid,1824.1433,-1629.3223,13.4751,5); // 5
DMVExam[playerid] = 5;
}
case 5:
{
DisablePlayerCheckpoint(playerid);
SetPlayerCheckpoint(playerid,1929.6962,-1614.7090,13.4751,5); // 6
DMVExam[playerid] = 6;
}
case 6:
{
DisablePlayerCheckpoint(playerid);
SetPlayerCheckpoint(playerid,1938.9127,-1738.9067,13.4751,5); // 7
DMVExam[playerid] = 7;
}
case 7:
{
DisablePlayerCheckpoint(playerid);
SetPlayerCheckpoint(playerid,1959.0842,-1765.3502,13.4750,5); // 8
DMVExam[playerid] = 8;
}
case 8:
{
DisablePlayerCheckpoint(playerid);
SetPlayerCheckpoint(playerid,1975.3130,-1814.8724,13.4751,5); // 9
DMVExam[playerid] = 9;
}
case 9:
{
DisablePlayerCheckpoint(playerid);
SetPlayerCheckpoint(playerid,2066.9341,-1814.9067,13.4751,5); // 10
DMVExam[playerid] = 10;
}
case 10:
{
DisablePlayerCheckpoint(playerid);
SetPlayerCheckpoint(playerid,2078.9148,-1897.3009,13.4473,5); // 11
DMVExam[playerid] = 11;
}
case 11:
{
DisablePlayerCheckpoint(playerid);
SetPlayerCheckpoint(playerid,2074.2095,-1907.4380,13.6393,5); // 12
DMVExam[playerid] = 12;
}
case 12:
{
new Float:Health;
GetVehicleHealth(GetPlayerVehicleID(playerid), Health);
if(Health > 950)
{
DisablePlayerCheckpoint(playerid);
PlayerInfo[playerid][pCarLic] = 1;
LicenseTest[playerid] = 0;
CP2[playerid] = 0;
DMVExam[playerid] = 0;
SetVehicleToRespawn(GetPlayerVehicleID(playerid));
SendClientMessage(playerid, COLOR_LIGHTBLUE, "* Driving Center: You have successfully passed the test and received your license.");
}
else
{
DisablePlayerCheckpoint(playerid);
LicenseTest[playerid] = 0;
CP2[playerid] = 0;
DMVExam[playerid] = 0;
SetVehicleToRespawn(GetPlayerVehicleID(playerid));
SendClientMessage(playerid, COLOR_LIGHTBLUE, "* Driving Center: You have damaged your vehicle hardly, therefore you failed the test.");
}
}