Jump to content
  • 0

Nu-mi apare comenzile factiune in /help


Stafff

Question

Problema intalnita (descriere): Cand sunt lider PD de exemplu si vreau sa vad comennzile scriu /help dar ele nu apar.. asa patesc la toate factiunile..
Ero(area / rile) / warning-(ul / urile): -
Liniile de cod / sursa / script-ul(obligatoriu):

//-----------------------------------------Comanda-----------------------------------------//
    if(strcmp(cmd, "/help", true) == 0)
    {
        if(IsPlayerConnected(playerid))
        {
            SendClientMessage(playerid, 0xCCE6F6AA,"[GENERAL] /stats /buylevel /upgrade /changepass /leaders /factions /medics /reporters /unrenthotel /comanda");
            SendClientMessage(playerid, 0xCCE6F6AA,"[GENERAL] /pay /charity /time /mutetime /buy /unrentcar /givekey /alegechei /comanda /showlicenses /licenses /buletin ");
            SendClientMessage(playerid, 0xCCE6F6AA,"[GENERAL] /resetupgrades [50k] /lock /skill  /lotto /spawnchange /stopani /passport /aratapassport /mydrinks /clothes");
            SendClientMessage(playerid, 0xCCE6F6AA,"[GENERAL] /report /cancel /accept /eject /usedrugs /fill /get fuel /fillcar /service /laseron /laseroff /culoarelaser");
            SendClientMessage(playerid, 0xCCE6F6AA,"[GENERAL] /id /number /givenumber /centura /contract /quitjob /eject /afklist /animlist /animlist2 /ochelari /removegps");
            SendClientMessage(playerid, COLOR_WHITE,"[CHAT] (/n)newbie (/w)hisper (/o)oc (/s)hout (/c)lose (/l)ocal (/b) (/ad)vertise (/f)amily /me /do");
            SendClientMessage(playerid, COLOR_GRAD6,"[BANCA] /balance /withdraw /deposit /transfer /imprumut /achitaimprumut");
            SendClientMessage(playerid, COLOR_GRAD5,"[ARME]  /buygun /cumpararma /vindearma ");
            if (gTeam[playerid] == 2)
            {
                SendClientMessage(playerid, COLOR_LIGHTBLUE, "[POLITIE] (/r)adio (/d)epartments (/m)egaphone (/su)spect /mdc /arrest /duty /wanted /tazer /jaillist /clear /armour");
                SendClientMessage(playerid, COLOR_LIGHTBLUE, "[POLITIE] /frisk /take /ticket (/gov)ernment /ram /cuff /uncuff  /backup /backupclear /mutadetinut /girofar /radar");
                SendClientMessage(playerid, COLOR_LIGHTBLUE, "[POLITIE] /creeazablocaj(/cb) /distrugeblocaj (/db) /aratainsigna /verificacentura /urca /coboara /cheamalift /showmembers (/sm)");
                SendClientMessage(playerid, COLOR_LIGHTBLUE, "[POLITIE] /openlspddoor /openlspdgate  /openfbigate /opendoor /closedoor /openlspdbarrier /openfbibarrier1 /openfbibarrier2");
                SendClientMessage(playerid, COLOR_LIGHTBLUE, "[POLITIE] /createstrip /removeallstrip /removestrip /rfc");
            }
            if(IsAMember(playerid))
            {
                SendClientMessage(playerid, COLOR_GRAD4,"[FACTIUNE] (/f)amily (/fa)liance /takeguns /tie /untie /healhq /seif /ataca /apara /war /showmembers (/sm) /rfc /of ");
            }
            if (PlayerData[playerid][pMember] == 4 || PlayerData[playerid][pLeader] == 4)
            {
                SendClientMessage(playerid, COLOR_GRAD4, "[S.M.U.R.D] /fires /instinctor (/r)adio (/d)epartments /heal /duty /showmembers (/sm) /rfc /of");
            }
            if (PlayerData[playerid][pMember] == 17 || PlayerData[playerid][pLeader] == 17)
            {
                SendClientMessage(playerid, COLOR_GRAD4, "[Total Security] (/r)adio (/d)epartments /invite /uninvite /showmembers (/sm) /rfc /of");
            }
            if (PlayerData[playerid][pMember] == 18 || PlayerData[playerid][pLeader] == 18)
            {
                SendClientMessage(playerid, COLOR_GRAD4, "[Guvern] (/r)adio (/d)epartments /invite /uninvite /showmembers (/sm) /rfc /of /gov /setjob[lider]");
            }
            if(PlayerData[playerid][pMember] == 7 || PlayerData[playerid][pLeader] == 7)
            {
                SendClientMessage(playerid, COLOR_GRAD4,"[FACTIUNE] /givelicense /startlesson /stoplesson /showmembers (/sm) /rfc /of");
            }
            if(PlayerData[playerid][pMember] == 8 || PlayerData[playerid][pLeader] == 8)
            {
                SendClientMessage(playerid, COLOR_GRAD4,"[FACTIUNE] (/f)amily /portable /of");
            }
            if(PlayerData[playerid][pMember] == 10 || PlayerData[playerid][pLeader] == 10)
            {
                SendClientMessage(playerid, COLOR_GRAD4,"[REMORCARI AUTO] /tow /remorcarigate /remorcaridoor /impoundlot /parcheaza /descuiemasina /rfc /of");
            }
            if(PlayerData[playerid][pJob] == 1) {
            SendClientMessage(playerid, COLOR_GRAD4,"[SLUJBA] /find"); }
            else if(PlayerData[playerid][pJob] == 2) {
            SendClientMessage(playerid, COLOR_LIGHTGREEN,"[SLUJBA] /free"); }
            if(PlayerData[playerid][pJob] == 3) {
            SendClientMessage(playerid, COLOR_LIGHTGREEN,"[SLUJBA] /sex"); }
            else if(PlayerData[playerid][pJob] == 4) {
            SendClientMessage(playerid, COLOR_LIGHTGREEN,"[SLUJBA] /selldrugs"); }
            else if(PlayerData[playerid][pJob] == 5) {
            SendClientMessage(playerid, COLOR_LIGHTGREEN,"[SLUJBA] /dropcar"); }
            else if(PlayerData[playerid][pMember] == 9) {
            SendClientMessage(playerid, COLOR_LIGHTGREEN,"[FACTIUNE] /paper /papers /live /news [text]"); }
            else if(PlayerData[playerid][pJob] == 7) {
            SendClientMessage(playerid, COLOR_LIGHTGREEN,"[SLUJBA] /repair /refill /duty"); }
            else if(PlayerData[playerid][pJob] == 8) {
            SendClientMessage(playerid, COLOR_LIGHTGREEN,"[SLUJBA] /guard"); }
            else if(PlayerData[playerid][pJob] == 9) {
            SendClientMessage(playerid, COLOR_LIGHTGREEN,"[SLUJBA] /materials /sellgun"); }
            else if(PlayerData[playerid][pJob] == 12) {
            SendClientMessage(playerid, COLOR_LIGHTGREEN,"[SLUJBA] /fight /boxstats"); }
            else if(PlayerData[playerid][pJob] == 15) {
            SendClientMessage(playerid, COLOR_LIGHTGREEN,"[SLUJBA] /papers /bring /deliver"); }
            else if(PlayerData[playerid][pJob] == 16) {
            SendClientMessage(playerid, COLOR_LIGHTGREEN,"[SLUJBA] /truck"); }
            else if(PlayerData[playerid][pJob] == 17) {
            SendClientMessage(playerid, COLOR_LIGHTGREEN,"[SLUJBA] /farm"); }
            else if(PlayerData[playerid][pJob] == 22) {
            SendClientMessage(playerid, COLOR_LIGHTGREEN,"[SLUJBA] /transporta"); }
            else if(PlayerData[playerid][pJob] == 23) {
            SendClientMessage(playerid, COLOR_LIGHTGREEN,"[SLUJBA] /iarba"); }
            else if(PlayerData[playerid][pJob] == 24) {
            SendClientMessage(playerid, COLOR_LIGHTGREEN,"[SLUJBA] /starttren"); }
            else if(PlayerData[playerid][pJob] == 25) {
            SendClientMessage(playerid, COLOR_LIGHTGREEN,"[SLUJBA] /sapa /foreaza "); }
            else if(PlayerData[playerid][pJob] == 26) {
            SendClientMessage(playerid, COLOR_LIGHTGREEN,"[SLUJBA] /taie"); }
            else if(PlayerData[playerid][pJob] == 27) {
            SendClientMessage(playerid, COLOR_LIGHTGREEN,"[SLUJBA] /baloti /stop"); }
            else if(PlayerData[playerid][pJob] == 18) {
            SendClientMessage(playerid, COLOR_LIGHTGREEN,"[SLUJBA] /gunoi"); }
            else if(PlayerData[playerid][pMember] == 6 || PlayerData[playerid][pLeader] == 6 ) {
            SendClientMessage(playerid, COLOR_LIGHTGREEN,"[FACTIUNE] /fare"); }
            if (PlayerData[playerid][pAdmin] >= 1)
            {
                SendClientMessage(playerid, COLOR_GRAD2, "[ADMIN] /ah /a /aod");
            }
            if (PlayerData[playerid][pAgent] >= 1)
            {
                SendClientMessage(playerid, COLOR_GRAD2, "[Agent] /ac /agh /agentduty");
            }
            SendClientMessage(playerid, COLOR_GRAD1,"[ALTELE] /cellphonehelp /househelp /businesshelp /leaderhelp /eventhelp /donatehelp /cookhelp /fishhelp /irchelp /v /atmhelp");
        }
        return 1;
    }
   
Imagini / Video (optional): -
Ati incercat sa rezolvati singur?: am incercat sa le fac eu sa apara.. dar n-am reusit
Link to comment
Share on other sites

3 answers to this question

Recommended Posts

  • 0

Incearca sa folosesti:

if (PlayerData[playerid][pMember] == 1 || PlayerData[playerid][pLeader] == 1 || PlayerData[playerid][pMember] == 2 || PlayerData[playerid][pLeader] == 2 || PlayerData[playerid][pMember] == 3 || PlayerData[playerid][pLeader] == 3)
{
        SendClientMessage(playerid, COLOR_LIGHTBLUE, "[POLITIE] (/r)adio (/d)epartments (/m)egaphone (/su)spect /mdc /arrest /duty /wanted /tazer /jaillist /clear /armour");
        SendClientMessage(playerid, COLOR_LIGHTBLUE, "[POLITIE] /frisk /take /ticket (/gov)ernment /ram /cuff /uncuff/backup /backupclear /mutadetinut /girofar /radar");
        SendClientMessage(playerid, COLOR_LIGHTBLUE, "[POLITIE] /creeazablocaj(/cb) /distrugeblocaj (/db) /aratainsigna /verificacentura /urca /coboara /cheamalift /showmembers (/sm)");
        SendClientMessage(playerid, COLOR_LIGHTBLUE, "[POLITIE] /openlspddoor /openlspdgate/openfbigate /opendoor /closedoor /openlspdbarrier /openfbibarrier1 /openfbibarrier2");
        SendClientMessage(playerid, COLOR_LIGHTBLUE, "[POLITIE] /createstrip /removeallstrip /removestrip /rfc");
      }
Edited by Blue
Link to comment
Share on other sites

  • 0

Poftim de aici incearca asa :

//-----------------------------------------Comanda-----------------------------------------//
  if(strcmp(cmd, "/help", true) == 0)
  {
    if(IsPlayerConnected(playerid))
    {
      SendClientMessage(playerid, 0xCCE6F6AA,"[GENERAL] /stats /buylevel /upgrade /changepass /leaders /factions /medics /reporters /unrenthotel /comanda");
      SendClientMessage(playerid, 0xCCE6F6AA,"[GENERAL] /pay /charity /time /mutetime /buy /unrentcar /givekey /alegechei /comanda /showlicenses /licenses /buletin ");
      SendClientMessage(playerid, 0xCCE6F6AA,"[GENERAL] /resetupgrades [50k] /lock /skill/lotto /spawnchange /stopani /passport /aratapassport /mydrinks /clothes");
      SendClientMessage(playerid, 0xCCE6F6AA,"[GENERAL] /report /cancel /accept /eject /usedrugs /fill /get fuel /fillcar /service /laseron /laseroff /culoarelaser");
      SendClientMessage(playerid, 0xCCE6F6AA,"[GENERAL] /id /number /givenumber /centura /contract /quitjob /eject /afklist /animlist /animlist2 /ochelari /removegps");
      SendClientMessage(playerid, COLOR_WHITE,"[CHAT] (/n)newbie (/w)hisper (/o)oc (/s)hout (/c)lose (/l)ocal (/b) (/ad)vertise (/f)amily /me /do");
      SendClientMessage(playerid, COLOR_GRAD6,"[BANCA] /balance /withdraw /deposit /transfer /imprumut /achitaimprumut");
      SendClientMessage(playerid, COLOR_GRAD5,"[ARME]/buygun /cumpararma /vindearma ");
      if (PlayerData[playerid][pMember] == 1 || PlayerData[playerid][pLeader] == 1 || PlayerData[playerid][pMember] == 2 || PlayerData[playerid][pLeader] == 2 || PlayerData[playerid][pMember] == 3 || PlayerData[playerid][pLeader] == 3)
      {
        SendClientMessage(playerid, COLOR_LIGHTBLUE, "[POLITIE] (/r)adio (/d)epartments (/m)egaphone (/su)spect /mdc /arrest /duty /wanted /tazer /jaillist /clear /armour");
        SendClientMessage(playerid, COLOR_LIGHTBLUE, "[POLITIE] /frisk /take /ticket (/gov)ernment /ram /cuff /uncuff/backup /backupclear /mutadetinut /girofar /radar");
        SendClientMessage(playerid, COLOR_LIGHTBLUE, "[POLITIE] /creeazablocaj(/cb) /distrugeblocaj (/db) /aratainsigna /verificacentura /urca /coboara /cheamalift /showmembers (/sm)");
        SendClientMessage(playerid, COLOR_LIGHTBLUE, "[POLITIE] /openlspddoor /openlspdgate/openfbigate /opendoor /closedoor /openlspdbarrier /openfbibarrier1 /openfbibarrier2");
        SendClientMessage(playerid, COLOR_LIGHTBLUE, "[POLITIE] /createstrip /removeallstrip /removestrip /rfc");
      }
      if(IsAMember(playerid))
      {
        SendClientMessage(playerid, COLOR_GRAD4,"[FACTIUNE] (/f)amily (/fa)liance /takeguns /tie /untie /healhq /seif /ataca /apara /war /showmembers (/sm) /rfc /of ");
      }
      if (PlayerData[playerid][pMember] == 4 || PlayerData[playerid][pLeader] == 4)
      {
        SendClientMessage(playerid, COLOR_GRAD4, "[S.M.U.R.D] /fires /instinctor (/r)adio (/d)epartments /heal /duty /showmembers (/sm) /rfc /of");
      }
      if (PlayerData[playerid][pMember] == 17 || PlayerData[playerid][pLeader] == 17)
      {
        SendClientMessage(playerid, COLOR_GRAD4, "[Total Security] (/r)adio (/d)epartments /invite /uninvite /showmembers (/sm) /rfc /of");
      }
      if (PlayerData[playerid][pMember] == 18 || PlayerData[playerid][pLeader] == 18)
      {
        SendClientMessage(playerid, COLOR_GRAD4, "[Guvern] (/r)adio (/d)epartments /invite /uninvite /showmembers (/sm) /rfc /of /gov /setjob[lider]");
      }
      if(PlayerData[playerid][pMember] == 7 || PlayerData[playerid][pLeader] == 7)
      {
        SendClientMessage(playerid, COLOR_GRAD4,"[FACTIUNE] /givelicense /startlesson /stoplesson /showmembers (/sm) /rfc /of");
      }
      if(PlayerData[playerid][pMember] == 8 || PlayerData[playerid][pLeader] == 8)
      {
        SendClientMessage(playerid, COLOR_GRAD4,"[FACTIUNE] (/f)amily /portable /of");
      }
      if(PlayerData[playerid][pMember] == 10 || PlayerData[playerid][pLeader] == 10)
      {
        SendClientMessage(playerid, COLOR_GRAD4,"[REMORCARI AUTO] /tow /remorcarigate /remorcaridoor /impoundlot /parcheaza /descuiemasina /rfc /of");
      }
      if(PlayerData[playerid][pJob] == 1) {
      SendClientMessage(playerid, COLOR_GRAD4,"[SLUJBA] /find"); }
      else if(PlayerData[playerid][pJob] == 2) {
      SendClientMessage(playerid, COLOR_LIGHTGREEN,"[SLUJBA] /free"); }
      if(PlayerData[playerid][pJob] == 3) {
      SendClientMessage(playerid, COLOR_LIGHTGREEN,"[SLUJBA] /sex"); }
      else if(PlayerData[playerid][pJob] == 4) {
      SendClientMessage(playerid, COLOR_LIGHTGREEN,"[SLUJBA] /selldrugs"); }
      else if(PlayerData[playerid][pJob] == 5) {
      SendClientMessage(playerid, COLOR_LIGHTGREEN,"[SLUJBA] /dropcar"); }
      else if(PlayerData[playerid][pMember] == 9) {
      SendClientMessage(playerid, COLOR_LIGHTGREEN,"[FACTIUNE] /paper /papers /live /news [text]"); }
      else if(PlayerData[playerid][pJob] == 7) {
      SendClientMessage(playerid, COLOR_LIGHTGREEN,"[SLUJBA] /repair /refill /duty"); }
      else if(PlayerData[playerid][pJob] == 8) {
      SendClientMessage(playerid, COLOR_LIGHTGREEN,"[SLUJBA] /guard"); }
      else if(PlayerData[playerid][pJob] == 9) {
      SendClientMessage(playerid, COLOR_LIGHTGREEN,"[SLUJBA] /materials /sellgun"); }
      else if(PlayerData[playerid][pJob] == 12) {
      SendClientMessage(playerid, COLOR_LIGHTGREEN,"[SLUJBA] /fight /boxstats"); }
      else if(PlayerData[playerid][pJob] == 15) {
      SendClientMessage(playerid, COLOR_LIGHTGREEN,"[SLUJBA] /papers /bring /deliver"); }
      else if(PlayerData[playerid][pJob] == 16) {
      SendClientMessage(playerid, COLOR_LIGHTGREEN,"[SLUJBA] /truck"); }
      else if(PlayerData[playerid][pJob] == 17) {
      SendClientMessage(playerid, COLOR_LIGHTGREEN,"[SLUJBA] /farm"); }
        else if(PlayerData[playerid][pJob] == 22) {
      SendClientMessage(playerid, COLOR_LIGHTGREEN,"[SLUJBA] /transporta"); }
        else if(PlayerData[playerid][pJob] == 23) {
      SendClientMessage(playerid, COLOR_LIGHTGREEN,"[SLUJBA] /iarba"); }
      else if(PlayerData[playerid][pJob] == 24) {
      SendClientMessage(playerid, COLOR_LIGHTGREEN,"[SLUJBA] /starttren"); }
      else if(PlayerData[playerid][pJob] == 25) {
      SendClientMessage(playerid, COLOR_LIGHTGREEN,"[SLUJBA] /sapa /foreaza "); }
      else if(PlayerData[playerid][pJob] == 26) {
      SendClientMessage(playerid, COLOR_LIGHTGREEN,"[SLUJBA] /taie"); }
      else if(PlayerData[playerid][pJob] == 27) {
      SendClientMessage(playerid, COLOR_LIGHTGREEN,"[SLUJBA] /baloti /stop"); }
      else if(PlayerData[playerid][pJob] == 18) {
      SendClientMessage(playerid, COLOR_LIGHTGREEN,"[SLUJBA] /gunoi"); }
      else if(PlayerData[playerid][pMember] == 6 || PlayerData[playerid][pLeader] == 6 ) {
      SendClientMessage(playerid, COLOR_LIGHTGREEN,"[FACTIUNE] /fare"); }
      if (PlayerData[playerid][pAdmin] >= 1)
      {
        SendClientMessage(playerid, COLOR_GRAD2, "[ADMIN] /ah /a /aod");
      }
      if (PlayerData[playerid][pAgent] >= 1)
      {
        SendClientMessage(playerid, COLOR_GRAD2, "[Agent] /ac /agh /agentduty");
      }
      SendClientMessage(playerid, COLOR_GRAD1,"[ALTELE] /cellphonehelp /househelp /businesshelp /leaderhelp /eventhelp /donatehelp /cookhelp /fishhelp /irchelp /v /atmhelp");
    }
    return 1;
  }
Link to comment
Share on other sites

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.