[C++] GM adına sahip özel etiket

  • Konuyu başlatan Konuyu başlatan -Blaster-
  • Başlangıç tarihi Başlangıç tarihi
  • Cevaplar Cevaplar 7
  • Görüntüleme Görüntüleme 754

-Blaster-

Server Files Satış ve Lisans. www.blastersf.shop
Katılım
22 Eki 2024
Konular
91
Mesajlar
467
Online süresi
1mo 12d
Reaksiyon Skoru
493
Altın Konu
13
Başarım Puanı
113
MmoLira
21,982
DevLira
129
Ticaret - 0%
0   0   0

ROHAN2 WORLD 1-120 TR TİPİ OFFICIAL YOHARA, BALATHOR VE AMON! 80. GÜNÜNDE! +10.000 ONLİNE! HİLE VE BOT %100 ENGELLİ HEMEN TIKLA!


[CODE lang="cpp" title="InstanceBaseEffect.cpp:"]Search for CInstanceBase::UpdateTextTailLevel
Below sprintf(szText, "Lv %d", level);
And before CPythonTextTail::Instance().AttachLevel(GetVirtualID(), szText, s_kLevelColor);
Add this
if (IsGameMaster())
{
const char* name = GetNameString();
size_t len = strcspn(name, "]");
char *result = (char *)malloc((len + 1) * sizeof(char)); // Not sure why on client side needs to be like this
strncpy(result, name, len +1);
result[len + 1] = '\0';

const char *tagDictionary[] = {
"[GM]",
"[SA]",
"[GA]",
"[DEV]"
};

//Here you can also change the color of the tag
const char *nameDictionary[] = {
"|cffff0000[STAFF]",
"|cffff0000[EQUIPA]",
"|cffff0000[STAFF2]",
"|cffff0000[DEVELOPER]"
};

int tagIndex = -1;
for (int i = 0; i < sizeof(tagDictionary) / sizeof(tagDictionary[0]); ++i) {
if (strcmp(result, tagDictionary) == 0) {
tagIndex = i;
break;
}
}

if (tagIndex != -1){
sprintf(szText, nameDictionary[tagIndex]);
}
else{
// This is just for if the code cant find any tag, it will default to this one.
// You can also just delete this whole else statement and it will default to the level text
sprintf(szText, "|cffff0000[TEST]");
}
free(result);

CPythonTextTail::Instance().AttachLevel(GetVirtualID(), szText, s_kLevelColor);
}
[/CODE]
 
Share the effect folder with the thank you tag.
 
Paylaşım için teşekkür ederim
 
Paylaşım için teşekkürler.
 

Şu an konuyu görüntüleyenler (Toplam : 0, Üye: 0, Misafir: 0)