/leaders komanda

Započeo Zlatan_Ibrahimovic, Jul 28, 2010, 19:40:33 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Zlatan_Ibrahimovic

Moze li mi ko reci kako se pravi /leaders komanda da se gleda koji su leaderi online???

Evo ti  ;)

if(strcmp(cmdtext, "/leaders", true, 10) == 0)
{
}

;D

Niko ti nece napravit komandu :S

Zlatan_Ibrahimovic


public OnPlayerCommandText(playerid, cmdtext[])

pod to se stavlja ta komanda /leaders

Zlatan_Ibrahimovic

i kad ukucam /leaders ne pise ono LEADERS ONLINE ON SERVER
i stoji ovo


warning 217: loose indentation
Pawn compiler 3.2.3664           Copyright (c) 1997-2006, ITB CompuPhase
Poslednja Izmena: Jul 28, 2010, 20:03:57 POSLE PODNE od Zlatan_Ibrahimovic

pa zato jer moras do kraja napraviti komandu.

Zlatan_Ibrahimovic


if(strcmp(cmd, "/leaders", true) == 0)
            {
            SendClientMessage(playerid,COLOR_GREEN, "Online Leaders:");
            new LeadersOnline;
             for(new i; i < MAX_PLAYERS; i++)
                    {
                    if(IsPlayerConnected(i))
                    {
                    if(PlayerInfo[playerid][pLeader] == 1)
                {
                   new LeaderName[MAX_PLAYER_NAME];
                   GetPlayerName(i, LeaderName, sizeof(LeaderName));
               format(string, sizeof(string), "* Police: %s", LeaderName);
                   SendClientMessage(playerid, COLOR_GREY, string);
               }
                if(PlayerInfo[playerid][pLeader] == 2)
                {
                   new LeaderName[MAX_PLAYER_NAME];
                   GetPlayerName(i, LeaderName, sizeof(LeaderName));
               format(string, sizeof(string), "* FBI: %s", LeaderName);
                   SendClientMessage(playerid, COLOR_GREY, string);
               }
                if(PlayerInfo[playerid][pLeader] == 3)
                {
                   new LeaderName[MAX_PLAYER_NAME];
                   GetPlayerName(i, LeaderName, sizeof(LeaderName));
               format(string, sizeof(string), "* National Guards: %s", LeaderName);
                   SendClientMessage(playerid, COLOR_GREY, string);
               }
                if(PlayerInfo[playerid][pLeader] == 4)
                {
                   new LeaderName[MAX_PLAYER_NAME];
                   GetPlayerName(i, LeaderName, sizeof(LeaderName));
               format(string, sizeof(string), "* Emergency: %s", LeaderName);
                   SendClientMessage(playerid, COLOR_GREY, string);
               }
               if(PlayerInfo[playerid][pLeader] == 5)
                {
                   new LeaderName[MAX_PLAYER_NAME];
                   GetPlayerName(i, LeaderName, sizeof(LeaderName));
               format(string, sizeof(string), "* La Cosa Nostra: %s", LeaderName);
                   SendClientMessage(playerid, COLOR_GREY, string);
               }
               if(PlayerInfo[playerid][pLeader] == 6)
                {
                   new LeaderName[MAX_PLAYER_NAME];
                   GetPlayerName(i, LeaderName, sizeof(LeaderName));
               format(string, sizeof(string), "* Yakuza: %s", LeaderName);
                   SendClientMessage(playerid, COLOR_GREY, string);
               }
               if(PlayerInfo[playerid][pLeader] == 7)
                {
                   new LeaderName[MAX_PLAYER_NAME];
                   GetPlayerName(i, LeaderName, sizeof(LeaderName));
               format(string, sizeof(string), "* Mayor: %s", LeaderName);
                   SendClientMessage(playerid, COLOR_GREY, string);
               }
               if(PlayerInfo[playerid][pLeader] == 8)
                {
                   new LeaderName[MAX_PLAYER_NAME];
                   GetPlayerName(i, LeaderName, sizeof(LeaderName));
               format(string, sizeof(string), "* Hitmans: %s", LeaderName);
                   SendClientMessage(playerid, COLOR_GREY, string);
               }
               if(PlayerInfo[playerid][pLeader] == 9)
                {
                   new LeaderName[MAX_PLAYER_NAME];
                   GetPlayerName(i, LeaderName, sizeof(LeaderName));
               format(string, sizeof(string), "* News Reporter: %s", LeaderName);
                   SendClientMessage(playerid, COLOR_GREY, string);
               }
               if(PlayerInfo[playerid][pLeader] == 10)
                {
                   new LeaderName[MAX_PLAYER_NAME];
                   GetPlayerName(i, LeaderName, sizeof(LeaderName));
               format(string, sizeof(string), "* Taxi Cab: %s", LeaderName);
                   SendClientMessage(playerid, COLOR_GREY, string);
               }
               if(PlayerInfo[playerid][pLeader] == 11)
                {
                   new LeaderName[MAX_PLAYER_NAME];
                   GetPlayerName(i, LeaderName, sizeof(LeaderName));
               format(string, sizeof(string), "* License System: %s", LeaderName);
                   SendClientMessage(playerid, COLOR_GREY, string);
               return 1;
            }
         }
      }
    if(LeadersOnline == 0)
      {
          SendClientMessage(playerid, COLOR_GREEN, "[____________________________________].");
      }
   return 1;
}



evo ti komanda lideri. pa ti sad koju org nemas, samo obrisi. xD

Zlatan_Ibrahimovic

mozete vi napraviti FilterScriptu sa leaders online ja ne znam to  :'(
Poslednja Izmena: Jul 28, 2010, 20:38:28 POSLE PODNE od Zlatan_Ibrahimovic

Hah ovo ide u potpis. Sad je kod mene doslovno ROFL.


RESPECT 4 EVER: John, GLC,bAndzi, Nikola, Sop, Zoki, Bruno_Venuti, Mele, Luka P,ExtremePower,Wang(neki kineski frajer)

NAJBOLJI CITATI:
Citat: [GF]Alive poslato Jun 24, 2010, 18:20:19 POSLE PODNE
Paizte ljud mozda je KayLoger! ! !
MOJI RADOVI:
[FS]Trofeji


Ajde mi ti pametnjakovicu reci, kako cemo napravit FS, ako ti je pLeader u modu itd.. da ne nabrajam, ako ono neznas ubacit, okani se skriptanja, sve su ti lijepo objasnili
Aequam memento rebus in arduis servare mentem.