⭐🚀 TkyNET | Blacklist ve Profesyonel DDoS Korumalı TeamSpeak 3 Sunucuları 🚀⭐
Sponsor Görsel
🔥 Netvay VDS – Daha Fazla Güç, Daha Fazla Performans, Daha Fazla Başarı!
Sponsor Görsel 2
SponsorSponsor

Konu

#1
Arkadaşlar CS:Go t sustum eklentısı ıstemıstım 2 gun once cok yardımcı oldunuz sagolun bayram dolayısıyla iş yogun oldugu ıcın guncelleyemedım buradan devam edıyorum kusura bakmayın.

Kod:
/* Sublime AMXX Editor v2.2 */

#include <amxmodx>

native bmParaCektir(id);
native bmParaDuzenle(id, Miktar);

#define sD_ChatTag   "!n[ !tDARKTHRONE !n]"

new const sG_Yazilar[][] = {
    "armut","yarabandi","elma","kelmahmut","bumbe","webailesi","benkimim"
}
new iG_Time,bool:pCevaplandi,iG_QuestStatus,iL_Random
public plugin_init() {
    register_plugin("Bir Eklenti", "1.0", "PawNod'")

    register_clcmd("say","pGoAnswer");
   
     iG_Time = register_cvar("tsustum_zaman","20");
    set_task(get_pcvar_float(iG_Time),"pAskQuestion",0);   
}
public pAskQuestion(){
    iL_Random = random_num(0,sizeof(sG_Yazilar)-1)
    pCevaplandi = false;
    iG_QuestStatus = 1;
    sColoredChat(0,"%s !gIlk yazan kazanir !n[ !t%s !n]!n!",sD_ChatTag,sG_Yazilar[iL_Random]);
    remove_task();
    set_task(get_pcvar_float(iG_Time)+15.0,"pNewQuestion");
}
public pNewQuestion(){
    if(iG_QuestStatus == 1){
        sColoredChat(0,"%s !gSoruyu bilen yok yeni soru birazdan geliyor!n!",sD_ChatTag);
        remove_task();
        set_task(get_pcvar_float(iG_Time),"pAskQuestion",0);
    }
}
public pGoAnswer(id){
    if(iG_QuestStatus == 1 && pCevaplandi == false){
        new sL_Arg[32];
        pCevaplandi = true;
        read_args(sL_Arg,charsmax(sL_Arg));
        remove_quotes(sL_Arg);
        if(equali(sG_Yazilar[iL_Random],sL_Arg)){
            new Name[64];
            get_user_name(id,Name,63)
            iG_QuestStatus = 0;
            bmParaDuzenle(id, bmParaCektir(id) + 50);
               sColoredChat(id,"%s !n[ !t%s !n] !gAdli kisi soruyu bildigi icin !n[ !t50 TL !n] !gkazandi!n!",Name,sD_ChatTag);
            sColoredChat(id,"%s !gDogru yazdin !n[ !t50 TL !n] !gkazandin!n!",sD_ChatTag);
            remove_task();
            set_task(get_pcvar_float(iG_Time)+20.0,"pAskQuestion",0);
        }
    }
}
#if AMXX_VERSION_NUM < 183
stock sColoredChat(const id, const input[], any:...){
    new count = 1, players[32];
    static msg[191];
    vformat(msg, 190, input, 3);
   
    replace_all(msg, 190, "!n", "^x01"); // Default Renk(Sary)
    replace_all(msg, 190, "!g", "^x04"); // Ye?il Renk
    replace_all(msg, 190, "!t", "^x03"); // Takym Renk( CT mavi , T kyrmyzy )
   
    if (id) players[0] = id; else get_players(players, count, "ch");{
        for (new i = 0; i < count; i++)
        {
            if (is_user_connected(players[i]))
            {
               
                message_begin(MSG_ONE_UNRELIABLE, get_user_msgid("SayText"), _, players[i]);
                write_byte(players[i]);
                write_string(msg);
                message_end();
            }
           
        }
    }
   
}
#else
stock sColoredChat(const id, const input[], any:...){
    static msg[191];
    vformat(msg, 190, input, 3);
   
    replace_all(msg, 190, "!n", "^x01");
    replace_all(msg, 190, "!g", "^x04");
    replace_all(msg, 190, "!t", "^x03");
   
    client_print_color(id, id, msg);
}
#endif



               sColoredChat(id,"%s !n[ !t%s !n] !gAdli kisi soruyu bildigi icin !n[ !t50 TL !n] !

Bu satır sadece bılende gozukuyor bunu butun herkesın gormesını ıstıyorum yapabılecek var mı ?
#2
Reis Bi Şunu Denesene İstersen

Olmadıysa Söylersin Çözmeye Çalışırım
.smaTSustum.sma(Dosya Boyutu: 6,18 KB | İndirme Sayısı: 4)
Son Düzenleme: 31-07-2020, 22:30, Düzenleyen: Hz.KING.
#3
(31-07-2020, 22:29)Hz.KING Adlı Kullanıcıdan Alıntı: Reis Bi Şunu Denesene İstersen

Olmadıysa Söylersin Çözmeye Çalışırım
Reis bu csgo parası vericek mi birde o var jb vermesini istemiyorum. Csgo parası vermesini istiyorum.
#4
Kanka TL Olarak Diyorsan Yapamam Kusura Bakma Fakat Dolar ( $ ) Olarak Diyorsan Ayarlarım
#6
(31-07-2020, 23:04)PawNod\ Adlı Kullanıcıdan Alıntı: Gözümden kaçmış id olan yere 0 yaz düzelir.
    sColoredChat(id[0],"%s !n[ !t%s !n] !gAdli kisi soruyu bildigi icin !n[ !t50 TL !n] !

Böyle mi ?
#8
Csgo Parası vermesi gerek öyle ayarlı native belirtilmiş

PHP Kod:
native bmParaCektir(id);
native bmParaDuzenle(idMiktar); 
PHP Kod:
bmParaDuzenle(idbmParaCektir(id) + 50); 
50 Tlye Ayarlanmış Soruyu Bilenler 50 Csgo Parası Verir.
#9
(31-07-2020, 23:29)PawNod\ Adlı Kullanıcıdan Alıntı: Hayır id yi tamamen silip yerine 0
sColoredChat(0,"%s !n[ !t%s !n] !gAdli kisi soruyu bildigi icin !n[ !t50 TL !n] !

Kod:
/* Sublime AMXX Editor v2.2 */

#include <amxmodx>

native bmParaCektir(id);
native bmParaDuzenle(id, Miktar);

#define sD_ChatTag   "!n[ !tDARKTHRONE !n]"

new const sG_Yazilar[][] = {
    "armut","yarabandi","elma","kelmahmut","bumbe","webailesi","benkimim"
}
new iG_Time,bool:pCevaplandi,iG_QuestStatus,iL_Random
public plugin_init() {
    register_plugin("Bir Eklenti", "1.0", "PawNod'")

    register_clcmd("say","pGoAnswer");
   
     iG_Time = register_cvar("tsustum_zaman","20");
    set_task(get_pcvar_float(iG_Time),"pAskQuestion",0);   
}
public pAskQuestion(){
    iL_Random = random_num(0,sizeof(sG_Yazilar)-1)
    pCevaplandi = false;
    iG_QuestStatus = 1;
    sColoredChat(0,"%s !gIlk yazan kazanir !n[ !t%s !n]!n!",sD_ChatTag,sG_Yazilar[iL_Random]);
    remove_task();
    set_task(get_pcvar_float(iG_Time)+15.0,"pNewQuestion");
}
public pNewQuestion(){
    if(iG_QuestStatus == 1){
        sColoredChat(0,"%s !gSoruyu bilen yok yeni soru birazdan geliyor!n!",sD_ChatTag);
        remove_task();
        set_task(get_pcvar_float(iG_Time),"pAskQuestion",0);
    }
}
public pGoAnswer(id){
    if(iG_QuestStatus == 1 && pCevaplandi == false){
        new sL_Arg[32];
        pCevaplandi = true;
        read_args(sL_Arg,charsmax(sL_Arg));
        remove_quotes(sL_Arg);
        if(equali(sG_Yazilar[iL_Random],sL_Arg)){
            new Name[64];
            get_user_name(id,Name,63)
            iG_QuestStatus = 0;
            bmParaDuzenle(id, bmParaCektir(id) + 50);
               sColoredChat(0,"%s !n[ !t%s !n] !gAdli kisi soruyu bildigi icin !n[ !t50 TL !n] !gkazandi!n!",Name,sD_ChatTag);
            sColoredChat(id,"%s !gDogru yazdin !n[ !t50 TL !n] !gkazandin!n!",sD_ChatTag);
            remove_task();
            set_task(get_pcvar_float(iG_Time)+20.0,"pAskQuestion",0);
        }
    }
}
#if AMXX_VERSION_NUM < 183
stock sColoredChat(const id, const input[], any:...){
    new count = 1, players[32];
    static msg[191];
    vformat(msg, 190, input, 3);
   
    replace_all(msg, 190, "!n", "^x01"); // Default Renk(Sary)
    replace_all(msg, 190, "!g", "^x04"); // Ye?il Renk
    replace_all(msg, 190, "!t", "^x03"); // Takym Renk( CT mavi , T kyrmyzy )
   
    if (id) players[0] = id; else get_players(players, count, "ch");{
        for (new i = 0; i < count; i++)
        {
            if (is_user_connected(players[i]))
            {
               
                message_begin(MSG_ONE_UNRELIABLE, get_user_msgid("SayText"), _, players[i]);
                write_byte(players[i]);
                write_string(msg);
                message_end();
            }
           
        }
    }
   
}
#else
stock sColoredChat(const id, const input[], any:...){
    static msg[191];
    vformat(msg, 190, input, 3);
   
    replace_all(msg, 190, "!n", "^x01");
    replace_all(msg, 190, "!g", "^x04");
    replace_all(msg, 190, "!t", "^x03");
   
    client_print_color(id, id, msg);
}
#endif

               sColoredChat(0,"%s !n[ !t%s !n] !gAdli kisi soruyu bildigi icin !n[ !t50 TL !n] !gkazandi!n!",Name,sD_ChatTag);

Bu satirda 2 tane %s olduğu için öncekinde oyuncunun adı sonrakinde klan tagı yazıyor bunu nasıl değiştirebilirim ?

Aynı zamanda bu hatayı alıyorum bu satırlarda bos zamanında bakabılır mısın ?
AMX Mod X Compiler 1.10.0.5392
Copyright © 1997-2006 ITB CompuPhase
Copyright © 2004-2013 AMX Mod X Team

CSGO-TSustum.sma(19) : warning 217: loose indentation
CSGO-TSustum.sma(20) : warning 217: loose indentation
CSGO-TSustum.sma(48) : warning 217: loose indentation
CSGO-TSustum.sma(49) : warning 217: loose indentation
Header size:            604 bytes
Code size:            2760 bytes
Data size:            3424 bytes
Stack/heap size:      16384 bytes
Total requirements:  23172 bytes

4 Warnings.
Done.
#10
Al bakalım.
PHP Kod:
/* Sublime AMXX Editor v2.2 */

#include <amxmodx>

native bmParaCektir(id);
native bmParaDuzenle(idMiktar);

#define sD_ChatTag   "!n[ !tDARKTHRONE !n]"

new const sG_Yazilar[][] = {
    "armut","yarabandi","elma","kelmahmut","bumbe","webailesi","benkimim"
}
new 
iG_Time,bool:pCevaplandi,iG_QuestStatus,iL_Random
public plugin_init() {
    register_plugin("Bir Eklenti""1.0""PawNod'")

    register_clcmd("say","pGoAnswer");
   
    iG_Time 
register_cvar("tsustum_zaman","20");
    set_task(get_pcvar_float(iG_Time),"pAskQuestion",0);   
}
public 
pAskQuestion(){
    iL_Random random_num(0,sizeof(sG_Yazilar)-1)
    pCevaplandi false;
    iG_QuestStatus 1;
    sColoredChat(0,"%s !gIlk yazan kazanir !n[ !t%s !n]!n!",sD_ChatTag,sG_Yazilar[iL_Random]);
    remove_task();
    set_task(get_pcvar_float(iG_Time)+15.0,"pNewQuestion");
}
public 
pNewQuestion(){
    if(iG_QuestStatus == 1){
        sColoredChat(0,"%s !gSoruyu bilen yok yeni soru birazdan geliyor!n!",sD_ChatTag);
        remove_task();
        set_task(get_pcvar_float(iG_Time),"pAskQuestion",0);
    }
}
public 
pGoAnswer(id){
    if(iG_QuestStatus == && pCevaplandi == false){
        new sL_Arg[32];
        pCevaplandi true;
        read_args(sL_Arg,charsmax(sL_Arg));
        remove_quotes(sL_Arg);
        if(equali(sG_Yazilar[iL_Random],sL_Arg)){
            new Name[64];
            get_user_name(id,Name,63)
            iG_QuestStatus 0;
            bmParaDuzenle(idbmParaCektir(id) + 50);
            sColoredChat(0,"%s !n[ !t%s !n] !gAdli kisi soruyu bildigi icin !n[ !t50 TL !n] !gkazandi!n!",sD_ChatTag,Name);
            sColoredChat(id,"%s !gDogru yazdin !n[ !t50 TL !n] !gkazandin!n!",sD_ChatTag);
            remove_task();
            set_task(get_pcvar_float(iG_Time)+20.0,"pAskQuestion",0);
        }
    }
}
#if AMXX_VERSION_NUM < 183
stock sColoredChat(const id, const input[], any:...){
    new count 1players[32];
    static msg[191];
    vformat(msg190input3);
   
    replace_all
(msg190"!n""^x01"); // Default Renk(Sary)
    replace_all(msg190"!g""^x04"); // Ye?il Renk
    replace_all(msg190"!t""^x03"); // Takym Renk( CT mavi , T kyrmyzy )
   
    
if (idplayers[0] = id; else get_players(playerscount"ch");{
        for (new 0counti++)
        {
            if (is_user_connected(players[i]))
            {
               
                message_begin
(MSG_ONE_UNRELIABLEget_user_msgid("SayText"), _players[i]);
                write_byte(players[i]);
                write_string(msg);
                message_end();
            }
           
        
}
    }
   
}
#else
stock sColoredChat(const id, const input[], any:...){
    static msg[191];
    vformat(msg190input3);
   
    replace_all
(msg190"!n""^x01");
    replace_all(msg190"!g""^x04");
    replace_all(msg190"!t""^x03");
   
    client_print_color
(ididmsg);
}
#endif 

Bir hesap oluşturun veya yorum yapmak için giriş yapın

Yorum yapmak için üye olmanız gerekiyor

ya da