Jump to content

Recommended Posts

Posted

Am nevoie de aceasta comanda urgent, oricine ma poate ajuta sa imi dea un pm sau sa lase un reply.

 

  • 11 months later...
Posted

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;

Posted (edited)

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
  • 3 weeks later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • 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.