[SAVIJET] Dali ovo stima

Započeo Kirali, Oktobar 06, 2016, 22:24:18 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 2 gostiju pregledaju ovu temu.

O kakvom savjetu se radi: Dali bi moglo ovo raditi  samo me to zanima tijeo sam da lideri admini mogu pisati vamo
Detaljan opis savjeta:
Komentar:[pawn]YCMD:lchat(playerid,params[],help)
{
   #pragma unused help
   if(UlogovanIgrac[playerid] == 0 || PI[playerid][pReg] == 0) return Error(playerid, "Nisi ulogovan/a ili nisi registrovan/a!");
    if(PI[playerid][pLider] < 1 && ACCmd[playerid] == 1) return Error(playerid, "Komande mozete koristiti svake 2 sekunde!");
   CmdProtect(playerid);
   if(IsPlayerConnected(playerid))
   {
      new LiderChat[128];
      if(sscanf(params, "s[128]", LiderChat)) return Cmd(playerid, "/lchat - (text)");
      else
      {
          if(UlogovanIgrac[playerid] == 0) return Error(playerid, "Ne mozes to!");
          if(PI[playerid][pJailTime] > 0 && PI[playerid][pLider] < 15) return Error(playerid, "Ne mozes to, zatvoren si.");
          if(PI[playerid][pMute] == 1) return Error(playerid, "Ne mozes to, ucutkan si.");
          if(Zavezan[playerid] > 0 || Tazovan[playerid] > 0 || Tie[playerid] > 0) return Error(playerid, "Ne mozete to dok ste zavezani/sokirani! (zbog psovanja)");
          if(kLol[playerid] > 0) return Error(playerid, "Ne mozete to!");
          if(Pisanje[playerid] == 1 && PI[playerid][pServer] < 1) return Error(playerid, "Sacekaj 10 sec.");
          Pisanje[playerid] = 1;
         SetTimerEx("PisanjeSpam", 10000, false, "i", playerid);
         new sendername[MPN];
         GetPlayerName(playerid, sendername, sizeof(sendername));
         strreplace(sendername, '_', ' ');
         new Adminlevel[64];
         new string[300];
         if(PI[playerid][pLider] == 1) { arank = "|L| Lider Policije"; }
         else if(PI[playerid][pLider] == 2) { arank = "|L| Lider Interventne"; }
         else if(PI[playerid][pLider] == 3) { arank = "|L| Lider S.Policije"; }
         else if(PI[playerid][pLider] == 4) { arank = "|L| Lider Hitne Pomoci"; }
         else if(PI[playerid][pLider] == 5) { arank = "|L| Lider Novinara"; }
         else if(PI[playerid][pLider] == 6) { arank = "|L| Lider Taxia"; }
         else if(PI[playerid][pLider] == 7) { arank = "|L| Lider Ruske Mafie"; }
         else if(PI[playerid][pLider] == 8) { arank = "|L| Lider Los Surenosa"; }
         else if(PI[playerid][pLider] == 9) { arank = "|L| Lider Groove Street Familya"; }
         else if(PI[playerid][pLider] == 10) { arank = "|L| Lider Privatne Organizacije 1"; }
         else if(PI[playerid][pLider] == 11) { arank = "|L| Lider The Escobar Cartela"; }
         else if(PI[playerid][pLider] == 12) { arank = "|L| Lider Ballasa"; }
         else if(PI[playerid][pLider] == 13) { arank = "|L| Lider Yakuze"; }
         else if(PI[playerid][pLider] == 14) { arank = "|L| Lider Mare Salvatruche 13"; }
         else if(PI[playerid][pLider] == 15) { arank = "|L| Lider Parking Servisa"; }
         else if(PI[playerid][pServer] == 1) { Adminlevel = "|L| ABE 1"; }
         else if(!strcmp(GetName(playerid), Head_Admin, true) && PI[playerid][pServer] > 0) { Adminlevel = "|L| Head ABE"; } // Picka!
         else if(PI[playerid][pServer] == 1) { Adminlevel = "|L| ABE 1"; }
         else if(PI[playerid][pServer] == 2) { Adminlevel = "|L| ABE 2"; }
         else if(PI[playerid][pServer] == 3) { Adminlevel = "|L| ABE 3"; }
         else if(PI[playerid][pServer] == 4) { Adminlevel = "|L| Head Admin"; }
         else if(PI[playerid][pServer] == 5) { Adminlevel = "|L| Direktor"; }
         else if(PI[playerid][pServer] == 6) { Adminlevel = "|L| Vlasnik"; }
         else { Adminlevel = ""; }
         format(string, sizeof(string), "%s %s: {FFFFFF}%s", Adminlevel, sendername, LiderChat);
         if (PI[playerid][pServer] > 0 || PI[playerid][LiderChat] > 0)
         {
            SupChat(SVETLOZUTA, string, 1);
         }
         printf("S %s: %s", sendername, LiderChat);
      }
   }
   return true;
}[/pawn]


i ima ovo

[pawn]forward LiderChat(color, string[]);
public LiderChat(color, string[])
{
   foreach(Player,i)
   {
      if(PlayerInfo[pLider] >= 1)
      {
         SendClientMessage(i, color, string);
      }
   }
}[/pawn]


TREBAM SAMO SAVIJE DALI VALJA NETREBAM POMOC SAM SAM NAPRAVIO OVO :)





Molimo te da procitas pravila foruma te da onda otvoris temu po pravilima.

Razlog zakljucavanja:

Zabranjen je popularni BUMP(osvježavanje teme duplim postom) osim u slučaju da je prošlo 24h od zadnjeg posta!

Sve teme koje budu imale npr.  "[Pomoc] Potrebna pomoc" ce biti lockane jer u naslovu ne navode za sto im je potrebna pomoc.

Pravila:

Glavna pravila Balkan SA:MP foruma .

Razgovor u vezi PAWN-Skriptanja .

"They have computers, and they may have other weapons of mass destruction."