Juni
Умник
Столкнулся с проблемой,на гольф машинки,велосипеды и мопеды нужны права,т.к. у новичков сначала игры нету прав помогите сделать чтобы на данный (на гольф машинки,велосипеды и мопеды) транспорт права были ненужны
PHP:
if(newstate == PLAYER_STATE_DRIVER) //buggy dont finnish
{// 38 / 49 / 56 = SS
new newcar = GetPlayerVehicleID(playerid);
new oldcar = gLastCar[playerid];
new housecar = PlayerInfo[playerid][pPhousekey]+1;
SendClientMessage(playerid, COLOR_YELLOW, "×òî áû çàâåñòè äâèãàòåëü èñïîëüçóéòå /engine.(Numpad 8)Äëÿ óïðàâëåíèÿ ôàðàìè /lights (Numpad 2)");
TelePos[playerid][0] = 0.0;
TelePos[playerid][1] = 0.0;
if(!IsABMX(newcar) && !IsAVelo(newcar) && !IsAMoped(newcar))
{
GetVehicleParamsEx(GetPlayerVehicleID(playerid),engine,lights,alarm,doors,bonnet,boot,objective);
SetVehicleParamsEx(GetPlayerVehicleID(playerid),true,lights,alarm,doors,bonnet,boot,objective);
}
if(IsABoat(newcar))
{
if(PlayerInfo[playerid][pBoatLic] < 1)
{
SendClientMessage(playerid, COLOR_GREY, " You don't know how to Sail yet, so you left the Boat !");
RemovePlayerFromVehicle(playerid);
}
}
else if(IsAPlane(newcar))
{
if(PlayerInfo[playerid][pFlyLic] < 1)
{
if(TakingLesson[playerid] == 1) { }
else {
SendClientMessage(playerid, COLOR_GREY, " You don't know how to Fly yet, so you left the Plane !");
RemovePlayerFromVehicle(playerid); }
}
}
else
{
if(PlayerInfo[playerid][pCarLic] < 1)
{
if(PlayerDrunk[playerid] >= 5)
{
WantedPoints[playerid] += 1;
SetPlayerCriminal(playerid,255, "Drunk Driving");
}
if(TakingLesson[playerid] == 1) { }
else {
SendClientMessage(playerid, COLOR_GREY, " You don't know how to Drive yet, so you left the Car !");
RemovePlayerFromVehicle(playerid); }
}
else if(PlayerDrunk[playerid] >= 5)
{
WantedPoints[playerid] += 1;
SetPlayerCriminal(playerid,255, "Drunk Driving");
}
}//Done with car check
