Stránka 1 z 1

Custom Chat + Sourceban?

Napsal: 21 led 2016, 22:59
od allfucker
109.74.146.19:27820

Ahoj mám plugin Custom Chat Colors ktorý funguje len vtedy ked mam v admins_simple hodenú flagu Z tak mi dá prefix majitel ale ked zmazem stoho admins_simple flagu alebo celé moje steam id tak "Admin" mi zostane pretože to beží cez sourceban cezto nahadzujeme adminov ale nijako neviem spojit Custom Chat Colors zo Source adminom alebo proste nijako neviem stastavit flagy a celkovo aby som bol napr Hl.Admin , Admin a tak nič mi nejde len prefix Majitel a to len vtedy ked mam v admins_simple flagu Z ale pouzivam na nahadzovanie práv Sourceban ktorý ma vlastný sb_admin_groups config a nijak to neviem dať dokopy.. Príklad:

https://ctrlv.cz/pg5v Tu mám práva a flagy v sourcebane
https://ctrlv.cz/T79s Custom chat colors je to takto akokolvek mozem menit flagy a pod nijak sa mi nepodarí tie prefixy nahodit potrebujem ozaj pomoc diks

Re: Custom Chat + Sourceban?

Napsal: 22 led 2016, 08:28
od minonkad
já používám toto:

Kód: Vybrat vše

         decl String:sTextToAll[1024];
         GetCmdArgString(sTextToAll, sizeof(sTextToAll));
         StripQuotes(sTextToAll);
         LogPlayerEvent(client, "say=", sTextToAll);

         new team = GetClientTeam(client);

         if(IsPlayerAlive(client) && team == 2 || team == 3)
         {
            if(GetUserFlagBits(client) & MAJITEL)
               PrintToChatAll("\x01 \x02[MAJITEL] \x4 %N \x10%s", client, sTextToAll);
            else
               PrintToChatAll("\x01(CT)\x04[GOLD]\x07 %N \x04%s", client, sTextToAll);
         }
         /* Player isn't alive and have team (no spec) */
         else if(!IsPlayerAlive(client) && team == 2 || team == 3)
         {
            if(GetUserFlagBits(client) & MAJITEL)
               PrintToChatAll("\x01 \x02[MAJITEL] \x4 %N \x10%s", client, sTextToAll);
            else
               PrintToChatAll("\x01(CT)*MRTEV* \x04[GOLD]\x07 %N \x04%s", client, sTextToAll);
         }
         /* Player is in spectate */
         else if(!IsPlayerAlive(client) && team != 2 && team != 3)
         {
            if(GetUserFlagBits(client) & MAJITEL)
               PrintToChatAll("\x01 \x02[MAJITEL] \x4 %N \x10%s", client, sTextToAll);
            else
               PrintToChatAll("\x01(CT)*SPECTATE* \x04[GOLD]\x07 %N \x04%s", client, sTextToAll);
         }

         return Plugin_Handled;



#include <loghelper>

#define MAJITEL ADMFLAG_CUSTOM1