Jump to content
  • 0

Modificare comanda job la factiune


Question

Posted (edited)

Problema intalnita (descriere):Am scos job-ul mecanic si vreau sa pun comenzile membrilor TCC. dar nu stiu cum sa o modific
Ero(area / rile) / warning-(ul / urile):-
Liniile de cod / sursa / script-ul(obligatoriu):

    if(strcmp(cmd, "/mduty", true) == 0)
     {
            if(PlayerInfo[playerid][pJob] == 7 || PlayerInfo[playerid][pJob1] == 7)
            {
                if(JobDuty[playerid] == 1)
              {
                SendClientMessage(playerid, COLOR_WHITE, "Acum esti off-duty ca mecanic si nu vei mai primi apelurile jucatorilor.");
                JobDuty[playerid] = 0;
                Mechanics -= 1;
            }
             else
             {
                SendClientMessage(playerid, COLOR_WHITE, "*Acum esti on-duty ca mecanic si vei primi apelurile jucatorilor.");
                JobDuty[playerid] = 1;
                Mechanics += 1;
                GetPlayerName(playerid,sendername,sizeof(sendername));
                  format(string, sizeof(string), "Mecanicul %s este acum on-duty, folositi /service TCC", sendername);
                OOCNews(0x2993EDAA,string);
               }
        }
        return 1;
    }[code]
Imagini / Video (optional):-
Ati incercat sa rezolvati singur?:Da

Factiunea tcc are id 14/(PlayerInfo[playerid][pMember] == 14 || PlayerInfo[playerid][pLeader] == 14)

Edited by jimmi

5 answers to this question

Recommended Posts

  • 0
Posted

Off, voi nici macar nu va uitati sa vedeti , aproape ca ti-ai raspuns singur la intrebare ... :D

Inlocuieste 

if(PlayerInfo[playerid][pJob] == 7 || PlayerInfo[playerid][pJob1] == 7)

Cu : 

if(PlayerInfo[playerid][pMember] == 14 || PlayerInfo[playerid][pLeader] == 14)

Si gata, ai terminat . :)

 

Bafta .

  • 0
Posted

Lafel, doar ca in loc de 

if(strcmp(cmd, "/mduty", true) == 0)

vei schimba in 

CMD:mduty

sau ceva de genul asta, in rest nu trebuie sa schimbi nimic .

Incluzi biblioteca zcmd si gata .

Guest
This topic is now closed to further replies.
×
×
  • 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.