⭐🚀 TkyNET | Blacklist ve Profesyonel DDoS Korumalı TeamSpeak 3 Sunucuları 🚀⭐
Sponsor Görsel
⭐Kurumsal web sitesi barındırma, VDS ve sanal sunucu çözümleri. Name SSD altyapısı, yüksek performans, kesintisiz erişim ve profesyonel teknik destekle hizmetinizde.⭐
Sponsor Görsel 2
SponsorSponsor

T Sustumu Tek Kişinin Alması

Konu

#11
csgoyada uyarlayamaya çalışırız müsait bir zamanımda bakıcağım
#12
@CezaMelegi buyrun hata çıkmadı eğer sorun çıkarsa yazınız.

.smadeneme.sma(Dosya Boyutu: 2,46 KB | İndirme Sayısı: 4)
#13
(29-07-2020, 17:56)Muhammet Bulut Adlı Kullanıcıdan Alıntı: @CezaMelegi buyrun hata çıkmadı eğer sorun çıkarsa yazınız.
Eklenti derleme hatası yok fakat şu hatalar var.

Birisi doğru cevaplayınca tekrar soru sormuyor.
Doğru cevabı göstermiyor onun yerine Cevap: Cevap yaziyor
Aynı zamanda doğru cevaplasakta ne para ne de xp veriyor yani hiçbir şey vermiyor.

1 Dakika çok uzun zaman 20 saniyeye düşürürsek sevinirim Gülümse
iyi forumlar
#14
Tamam müsait zamanda bakcam
#15
PHP Kod:
/** 
* Created by AMXX-Stuido
* User: ITenGriTR & Swesga
* Date: 14.06.2020
* Time 18:40
*/
#include <amxmodx>
#include <cstrike>

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

#define iD_CountWord 22
#define iD_HowMuch   8
#define sD_ChatTag   "!n[ !tDARKTHRONE !n]"

new iG_Time,iG_QuestStatus,sG_Required[iD_HowMuch+1]; 
new const 
sG_Words[][] = {
    
"a",
    
"b",
    
"c",
    
"d",
    
"e",
    
"f",
    
"g",
    
"h",
    
"i",
    
"j",
    
"k",
    
"l",
    
"m",
    
"n",
    
"o",
    
"u",
    
"p",
    
"r",
    
"s",
    
"t",
    
"v",
    
"y",
    
"z"
}
new 
pCevaplandi
public plugin_init(){
    
register_plugin
    
("CsGoTSUSTUM",
    
"1.0",
    
"Berk (Edit By Swesga)");
    
    
register_clcmd("say","pGoAnswer");
    
    
iG_Time register_cvar("tsustum_zaman","20");
    
set_task(get_pcvar_float(iG_Time),"pAskQuestion",0);    
}
public 
pAskQuestion(){
    new 
iL_Num 0,iL_Random;
    
iG_QuestStatus 1;
    
sG_Required "";
    for(new 
iiD_HowMuchi++){
        
iL_Random random_num(0,iD_CountWord);
        
iL_Num += formatex(sG_Required[iL_Num],iD_HowMuch-iL_Num,"%s",sG_Words[iL_Random]);
    }
    
pCevaplandi false;
    
sColoredChat(0,"%s !gIlk yazan kazanir !n[ !t%s !n]!n!",sD_ChatTag,sG_Required);
    
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[iD_HowMuch+2];
        
pCevaplandi true;
        
read_args(sL_Arg,iD_HowMuch+1);
        
remove_quotes(sL_Arg);
        if(
equali(sG_Required,sL_Arg[1])){
            
iG_QuestStatus 0;
            
bmParaDuzenle(idbmParaCektir(id) + 50);
            
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 
#16
(30-07-2020, 12:42)PawNod\ Adlı Kullanıcıdan Alıntı:
PHP Kod:
/** 
* Created by AMXX-Stuido
* User: ITenGriTR & Swesga
* Date: 14.06.2020
* Time 18:40
*/
#include <amxmodx>
#include <cstrike>

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

#define iD_CountWord 22
#define iD_HowMuch   8
#define sD_ChatTag   "!n[ !tDARKTHRONE !n]"

new iG_Time,iG_QuestStatus,sG_Required[iD_HowMuch+1]; 
new const 
sG_Words[][] = {
    
"a",
    
"b",
    
"c",
    
"d",
    
"e",
    
"f",
    
"g",
    
"h",
    
"i",
    
"j",
    
"k",
    
"l",
    
"m",
    
"n",
    
"o",
    
"u",
    
"p",
    
"r",
    
"s",
    
"t",
    
"v",
    
"y",
    
"z"
}
new 
pCevaplandi
public plugin_init(){
    
register_plugin
    
("CsGoTSUSTUM",
    
"1.0",
    
"Berk (Edit By Swesga)");
    
    
register_clcmd("say","pGoAnswer");
    
    
iG_Time register_cvar("tsustum_zaman","20");
    
set_task(get_pcvar_float(iG_Time),"pAskQuestion",0);    
}
public 
pAskQuestion(){
    new 
iL_Num 0,iL_Random;
    
iG_QuestStatus 1;
    
sG_Required "";
    for(new 
iiD_HowMuchi++){
        
iL_Random random_num(0,iD_CountWord);
        
iL_Num += formatex(sG_Required[iL_Num],iD_HowMuch-iL_Num,"%s",sG_Words[iL_Random]);
    }
    
pCevaplandi false;
    
sColoredChat(0,"%s !gIlk yazan kazanir !n[ !t%s !n]!n!",sD_ChatTag,sG_Required);
    
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[iD_HowMuch+2];
        
pCevaplandi true;
        
read_args(sL_Arg,iD_HowMuch+1);
        
remove_quotes(sL_Arg);
        if(
equali(sG_Required,sL_Arg[1])){
            
iG_QuestStatus 0;
            
bmParaDuzenle(idbmParaCektir(id) + 50);
            
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 
Herhangi bir işle myaptınız mı ? Yoksa forumda olan eklentiyi veya benim ekte belirttiğim plugini mi paylaştınız.
#18
(30-07-2020, 12:44)PawNod\ Adlı Kullanıcıdan Alıntı: Sizin ilk attığınız eklenti bu deneyip geri dönseniz ?

Anlatamadım Sanırım ben bu eklentıyı kullanıyorum ve çok güzel çalışmakta evet. harfler arasından random seçtiği için anlamsız şeyler geliyor. Bunun yerine tırnak içinde ne varsa o sorulsun ilk yazan ödülü alsın ıstedım. "a" mı yazıyor soruda "a" ilk yazan kazanır desın yazan kazansın isteğim bu yönde. Yukarı da arkadaşım farklı bir boyut getirdi istersen soru cevap yapariz dedi o da olur. Tek isteğim random harfler çıkması yerine biraz daha anlamlı yazılar çıkması.
Yine de yardımın için sağol
#19
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)){
            iG_QuestStatus 0;
            bmParaDuzenle(idbmParaCektir(id) + 50);
            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 
Al bakalım şuraya çıkmasını istediğin kelimeleri yaz;
PHP Kod:
new const sG_Yazilar[][] = {
    
"armut","yarabandi","elma","kelmahmut","bumbe","webailesi","benkimim"

#20
(30-07-2020, 13:28)PawNod\ Adlı Kullanıcıdan Alıntı:
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)){
            iG_QuestStatus 0;
            bmParaDuzenle(idbmParaCektir(id) + 50);
            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 
Al bakalım şuraya çıkmasını istediğin kelimeleri yaz;
PHP Kod:
new const sG_Yazilar[][] = {
    
"armut","yarabandi","elma","kelmahmut","bumbe","webailesi","benkimim"


Eklenti sorunsuz şekilde çalışıyor. Teşekkürler. Fakat birisi doğru yazınca Herkes gorecek sekılde xxx ilk yazan oldu yazma şansımız var mı ? Suankı sıstemde sadece yazana 50 tl kazandın yazısı gozukuyor dıgerlerı bırısı yazdı mı yazmadı mı anlamıyor bu yuzden ıstıyorum.

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

Yorum yapmak için üye olmanız gerekiyor

ya da