21.09.2015, 20:28
hey fellas.
i just made an DMV exams etc.
the problem is that
when i enter in vehicle and i do /dolic it shows me "You already are in exam" pls help me
codes
i just made an DMV exams etc.
the problem is that
when i enter in vehicle and i do /dolic it shows me "You already are in exam" pls help me
codes
PHP код:
COMMAND:dolic(playerid, params[])
{
new carid = GetPlayerVehicleID(playerid);
if(PlayerTemp[playerid][sm]< 2500)
return SendClientError(playerid, "You don't have enough money");
if(PlayerInfo[playerid][driverlic] == 1) return SendClientError(playerid,"You already have license");
if(Vehicles[carid][carmodel] != 580)
return SendClientError(playerid, "You are not driving the correct vehicle!");
if(OnExam[playerid] < 1 )return SendClientError(playerid,"You're already in a exam test finish it"); // 411 is the Infernus model
{
SetPlayerPos(playerid,1280.3851,-1359.2899,13.0680);
SendClientMessage(playerid,COLOR_BLUE,"You have started exam please follow inspector constructions");
SendClientMessage(playerid,COLOR_BLUE,"Do not go over 175kmh otherways you will fail");
SendClientMessage(playerid,COLOR_BLUE,"Do not damage the vehicle otherways you will fail");
SendClientMessage(playerid,COLOR_BLUE,"Do not leave vehicle otherways it will fail");
SetPlayerCheckpoint(playerid,1280.3851,-1359.2899,13.0680,3);
OnExam[playerid] = 1;
return 1;
}
}