Modifică:
new car = GetPlayerVehicleID(playerid);
if(vehicle >= 130 && vehicle <= 135) {
if(GetPVarInt(playerid, "InLesson") == -1) return SCM(playerid, COLOR_GREY, "Nu ai o lectie activa!"), SlapPlayer(playerid);
}
if(vehicleFvsFaction[car] == 1 || vehicleFvsFaction[car] == 2 || vehicleFvsFaction[car] == 3) {
if(!IsACop(playerid)) {
SCM(playerid, -1, "Nu faci parte din aceasta factiune.");
SlapPlayer(playerid);
}
else if(vehicleFvsRank[car] > PlayerInfo[playerid][pRank]) {
format(string, sizeof(string), "Ai nevoie de rank %d pentru a lua acest vehicul.", vehicleFvsRank[car]);
SCM(playerid, COLOR_GREY, string);
SlapPlayer(playerid);
}
else if(OnDuty[playerid] == 0 && IsACop(playerid) && PlayerInfo[playerid][pMember] == 7 && PlayerInfo[playerid][pMember] == 8 && PlayerInfo[playerid][pMember] == 12 && PlayerInfo[playerid][pMember] == 13) {
SCM(playerid, COLOR_LGREEN, "Nu poti folosi vehiculele factiunii daca nu esti la datorie!");
SlapPlayer(playerid);
return 1;
}
}
else if(vehicleFvsFaction[car] != PlayerInfo[playerid][pMember] && vehicleFvsFaction[car] != 0) {
SCM(playerid, -1, "Nu faci parte din aceasta factiune.");
SlapPlayer(playerid);
}
else {
if(OnDuty[playerid] == 0 && IsACop(playerid) && Copcar2(car)) {
SCM(playerid, COLOR_LGREEN, "Nu poti folosi vehiculele factiunii daca nu esti la datorie!");
SlapPlayer(playerid);
return 1;
}
if(vehicleFvsRank[car] > PlayerInfo[playerid][pRank]) {
format(string, sizeof(string), "Ai nevoie de rank %d pentru a lua acest vehicul.", vehicleFvsRank[car]);
SCM(playerid, COLOR_GREY, string);
SlapPlayer(playerid);
}
}
Cu:
new car = GetPlayerVehicleID(playerid);
if(vehicle >= 130 && vehicle <= 135) {
if(GetPVarInt(playerid, "InLesson") == -1) return SCM(playerid, COLOR_GREY, "Nu ai o lectie activa!"), SlapPlayer(playerid);
}
if(vehicleFvsFaction[vehicle] == 1 || vehicleFvsFaction[vehicle] == 2 || vehicleFvsFaction[vehicle] == 3) {
if(!IsACop(playerid)) {
SCM(playerid, -1, "Nu faci parte din aceasta factiune.");
SlapPlayer(playerid);
}
else if(vehicleFvsRank[car] > PlayerInfo[playerid][pRank]) {
format(string, sizeof(string), "Ai nevoie de rank %d pentru a lua acest vehicul.", vehicleFvsRank[car]);
SCM(playerid, COLOR_GREY, string);
SlapPlayer(playerid);
}
else if(OnDuty[playerid] == 0 && IsACop(playerid) && PlayerInfo[playerid][pMember] == 7 && PlayerInfo[playerid][pMember] == 8 && PlayerInfo[playerid][pMember] == 12 && PlayerInfo[playerid][pMember] == 13) {
SCM(playerid, COLOR_LGREEN, "Nu poti folosi vehiculele factiunii daca nu esti la datorie!");
SlapPlayer(playerid);
return 1;
}
}
else if(vehicleFvsFaction[car] != PlayerInfo[playerid][pMember] && vehicleFvsFaction[car] != 0) {
SCM(playerid, -1, "Nu faci parte din aceasta factiune.");
SlapPlayer(playerid);
}
else {
if(OnDuty[playerid] == 0 && IsACop(playerid) && Copcar2(car)) {
SCM(playerid, COLOR_LGREEN, "Nu poti folosi vehiculele factiunii daca nu esti la datorie!");
SlapPlayer(playerid);
return 1;
}
if(vehicleFvsRank[car] > PlayerInfo[playerid][pRank]) {
format(string, sizeof(string), "Ai nevoie de rank %d pentru a lua acest vehicul.", vehicleFvsRank[car]);
SCM(playerid, COLOR_GREY, string);
SlapPlayer(playerid);
}
}