24.07.2011, 14:48
pawn Код:
if(listitem == 0)
{
if(PlayerInfo[playerid][pCarLic] == 0)
{
if(GetPlayerMoney(playerid) < 4999)
{
SendClientMessage(playerid, COLOR_GREY, "No enough money!");
return 1;
}
else
{
SendClientMessage(playerid, COLOR_WHITE, "- Instructor: Sit in a car outside to take the driving test.");
TakingLesson[playerid] == 1;
return 1;
/*SendClientMessage(playerid, COLOR_LIGHTBLUE, "You bought a driving license for 5000$.");
SafeGivePlayerMoney(playerid, -5000);
PlayerInfo[playerid][pCarLic] = 1;
OnPlayerUpdate(playerid);*/
}
}
else
{
SendClientMessage(playerid, COLOR_LIGHTBLUE, "You already have a driving license!");
return 1;
}
}