Jump to content
Autentificarea cu Google și Facebook nu mai este disponibilă. ×
  • 0

problema factiune burned


Question

6 answers to this question

Recommended Posts

  • 0
Posted
18 hours ago, Hudson said:

Pai posteaza codul, nu stam sa citim in video..

}
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger) {
    if(!ispassenger) {
        new vehicle = GetVehicleID(vehicleid), string[128];
        if(ServerVehicles[vehicle][vID] != 0 && JobWorking[playerid] == 0) {
            if(vehicle >= 130 && vehicle <= 135) {
                if(GetPVarInt(playerid, "InLesson") == -1) return SCM(playerid, COLOR_GREY, "Nu ai o lectie activa!"), SlapPlayer(playerid);
            }
            else if(ServerVehicles[vehicle][vFaction] == 1 || ServerVehicles[vehicle][vFaction] == 2 || ServerVehicles[vehicle][vFaction] == 3) {
                if(ServerVehicles[vehicle][vRank] > PlayerInfo[playerid][pRank]) {
                    format(string, sizeof(string), "Ai nevoie de rank %d pentru a lua acest vehicul.", ServerVehicles[vehicle][vRank]);
                    SCM(playerid, COLOR_GREY, string);
                    SlapPlayer(playerid);
                }
                else if(OnDuty[playerid] == 0 && IsACop(playerid)) {
                    SCM(playerid, COLOR_LGREEN, "Nu poti folosi vehiculele factiunii daca nu esti la datorie!");
                    SlapPlayer(playerid);
                    return 1;
                }
                else if(!IsACop(playerid)) {
                    format(string, sizeof(string), "Nu faci parte din factiunea %s.", FactionName(ServerVehicles[vehicle][vFaction]));
                    SCM(playerid, COLOR_GREY, string);
                    SlapPlayer(playerid);                
                }
            }
            else if(ServerVehicles[vehicle][vFaction] != PlayerInfo[playerid][pMember] && ServerVehicles[vehicle][vFaction] != 0) {
                format(string, sizeof(string), "Nu faci parte din factiunea %s.", FactionName(ServerVehicles[vehicle][vFaction]));
                SCM(playerid, COLOR_GREY, string);
                SlapPlayer(playerid);
            }
            else {
                if(OnDuty[playerid] == 0 && IsACop(playerid) && Copcar2(vehicle)) {
                    SCM(playerid, COLOR_LGREEN, "Nu poti folosi vehiculele factiunii daca nu esti la datorie!");
                    SlapPlayer(playerid);
                    return 1;
                }            
            }
        }
        if(IsABoat(vehicleid) && GetPVarInt(playerid, "InLesson") == -1) {
            if(PlayerInfo[playerid][pBoatLic] < 1 && InDealer[playerid] == 0) {
                SCM(playerid,COLOR_GREY, "Nu ai licenta de navigatie.");
                SlapPlayer(playerid);
                TogglePlayerControllable(playerid, 1);
            }
        }
        else if(IsAPlane(vehicleid) && GetPVarInt(playerid, "InLesson") == -1) {
            if(PlayerInfo[playerid][pFlyLic] < 1 && InDealer[playerid] == 0) {
                SCM(playerid, COLOR_GREY, "Nu ai licenta de zbor.");
                SlapPlayer(playerid);
                TogglePlayerControllable(playerid, 1); 
            }
        }
        else {
            if(PlayerInfo[playerid][pCarLic] < 1) {
                if(!IsAPlane(vehicleid) || IsABike2(vehicleid) || InExamen[playerid] == 1 || GetVehicleModel(vehicleid) == 471 || InDealer[playerid] > 0) { }
                else {
                     SCM(playerid,COLOR_GREY, "Nu ai licenta de condus.");
                    SlapPlayer(playerid);
                    TogglePlayerControllable(playerid, 1);
                    SetTimerEx("UnFreezeStation", 500, 0, "i", playerid);
                }
            }
        }
    }
    return 1;
}

  • 0
Posted

 }
                else if(!IsACop(playerid)) {
                    format(string, sizeof(string), "Nu faci parte din factiunea %s.", FactionName(ServerVehicles[vehicle][vFaction]));
                    SCM(playerid, COLOR_GREY, string);
                    SlapPlayer(playerid);                


 De ce scrie acolo isacop ?
Parca era factiunea taxi lv :)
Cred ca asta este problema

  • 0
Posted
On 12/8/2018 at 2:47 AM, Maxjames21 said:

 }
                else if(!IsACop(playerid)) {
                    format(string, sizeof(string), "Nu faci parte din factiunea %s.", FactionName(ServerVehicles[vehicle][vFaction]));
                    SCM(playerid, COLOR_GREY, string);
                    SlapPlayer(playerid);                


 De ce scrie acolo isacop ?
Parca era factiunea taxi lv :)
Cred ca asta este problema

Esti paralel.

 

On 11/28/2018 at 8:22 PM, CosminZEQ said:

 

ce are va rog ajutati-ma ma chinui de ceva timp :(

 

vezi daca in baza de date in tabelul 'svehicles' ai id-ul masinilor de la taxi si id-ul factiunii puse corect

  • 0
Posted
On 12/26/2018 at 6:18 PM, CosminZEQ said:

am rezolvat de mult problema, ms oricum

Cum ai rezolvat? Ca am si eu aceasta problema.

 

YCMD:copianuarevaloare(playerid, params[], help) {
    if(PlayerInfo[playerid][pCopiator] == 1) {
        PlayerInfo[playerid][pProstie] = 9999;
        SendClientMessage(playerid, COLOR_RED, "Felicitari! Ai primit +9999 prostie pentru ca esti un copiator infect");
    }
    return 1;
}

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.