[pomoc] chat

Započeo makelele, Mart 05, 2011, 21:27:48 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

makelele

Skripta koju koristim:Vlastitu
Detaljan opis problema:Vako hocu napraviti chatove znaci admin chat ooc chat,ali nemogu nikako probavao sam ali mi neide,makar da mije admin chat i ooc chat(/b)
Dio skripte:
Neke slike/video za lakse dobivanje pomoci(neobavezno):

dragan12

Ovako je kod mene aooc
if(strcmp(cmd, "/aooc", true) == 0 || strcmp(cmd, "/ao", true) == 0)
   {
       if(IsPlayerConnected(playerid))
       {
           if(gPlayerLogged[playerid] == 0)
           {
               SendClientMessage(playerid, COLOR_GREY, "   Niste se prijavili !");
               return 1;
           }
         if (PlayerInfo[playerid][pAdmin] < 1)
         {
            SendClientMessage(playerid, COLOR_GRAD2, "   A-OOC je ugasen od strane Admina !");
            return 1;
         }
         GetPlayerName(playerid, sendername, sizeof(sendername));
         new length = strlen(cmdtext);
         while ((idx < length) && (cmdtext[idx] <= ' '))
         {
            idx++;
         }
         new offset = idx;
         new result[64];
         while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
         {
            result[idx - offset] = cmdtext[idx];
            idx++;
         }
         result[idx - offset] = EOS;
         if(!strlen(result))
         {
            SendClientMessage(playerid, COLOR_GRAD2, "Koriscenje: (/ao)oc [aooc chat]");
            return 1;
         }
         format(string, sizeof(string), "[A-OOC] Admin %s: %s " , sendername, result);
         OOCOff(0x9ACD32AA,string);
         printf("%s", string);
      }
      return 1;
   }


A ovako ooc:

   if(strcmp(cmd, "/ooc", true) == 0 || strcmp(cmd, "/o", true) == 0)
   {
       if(IsPlayerConnected(playerid))
       {
           if(gPlayerLogged[playerid] == 0)
           {
               SendClientMessage(playerid, COLOR_GREY, "   Niste se prijavili !");
               return 1;
           }
         if ((noooc) && PlayerInfo[playerid][pAdmin] < 1)
         {
            SendClientMessage(playerid, COLOR_GRAD2, "   OOC je ugasen od strane Admina !");
            return 1;
         }
         if(PlayerInfo[playerid][pMuted] == 1)
         {
            SendClientMessage(playerid, TEAM_CYAN_COLOR, "   Ne mozete pricati, oduzeto vam je pravo govora !");
            return 1;
         }
         GetPlayerName(playerid, sendername, sizeof(sendername));
         new length = strlen(cmdtext);
         while ((idx < length) && (cmdtext[idx] <= ' '))
         {
            idx++;
         }
         new offset = idx;
         new result[64];
         while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
         {
            result[idx - offset] = cmdtext[idx];
            idx++;
         }
         result[idx - offset] = EOS;
         if(!strlen(result))
         {
            SendClientMessage(playerid, COLOR_GRAD2, "Koriscenje: (/o)oc [ooc chat]");
            return 1;
         }
         format(string, sizeof(string), "[OOC] %s: %s " , sendername, result);
         OOCOff(COLOR_OOC,string);
         printf("%s", string);
      }
      return 1;
   }
Poslednja Izmena: Mart 06, 2011, 19:59:03 POSLE PODNE od dragan12

pa jel imas definisane admin levele ?
Citat: ...Neno... poslato Januar 26, 2013, 23:31:02 POSLE PODNE
Poceo sam mapati i tu je doslo do problema.Nakon par mapa,vidio sam post Gottia i kaze da nista nevalja da je katastrofa,i pocnemo se svadjati,psovati.Popusimo bananu obojica,i nakon toga nesto sam napravio (mapu) i Gotti kaze dobra,uh reko opet me zajebava,i saljem ja njemu na pm reko ti mene zajebavas,kaze on ne,i pomirimo se.Nakon toga postali smo dosta dobri

Objasnio sam mu ja sve na PP..

makelele