Vehicle problems
#10

Quote:
Originally Posted by DIRTYBYT3
Посмотреть сообщение
Show your OnPlayerEnterVehicle please i can't see the problem
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
if(!ispassenger)
{
if(IsDMVCar(vehicleid))
{
if(!LicenseTest[playerid])
{
new Floatos[3];
GetPlayerPos(playerid, pos[0], pos[1], pos[2]);
SetPlayerPos(playerid, pos[0], pos[1], pos[2]);
SendClientMessage(playerid, COLOR_ORANGE, "You are not taking a drivers license test.");
}
else
{
SendClientMessage(playerid, COLOR_LIGHTBLUE, "* GPS: Finish the test by driving through all of the checkpoints on your GPS.");
SetPlayerCheckpoint(playerid,980.1932,-1407.9902,13.0956,5);
SendClientMessage(playerid, COLOR_RED, "If you exit the car your test will be failed and it will have to be re-done.");
}
}
else if(IsFamVehicle(vehicleid) && Fam[vehicleid] != PlayerInfo[playerid][pFam] && !IsACop(playerid))
{
new Floatos[3];
GetPlayerPos(playerid, pos[0], pos[1], pos[2]);
SetPlayerPos(playerid, pos[0], pos[1], pos[2]);
SendClientMessage(playerid, COLOR_ORANGE, " You can't start the engine as it belongs to a family.");
}
else if(IsLeoVehicle(vehicleid) && PlayerInfo[playerid][pFac] != 1)
{
new Floatos[3];
GetPlayerPos(playerid, pos[0], pos[1], pos[2]);
SetPlayerPos(playerid, pos[0], pos[1], pos[2]);
SendClientMessage(playerid, COLOR_ORANGE, " You can't start the engine as it belongs to the LSPD.");
}
else if(IsLSFMDVehicle(vehicleid) && PlayerInfo[playerid][pFac] != 5)
{
new Floatos[3];
GetPlayerPos(playerid, pos[0], pos[1], pos[2]);
SetPlayerPos(playerid, pos[0], pos[1], pos[2]);
SendClientMessage(playerid, COLOR_ORANGE, " You can't start the engine as it belongs to the LSFMD.");
}
else if(IsNewsVehicle(vehicleid) && PlayerInfo[playerid][pFac] != 4)
{
new Floatos[3];
GetPlayerPos(playerid, pos[0], pos[1], pos[2]);
SetPlayerPos(playerid, pos[0], pos[1], pos[2]);
SendClientMessage(playerid, COLOR_ORANGE, " You can't start the engine as it belongs to the News Agency.");
}
else if(IsFBIVehicle(vehicleid) && PlayerInfo[playerid][pFac] != 6)
{
new Floatos[3];
GetPlayerPos(playerid, pos[0], pos[1], pos[2]);
SetPlayerPos(playerid, pos[0], pos[1], pos[2]);
SendClientMessage(playerid, COLOR_ORANGE, " You can't start the engine as it belongs to the FBI.");
}
else if(IsNGVehicle(vehicleid) && PlayerInfo[playerid][pFac] != 7)
{
new Floatos[3];
GetPlayerPos(playerid, pos[0], pos[1], pos[2]);
SetPlayerPos(playerid, pos[0], pos[1], pos[2]);
SendClientMessage(playerid, COLOR_ORANGE, " You can't start the engine as it belongs to the NG.");
}
else if(IsTruckerVehicle(vehicleid) && PlayerInfo[playerid][pJob] != JOB_TRUCKER)
{
new Floatos[3];
GetPlayerPos(playerid, pos[0], pos[1], pos[2]);
SetPlayerPos(playerid, pos[0], pos[1], pos[2]);
SendClientMessage(playerid, COLOR_ORANGE, " You can't start the engine as it belongs to the Truckers.");
}
else if(IsGovVehicle(vehicleid) && PlayerInfo[playerid][pFac] != 2)
{
new Floatos[3];
GetPlayerPos(playerid, pos[0], pos[1], pos[2]);
SetPlayerPos(playerid, pos[0], pos[1], pos[2]);
SendClientMessage(playerid, COLOR_ORANGE, " You can't start the engine as it belongs to the GOV.");
}

}
return 1;
}
Reply


Messages In This Thread
Vehicle problems - by salev13 - 01.12.2018, 12:47
Re: Vehicle problems - by DIRTYBYT3 - 01.12.2018, 13:49
Re: Vehicle problems - by DIRTYBYT3 - 01.12.2018, 13:52
Re: Vehicle problems - by salev13 - 01.12.2018, 13:55
Re: Vehicle problems - by DIRTYBYT3 - 01.12.2018, 13:56
Re: Vehicle problems - by salev13 - 01.12.2018, 14:00
Re: Vehicle problems - by DIRTYBYT3 - 01.12.2018, 14:04
Re: Vehicle problems - by salev13 - 01.12.2018, 14:17
Re: Vehicle problems - by DIRTYBYT3 - 01.12.2018, 14:21
Re: Vehicle problems - by salev13 - 01.12.2018, 14:22
Re: Vehicle problems - by DIRTYBYT3 - 01.12.2018, 14:30
Re: Vehicle problems - by salev13 - 01.12.2018, 14:51
Re: Vehicle problems - by Tenka - 01.12.2018, 15:04
Re: Vehicle problems - by salev13 - 01.12.2018, 15:17
Re: Vehicle problems - by DIRTYBYT3 - 01.12.2018, 16:09

Forum Jump:


Users browsing this thread: 1 Guest(s)