Genel Forumlar Haylazforum.Net

Genel Forumlar Haylazforum.Net (https://haylazforum.net/)
-   Unreal3.x - Hazır Kodlar (https://haylazforum.net/336-unreal3-x-hazir-kodlar/)
-   -   Unreal3.x Hazır Kodlar Topic'de Rumuz Değişkeni Ekleme (https://haylazforum.net/unreal3-x-hazir-kodlar/9261-topic-de-rumuz-degiskeni-ekleme.html)

Aytac 16.Şubat.2019 02:24

Topic'de Rumuz Değişkeni Ekleme
 
Klasör: Unreal3.2*/scr/modules/
Dosya: <m_join.c>

BULUN
:
Kod:

  if (chptr->topic)
        {
           
sendto_one(sptr, rpl_str(RPL_TOPIC),
               
me.name, sptr->name, chptr->chname, chptr->topic);
           
sendto_one(sptr,
               
rpl_str(RPL_TOPICWHOTIME), me.name,
               
sptr->name, chptr->chname, chptr->topic_nick,
               
chptr->topic_time);
        } 

DEGISTIRIN:

Kod:

if (chptr->topic)
        {
           
char xtopic[500];
           
char xtopic1[305];
           
           
char harf[3];
           
char harf1[2] = " ";
           
sprintf(xtopic1, "%s", chptr->topic);
            if (
strstr(xtopic1, "$")) {
           
int i, x;
           
x=strlen(chptr->topic);
           
i=0;
              for (
i=0; i<x;i++) {
                if (
i==0)
                 
strcpy( xtopic, harf1 );
              if (
xtopic1[i] == (char)36) {
             
strcat( xtopic, sptr->name );
                } else {
             
sprintf(harf, "%c", xtopic1[i]);
             
strcat( xtopic, harf );
                }

                }
       
           
sendto_one(sptr, rpl_str(RPL_TOPIC),
               
me.name, sptr->name, chptr->chname, xtopic);
            }
            else {
           
sendto_one(sptr, rpl_str(RPL_TOPIC),
               
me.name, sptr->name, chptr->chname, chptr->topic);
            }
           
sendto_one(sptr,
               
rpl_str(RPL_TOPICWHOTIME), me.name,
               
sptr->name, chptr->chname, chptr->topic_nick,
               
chptr->topic_time);
        } 

* make ve ./unreal rehash komutlarını uygulamanız halinde işleminiz gerçekleşmiş olacak, böylece TOPIC-e $ karakterini eklediğiniz herhangi bir kanala girdiğinizde kullanmış olduğunuz Rumuz, şeklinde görünecektir.

Kod yazarı: ysfm

ssss2 20.Ağustos.2020 10:55

Cevap: Topic'de Rumuz Değişkeni Ekleme
 
Teşekkürler


Tüm Zamanlar GMT +3 Olarak Ayarlanmış. Şuanki Zaman: 06:49.

Powered by vBulletin® Version 3.8.9
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved.
Search Engine Optimization by vBSEO 3.6.1

User Alert System provided by Advanced User Tagging (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.Navbar with Avatar by Motorradforum