if(dialogid == 169)
{
if(response)
{
if(listitem == 0) // Kressz
{
if (PlayerInfo[playerid][pKressz] == 0)
{
if (GetPlayerMoney(playerid) > 5000)
{
if (PlayerInfo[playerid][pCarLic] == 0)
{
SafeGivePlayerMoney(playerid,-5000);
PlayerInfo[playerid][Penz] -= 5000;
varoskassza += 5000;
Savevaroskassza();
PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
SendClientMessage(playerid, COLOR_YELLOW2, \"Vбlaszolj a KRESZ kйrdйsekre!\");
SendClientMessage(playerid, COLOR_YELLOW2, \"A vбlasz elхtt szereplх szбmot нrd le . nйlkьl!\");
TakingLesson[playerid] = 1;
TogglePlayerControllable(playerid, 0);
Kresszkerdes[playerid] = 1;
SendClientMessage(playerid, COLOR_WHITE, \"Melyik oldalon kell kцzlekedni?\");
SendClientMessage(playerid, COLOR_WHITE, \"1. Ball \");
SendClientMessage(playerid, COLOR_WHITE, \"2. Jobb \");
SendClientMessage(playerid, COLOR_WHITE, \"3. Kцzйpen \");
PlayerInfo[playerid][vizsgazik] = 1;
return 1;
}
else
{
SendClientMessage(playerid,COLOR_GRAD2,\"Mбr van jogsid!\");
}
}
else
{
SendClientMessage(playerid,COLOR_GRAD2,\"Nincs rб pйnzed! (5000Ft)\");
}
}
else
{
SendClientMessage(playerid,COLOR_GRAD2,\"Mбr leraktad a Kressz vizsgбt! Most a Rutin Vizsgбt rakd le!\");
}
}
if(listitem == 1) // Rutin
{
if (PlayerInfo[playerid][pKressz] == 1)
{
if (GetPlayerMoney(playerid) >= 8000)
{
if (PlayerInfo[playerid][pCarLic] == 0)
{
if (PlayerInfo[playerid][pCarLic] == 0)
{
if (TakingForgalmi[playerid] == 0 || TakingRutin[playerid] == 0)
{
if (PlayerInfo[playerid][pRutin] == 0)
{
SafeGivePlayerMoney(playerid, -8000);
PlayerInfo[playerid][Penz] -= 8000;
varoskassza += 8000;
Savevaroskassza();
PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
PlayerInfo[playerid][pFlyLic] = 1;
SendClientMessage(playerid, COLOR_YELLOW2, \"Menj ki, szбllj be egy autуba йs kezdetйt veszi a Rutin Vizsga!\");
TogglePlayerControllable(playerid, 1);
SetPlayerRaceCheckpoint(playerid, 0, -1346.4084,2689.4141,49.6690, -1342.8796,2673.8003,49.7026, 2.5);
TakingRutin[playerid] = 1;
DrivingStep[playerid] = 0;
PlayerInfo[playerid][vizsgazik] = 1;
return 1;
}
else SendClientMessage(playerid,COLOR_GRAD2,\"Mбr letetted a Rutin Vizsgбt!\");
}
else SendClientMessage(playerid,COLOR_GRAD2,\"Mбr elkezdted a Rutin Vizsgбt!\");
}
}
else
{
SendClientMessage(playerid,COLOR_GRAD2,\"Mбr van jogsid!\");
}
}
else
{
SendClientMessage(playerid,COLOR_GRAD2,\"Nincs elйg pйnzed!(8000Ft)\");
}
}
else
{
SendClientMessage(playerid,COLOR_GRAD2,\"Elхszцr tedd le a KRESSZ Vizsgбt!\");
}
}
if(listitem == 2) // Forgalmi
{
if (PlayerInfo[playerid][pRutin] == 1)
{
if (GetPlayerMoney(playerid) >= 11000)
{
if (PlayerInfo[playerid][pCarLic] == 0)
{
if (TakingForgalmi[playerid] == 0 || TakingRutin[playerid] == 0)
{
if (PlayerInfo[playerid][pForgalmi] == 0)
{
SafeGivePlayerMoney(playerid, -11000);
PlayerInfo[playerid][Penz] -= 11000;
varoskassza += 11000;
Savevaroskassza();
PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
PlayerInfo[playerid][pFlyLic] = 1;
SendClientMessage(playerid, COLOR_YELLOW2, \"Menj ki, szбllj be egy autуba йs kezdetйt veszi a Forgalmi Vizsga!\");
SetPlayerRaceCheckpoint(playerid, 0, -1356.4884,2670.2366,50.7633, -1363.3860,2623.0803,52.1508, 2.5);
TogglePlayerControllable(playerid, 1);
TakingForgalmi[playerid] = 1;
DrivingStep[playerid] = 0;
PlayerInfo[playerid][vizsgazik] = 1;
return 1;
}
else SendClientMessage(playerid,COLOR_GRAD2,\"Mбr letetted a Forgalmi Vizsgбt!\");
}
else SendClientMessage(playerid,COLOR_GRAD2,\"Mбr elkezdted a Forgalmi Vizsgбt!\");
}
else
{
SendClientMessage(playerid,COLOR_GRAD2,\"Mбr van jogsid!\");
}
}
else
{
SendClientMessage(playerid,COLOR_GRAD2,\"Nincs rб pйnzed!(11000Ft)\");
}
}
else
{
SendClientMessage(playerid,COLOR_GRAD2,\"Elхszцr tedd le a Rutin Vizsgбt!\");
}
}
}
}