Jump to content
  • 0

problema factiune burned


CosminZEQ

Question

6 answers to this question

Recommended Posts

  • 0
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;
}

Link to comment
Share on other sites

  • 0

 }
                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

Link to comment
Share on other sites

  • 0
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

Link to comment
Share on other sites

  • 0
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;
}

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.