[Pomoc]/admini

Započeo ‹Fox›, Mart 19, 2011, 16:05:58 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Skripta koju koristim:stunt mod od 0
Detaljan opis problema:Napravio sam komandu /admini i kad si na sreveru dam admina nema me pod /admini
Dio skripte:
komanda /admini:
if(strcmp("/admini", cmdtext, true, 10) == 0)
{
SCM(playerid, COLOR_WHITE, ""COL_WHITE"~> "COL_BLUE"Admini online "COL_WHITE" <~");
for(new i=0; i<MAX_PLAYERS; i++)
{
if(AdminLevel[i] > 0)
{
new string[128];
new ime[24];
GetPlayerName(i, ime, sizeof(ime));
format(string, sizeof(string), ""COL_RED"~>"COL_YELLOW"Admin: "COL_WHITE"%s(ID:%d)"COL_RED" | "COL_YELLOW"Admlvl: "COL_WHITE"%d",ime, i, AdminLevel[i]);
SCM(playerid, COLOR_RED, string);
}
}
SCM(playerid, COLOR_WHITE, ""COL_WHITE"~>"COL_BLUE"______________"COL_WHITE"<~");
return 1;
}

Neke slike/video za lakse dobivanje pomoci(neobavezno):  http://slike.hr/slike/samp164_18e37.png.html   - ovdje se vidi da me nema pod /admini[/b][/color]
Poslednja Izmena: Mart 19, 2011, 17:00:20 POSLE PODNE od [ST]Stjepan_Fox

if (strcmp(cmd, "/admini", true) == 0)
   {
        if(IsPlayerConnected(playerid))
       {
           SendClientMessage(playerid, COLOR_RED, " ");
           SendClientMessage(playerid, COLOR_RED, "-| Imperial Admini |-");
         for(new i = 0; i < MAX_PLAYERS; i++)
         {
            if(IsPlayerConnected(i))
            {
                if(PlayerInfo[pAdmin] >= 1 && PlayerInfo[pAdmin] < 1341)
                {
                    new admtext[64];
                     if(PlayerInfo[pAdmin] == 1340) { admtext = "Vlasnik"; }
                     else if(PlayerInfo[pAdmin] == 1339) { admtext = "Direktor"; }
                    else if(PlayerInfo[pAdmin] == 1338) { admtext = "Skripter"; }
                    else if(PlayerInfo[pAdmin] == 1337) { admtext = "Glavni Admin"; }
                    else if(PlayerInfo[pAdmin] == 4) { admtext = "Level 4 Admin"; }
                  else if(PlayerInfo[pAdmin] == 3) { admtext = "Level 3 Admin"; }
                  else if(PlayerInfo[pAdmin] == 2)   { admtext = "Level 2 Admin"; }
                  else if(PlayerInfo[pAdmin] == 1) { admtext = "Level 1 Admin"; }
                  else { admtext = "Gamemoderator"; }
                  GetPlayerName(i, sendername, sizeof(sendername));
                  if(AdminDuty == 0)
                  {
                     format(string, 256, "%s ( %s )", sendername, admtext);
                     SendClientMessage(playerid, COLOR_WHITE, string);
                  }
                  else
                  {
                      format(string, 256, "%s ( %s )", sendername, admtext);
                     SendClientMessage(playerid, COLOR_YELLOW, string);
                  }
               }
            }
         }
      }
      return 1;
   }

------------------------------------------------------------------------------
Zahvaljujem Se Snich_Wolf-u Zato sto Mi je mnogo Pomogo oko Skriptanja...Snich Hvala brt <3 xD