*Problemă/Întrebare: Am restrictie pe comanda /i , comanda merge doar pe numele Charmeine, cum pot sa scot restrictia sau ce este
Tipologie server: PvP
*Resursă folosită:
*ServerFiles utilizat:Hemera
*Syserr:
Poză:
*Detalii suplimentare:
Restrictie comanda /i
- FALLEN1
-

- Mesaje: 585
- Membru din: 14 Noi 2015, 20:12
- Server: Dark-Fusion2
- Regat: Chunjo
- Aprecieri: 366
- Mulţumiri: 758
- Rezolvări prob.: 2
- Discord: Copiază ID
Cod: Selectaţi tot
bool CHARACTER::IsAdmin(LPCHARACTER ch)
{
std::string strListMembers[3] =
{
"[Escobar]",
"[Charmeine]",
"[SA]Mangopelo",
};
for (unsigned int i = 0; i < _countof(strListMembers); i++)
{
if (!strcmp(strListMembers[i].c_str(), ch->GetName()) && ch->GetGMLevel() == GM_IMPLEMENTOR)
{
return true;
}
}
return false;
}FALLEN1 scrie: ↑02 Iul 2021, 13:49Asta e in char.cpp, pune ti numele tau si ai rezolvat :-/Cod: Selectaţi tot
bool CHARACTER::IsAdmin(LPCHARACTER ch) { std::string strListMembers[3] = { "[Escobar]", "[Charmeine]", "[SA]Mangopelo", }; for (unsigned int i = 0; i < _countof(strListMembers); i++) { if (!strcmp(strListMembers[i].c_str(), ch->GetName()) && ch->GetGMLevel() == GM_IMPLEMENTOR) { return true; } } return false; }
Multumesc frumos de ajutor! Rezolvat
- Fubuki.Atsuya
-

- Mesaje: 1968
- Membru din: 22 Iun 2015, 21:13
- Server: OldLegion2
- Regat: Shinsoo
- Aprecieri: 455
- Mulţumiri: 815
- Rezolvări prob.: 2
- Discord: Copiază ID
T/C
Mutat în probleme rezolvate
Mutat în probleme rezolvate
-
- Informaţie
-
Cine este conectat
Utilizatori ce ce navighează pe acest forum: cosminusi93ksm și 50 vizitatori



