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
Custom Chat + Sourceban?
-
- Příspěvky: 13
- Věk: 29
- Registrován: 24 srp 2014, 04:38
- Reputation: 0
-
- Příspěvky: 22
- Registrován: 19 kvě 2013, 11:16
- Reputation: 0
Re: Custom Chat + Sourceban?
já používám toto:
#include <loghelper>
#define MAJITEL ADMFLAG_CUSTOM1
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
Zpět na „Counter-Strike: Global Offensive“
Kdo je online
Uživatelé prohlížející si toto fórum: Žádní registrovaní uživatelé a 8 hostů