CPU

ff
MG Yaşı
1 Yıl 3 Ay 12 Gün
Katılım
22 Ara 2024
Konular
67
Mesajlar
377
Tepkime puanı
82
Puan
53
Konum
Türkiye
Web sitesi
metin2games.com.tr
input_login.cpp dosyasını bul:
C++:
ARAT
ch->Show(ch->GetMapIndex(),
      
ALTINA EKLE

if (ch->IsGM())
    {
        char buf[1024];
        snprintf(buf, sizeof(buf), "STAFF [ %s ] sunucuya giris yapti, kendine göre duzenle!", ch->GetName());
        BroadcastNotice(buf);
    }

Işınlanınca Tekrar Gözükmesin
C++:
    if (ch->IsGM())
    {
        
        
        int iSonGiris = ch->GetQuestFlag("system.gm_giris_zamani");
        int iSuan = get_global_time();

    
        
        if (iSuan - iSonGiris > 10) // burayı isterseniz 10 değil 20 yapabilirsiniz ama genelde ışınlanma ve noticeshowlar 10 sn olduğu için böyle bi flag ekledim
        {
            char buf[1024];
            snprintf(buf, sizeof(buf), "YONETIM: [Staff %s] oyuna giris yapti.", ch->GetName());
            BroadcastNotice(buf);
            
            
            ch->SetQuestFlag("system.gm_giris_zamani", iSuan);
        }
    }
 
Geri
Üst