[POMOC] Komanda /lideri

Započeo Ante_Dracar aka Lopa, Avgust 22, 2010, 21:03:31 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

moze li pomoc oko komande /lideri dakle kad upisem /lideri da mi pokaze online lidere   molim vas ako mi neko moze dat tu komandu posto mi bas ne de da je napravim.

hvala unaprjrd...
Poslednja Izmena: Avgust 22, 2010, 21:38:10 POSLE PODNE od [BP] AleeN ba! ^^

Evo ti ova sto sam ja radio dobra je radi samo ti mozes urediti boje i to...

       if (strcmp(cmd, "/lideri", true) == 0)
   {
        if(IsPlayerConnected(playerid))
       {
         SendClientMessage(playerid, COLOR_GRAD1, "Lideri Online:");
         for(new i = 0; i < MAX_PLAYERS; i++)
         {
            if(IsPlayerConnected(i))
            {
                if(PlayerInfo[pLeader] == 1)
                {
                  GetPlayerName(i, sendername, sizeof(sendername));
                  format(string, 256, "PD: %s", sendername);
                  SendClientMessage(playerid, COLOR_GRAD2, string);
               }
                else if(PlayerInfo[pLeader] == 2)
                {
                  GetPlayerName(i, sendername, sizeof(sendername));
                  format(string, 256, "FBI: %s", sendername);
                  SendClientMessage(playerid, COLOR_GRAD2, string);
               }
               else if(PlayerInfo[pLeader] == 3)
                {
                  GetPlayerName(i, sendername, sizeof(sendername));
                  format(string, 256, "Vojska: %s", sendername);
                  SendClientMessage(playerid, COLOR_GRAD2, string);
               }
                 else if(PlayerInfo[pLeader] == 4)
                {
                  GetPlayerName(i, sendername, sizeof(sendername));
                  format(string, 256, "MD: %s", sendername);
                  SendClientMessage(playerid, COLOR_GRAD2, string);
               }
               else if(PlayerInfo[pLeader] == 5)
                {
                  GetPlayerName(i, sendername, sizeof(sendername));
                  format(string, 256, "Surenos Gangsteri: %s", sendername);
                  SendClientMessage(playerid, COLOR_GRAD2, string);
               }
               else if(PlayerInfo[pLeader] == 6)
                {
                  GetPlayerName(i, sendername, sizeof(sendername));
                  format(string, 256, "Signatra Mafia: %s", sendername);
                  SendClientMessage(playerid, COLOR_GRAD2, string);
               }
               else if(PlayerInfo[pLeader] == 7)
                {
                  GetPlayerName(i, sendername, sizeof(sendername));
                  format(string, 256, "Gradonacelnik: %s", sendername);
                  SendClientMessage(playerid, COLOR_GRAD2, string);
               }
               else if(PlayerInfo[pLeader] == 8)
                {
                  GetPlayerName(i, sendername, sizeof(sendername));
                  format(string, 256, "Hitmeni: %s", sendername);
                  SendClientMessage(playerid, COLOR_GRAD2, string);
               }
               else if(PlayerInfo[pLeader] == 9)
                {
                  GetPlayerName(i, sendername, sizeof(sendername));
                  format(string, 256, "CNN: %s", sendername);
                  SendClientMessage(playerid, COLOR_GRAD2, string);
               }
               else if(PlayerInfo[pLeader] == 10)
                {
                  GetPlayerName(i, sendername, sizeof(sendername));
                  format(string, 256, "Taxi: %s", sendername);
                  SendClientMessage(playerid, COLOR_GRAD2, string);
               }
               else if(PlayerInfo[pLeader] == 11)
                {
                  GetPlayerName(i, sendername, sizeof(sendername));
                  format(string, 256, "Licenseri: %s", sendername);
                  SendClientMessage(playerid, COLOR_GRAD2, string);
               }
               else if(PlayerInfo[pLeader] == 12)
                {
                  GetPlayerName(i, sendername, sizeof(sendername));
                  format(string, 256, "Vatrogasci: %s", sendername);
                  SendClientMessage(playerid, COLOR_GRAD2, string);
               }
               else if(PlayerInfo[pLeader] == 13)
                {
                  GetPlayerName(i, sendername, sizeof(sendername));
                  format(string, 256, "SoA Gangsteri: %s", sendername);
                  SendClientMessage(playerid, COLOR_GRAD2, string);
               }
               else if(PlayerInfo[pLeader] == 14)
                {
                  GetPlayerName(i, sendername, sizeof(sendername));
                  format(string, 256, "Yamaguchi: %s", sendername);
                  SendClientMessage(playerid, COLOR_GRAD2, string);
               }
               else if(PlayerInfo[pLeader] == 15)
                {
                  GetPlayerName(i, sendername, sizeof(sendername));
                  format(string, 256, "Chornaya Mafia: %s", sendername);
                  SendClientMessage(playerid, COLOR_GRAD2, string);
               }
            else if(PlayerInfo[pLeader] == 16)
                {
                  GetPlayerName(i, sendername, sizeof(sendername));
                  format(string, 256, "La Vice Mafia: %s", sendername);
                  SendClientMessage(playerid, COLOR_GRAD2, string);
               }
            }
         }
      }
      return 1;
   }

Odgovorio ti je, ovdje ide LOCK. Ako ti još nešto nije jasno u vezi ovoga, pitaj me na pm ili mi jednostavno javi da ti odključam opt temu.



@ Ante_Dracar aka Lopa : Imao si dobru namjeru sa ovim naslovom, ali sljedeći put molim te napiši [POMOC] a ne pomoc =. Ispravit ću ti ja ovaj put.

Hvala,

Alen.
Povratak na balkan-samp  :)  15.01.2013. 
..   


Respect : [BP]HeLoX, Correlli, [CH:FR]Djea, LordShigi, LuKsA, BloodMaster, [H]265