Jump to content
  • 0

Problema factiunea uber company


Radutz

Question

1.Am facut factiunea uber company si nu merge comanda /f? ma puteti ajuta?

code:YCMD:f(playerid, params[], help) {
    new string[256];
    if(PlayerInfo[playerid][pMember] == 0 && PlayerInfo[playerid][pLeader] == 0) {
        if(SpecFaction[playerid] == 0) return 1;
    }
    if(PlayerInfo[playerid][pMuted] == 1) {
        format(string, sizeof(string), "You can't talk right now! You are muted. (%d seconds)",PlayerInfo[playerid][pMuteTime]);
        SCM(playerid, COLOR_GREY, string);
        return 1;
    }
    new result[250];
    if(FactionChat[PlayerInfo[playerid][pMember]] == 1 && PlayerInfo[playerid][pRank] < 6) return SCM(playerid, COLOR_GREY, "Chatul factiunii a fost oprit!");
    if(sscanf(params, "s[250]",result)) return SCM(playerid, COLOR_GREY, "USAGE: {FFFFFF}/f <text>");
    if(FaceReclama(result)) return RemoveFunction(playerid, result);
    if(FaceReclama(result)) return Reclama(playerid, result);
    if(SpecFaction[playerid] != 0) {
        format(string, sizeof(string), "* Admin %s: %s", GetName(playerid), result); 
        SendFactionMessage(SpecFaction[playerid], 0x0080FFFF, string);
        ChatLog(GetName(playerid), playerid, string);            
        return 1;
    }        
    new member = PlayerInfo[playerid][pMember];
    new leader = PlayerInfo[playerid][pLeader];
    if(IsACop(playerid)) return SCM(playerid, COLOR_LGREEN, "Pentru a scrie pe chatul factiunii, foloseste comanda /r.");
    if(member == 3 || leader == 3) return SCM(playerid, COLOR_LGREEN, "Pentru a scrie pe chatul factiunii, foloseste comanda /r.");
    if(member == 15) return SCM(playerid, COLOR_LGREEN, "Pentru a scrie pe chatul factiunii, foloseste comanda /r.");
    if(PlayerInfo[playerid][pRank] >= 6) {
        format(string, sizeof(string), "(/f) %s %s: %s", GetRankName(playerid), GetName(playerid), result);
        SendFactionMessage(PlayerInfo[playerid][pMember], 0x00AAFFFF, string);
    }
    else {
        format(string, sizeof(string), "(/f) %s %s: %s", GetRankName(playerid), GetName(playerid), result); 
        SendFactionMessage(PlayerInfo[playerid][pMember], 0x00D5FFFF, string);
    }    
    ChatLog(GetName(playerid), playerid, string);    
    return 1;
}

2.Cand intru in hq si dupa ies ma da la hq taxi... rezolvare?.

3.Am creat o masina infernus ptr factiunea uber si cand intru in ea imi spune ca nu sunt in uber, dar eu eram.. rezolvari? app la functia isantaxi am pus si la factiunea uber adk 15. 

 

 

 

 

 

 

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0

Salut!

 

Prima data pentru a creea o factiune noua, trebuie sa ii atribui un ID.

Exemplu: Tu ai factiunile LSPD, LVPD, SFPD, care are ID-urile 1,2 respectiv 3. Cand creezi noua factiune ai grija la ID-ul pe il atribui, sunt sigur ca ai luat copy and paste de la factiunea taxi, de aceea nu iti merge tie comanda /f si HQ-ul.

 

Rezolvare:

Vreau sa creez factiunea National Guard, copiez tot de la ultima factiune, insa ii schimb ID-ul(4). Dupa ce am facut toate astea sunt sigur ca va merge.

 

Rezolvare HQ:

Banuiesc ca ai folosit acelasi interior de la HQ Taxi.

Aici ai 2 rezolvari.

1. Fie schimbi interiorul.

2. Daca doresti sa fie acelasi interior te sfatuiesc sa adaugi o restrictie cand intra, ca playerului respectiv sa ii seteze VirtualWorld-ul cu +1.

Iar cand iese din HQ sa ii bagi o restrictie anume verifici daca playerul are vw schimbat(GetPlayerVirtualWorld) iar in caz ca este schimbat sa il teleporteze afara din HQ factiunii tale.

 

Rezolvare masina:

Aici ai tot 2 posibilitati insa trebuie sa imi arati codul.

1. Fie masina factiunii nu are schimbat ID-ul factiunii(respectiv restrictia)

2. Arata codul aici ca sa ma asigur de ce va urma sa iti scriu.

 

Spor!

 

 

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.