Jump to content

Comanda /myraport


Seuz

Recommended Posts

  • 11 months later...

Poftim:

CMD:myraport(playerid, params[])
{
   if(gPlayerLogged[playerid] == 0) return SendClientMessage(playerid, COLOR_LIGHTRED, "You need to login first.");
   if(PlayerInfo[playerid][pMember] == 0) return SCM(playerid,COLOR_WHITE,"{FFB870}You are not in a faction.");
   if(IsPlayerConnected(playerid))
   {
     if(IsACop(playerid))
     {
      new string1[500], string2[500];
      format(string1, sizeof(string1), "Rank: %d | Days: %d | FW: %d/3 | Runners: %d | Arrests: %d | Tickets: %d | Drugs confiscated: %d | Licences confiscated: %d | Money Deposited: $%d",PlayerInfo[playerid][pRank],PlayerInfo[playerid][pFactionTime],PlayerInfo[playerid][pFACWarns],PlayerInfo[playerid][pRunners],PlayerInfo[playerid][pArrestss],PlayerInfo[playerid][pTickets],PlayerInfo[playerid][pDConfiscate],PlayerInfo[playerid][pLConfiscate],PlayerInfo[playerid][pMoneyD]);
      format(string2, sizeof(string2), "%s",string1);
      ShowPlayerDialog(playerid, DIALOG_COLORID, DIALOG_STYLE_MSGBOX, "Raport - Department", string2, "OK","");
     }
     if(IsAMember(playerid))
     {
      new string1[500], string2[500];
      format(string1, sizeof(string1), "Rank: %d | Days: %d | FW: %d/3 | Deposits: %d drugs / %d mats | Material Used: %d | War kill and deaths: %d kills / %d deaths  | Money Deposited: $%d",PlayerInfo[playerid][pRank],PlayerInfo[playerid][pFactionTime],PlayerInfo[playerid][pFACWarns],PlayerInfo[playerid][pDDeposit],PlayerInfo[playerid][pMDeposit],PlayerInfo[playerid][pMUsed],PlayerInfo[playerid][pWKills],PlayerInfo[playerid][pWDeaths],PlayerInfo[playerid][pMoneyD]);
      format(string2, sizeof(string2), "%s",string1);
      ShowPlayerDialog(playerid, DIALOG_COLORID, DIALOG_STYLE_MSGBOX, "Raport - Mafie", string2, "OK","");
     }
     if(PlayerInfo[playerid][pMember] == 13 || PlayerInfo[playerid][pMember] == 17)
     {
      new string1[500], string2[500];
      format(string1, sizeof(string1), "Rank: %d | Days: %d | FW: %d/3 | Orders: %d  | Money Deposited: $%d",PlayerInfo[playerid][pRank],PlayerInfo[playerid][pFactionTime],PlayerInfo[playerid][pFACWarns],PlayerInfo[playerid][pOrders],PlayerInfo[playerid][pMoneyD]);
      format(string2, sizeof(string2), "%s",string1);
      ShowPlayerDialog(playerid, DIALOG_COLORID, DIALOG_STYLE_MSGBOX, "Raport - Taxi", string2, "OK","");
     }
     if(PlayerInfo[playerid][pMember] == 11)
     {
      new string1[500], string2[500];
      format(string1, sizeof(string1), "Rank: %d | Days: %d | FW: %d/3 | Contracts: %d  | Money Deposited: $%d",PlayerInfo[playerid][pRank],PlayerInfo[playerid][pFactionTime],PlayerInfo[playerid][pFACWarns],PlayerInfo[playerid][pContracts],PlayerInfo[playerid][pMoneyD]);
      format(string2, sizeof(string2), "%s",string1);
      ShowPlayerDialog(playerid, DIALOG_COLORID, DIALOG_STYLE_MSGBOX, "Raport - Hitman", string2, "OK","");
     }
     if(PlayerInfo[playerid][pMember] == 12)
     {
      new string1[500], string2[500];
      format(string1, sizeof(string1), "Rank: %d | Days: %d | FW: %d/3 | Licences given: %d  | Money Deposited: $%d",PlayerInfo[playerid][pRank],PlayerInfo[playerid][pFactionTime],PlayerInfo[playerid][pFACWarns],PlayerInfo[playerid][pLGiven],PlayerInfo[playerid][pMoneyD]);
      format(string2, sizeof(string2), "%s",string1);
      ShowPlayerDialog(playerid, DIALOG_COLORID, DIALOG_STYLE_MSGBOX, "Raport - School Instructor", string2, "OK","");
     }
     if(PlayerInfo[playerid][pMember] == 14)
     {
      new string1[500], string2[500];
      format(string1, sizeof(string1), "Rank: %d | Days: %d | FW: %d/3 | Patiens Healed: %d  | Money Deposited: $%d",PlayerInfo[playerid][pRank],PlayerInfo[playerid][pFactionTime],PlayerInfo[playerid][pFACWarns],PlayerInfo[playerid][pPHeals],PlayerInfo[playerid][pMoneyD]);
      format(string2, sizeof(string2), "%s",string1);
      ShowPlayerDialog(playerid, DIALOG_COLORID, DIALOG_STYLE_MSGBOX, "Raport - Paramedic", string2, "OK","");
     }
     if(PlayerInfo[playerid][pMember] == 9)
     {
      new string1[500], string2[500];
      format(string1, sizeof(string1), "Rank: %d | Days: %d | FW: %d/3 | Lives: %d | News: %d  | Money Deposited: $%d",PlayerInfo[playerid][pRank],PlayerInfo[playerid][pFactionTime],PlayerInfo[playerid][pFACWarns],PlayerInfo[playerid][pLives],PlayerInfo[playerid][pNews],PlayerInfo[playerid][pMoneyD]);
      format(string2, sizeof(string2), "%s",string1);
      ShowPlayerDialog(playerid, DIALOG_COLORID, DIALOG_STYLE_MSGBOX, "Raport - New Reporters", string2, "OK","");
     }
   }
   return 1;

Link to comment
Share on other sites

Daca ai id-urile factiunilor diferite,editeaza tu ca o sa se creeze un bug imens,de exemplu.

Id-ul factiunii taxi los santos la aceasta comanda este la id 12 si tu ai alta factiune la id 12,sa editezi lucru asta cu id-ul factiunii din GM-ul tau,deoarece,la factiunea pe care o ai tu la id 12 o sa arate raport-ul pentru pentru factiunea din acea comanda.

Daca iti da erori,inseamna ca GM-ul tau nu defineste variabila din acea comanda,o sa te las pe tine sa experimentezi acest lucru,ca sa faci si tu ceva.

 

Edited by CAiSEN
Link to comment
Share on other sites

  • 3 weeks later...

Join the conversation

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

Guest
Reply to this topic...

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