⭐🚀 TkyNET | Blacklist ve Profesyonel DDoS Korumalı TeamSpeak 3 Sunucuları 🚀⭐
Sponsor Görsel
🇹🇷 TR Lokasyon | 🛡️ Gelişmiş DDoS Koruması | ⚡ Düşük Ping | 🎧 Kesintisiz TS3 | Hostlar
Sponsor Görsel 2
SponsorSponsor

Oylama Eklentisi Düzelttirme

Konu

#1
.smawaSiraliMapDegisim.sma(Dosya Boyutu: 3,38 KB | İndirme Sayısı: 4)
Merhabalar ekte verdiğim Oylama Eklentisine Timeleft yani Map Süresi yerine Raunda bağlayabilirmiyiz herşeyi raunda bağlı olacak ve 30 raund olacak şimdiden teşekkürler
#2
PHP Kod:
#include <amxmodx>

#define Round 30

new const bmMaplar[][] = {
    
"de_dust2",
    
"de_aztec",
    
"fy_pool_day"
}

new 
bmAktifMapID
new bmSuankiMap[18];
new 
bmRoundSayar

public plugin_init() {
    
register_plugin
    
("AutoMapChanger",
    
"1.0",
    
"Berk");
    
    
get_mapname(bmSuankiMap,charsmax(bmSuankiMap));
    
    new 
bmMapConst 0;
    for(new 
isizeof(bmMaplar); i++){
        if(
equali(bmSuankiMap,bmMaplar[i][0])){
            
bmAktifMapID i;
            
bmMapConst++;
        }
    }
    if(
bmMapConst == 0){
        
log_amx("bmAutoMapChanger : Suanki map map dosyasinda bulunamadi , lutfen ekleyin.");
        return;
    }

    
register_logevent("pRS",2,"1=Round_Start");
    
    
register_clcmd("say /haritalar","beHaritalar")
}
public 
pRS() {
    new 
bmConstID;
    if(
bmAktifMapID == 0){
        
bmConstID++;
    }
    else if(
bmAktifMapID == sizeof(bmMaplar)-1){
        
bmConstID 0;
    }
    else{
        
bmConstID bmAktifMapID+1;
    }
    
bmRoundSayar++
    if(
bmRoundSayar >= Round){
        
engine_changelevel(bmMaplar[bmConstID][0]);
    }
    else if((
Round bmRoundSayar) == ){
        
set_hudmessage(127255127, -1.00.6806.012.0)
        
show_hudmessage(0"Map Degismesine Son [1] Round")
    }
}
public 
beHaritalar(id){
    new 
bmSonrakiMap;
    if(
bmAktifMapID == 0){
        
bmSonrakiMap++;
    }
    else if(
bmAktifMapID == sizeof(bmMaplar)-1){
        
bmSonrakiMap 0;
    }
    else{
        
bmSonrakiMap bmAktifMapID+1;
    }
    
    new 
bmOncekiMap;
    if(
bmAktifMapID == 0){
        
bmOncekiMap sizeof(bmMaplar)-1;
    }
    else if(
bmAktifMapID == sizeof(bmMaplar)-1){
        
bmOncekiMap 1;
    }
    else{
        
bmOncekiMap bmAktifMapID-1;
    }
    
    
renkli_yazi(id,"!gBir Onceki Map !t[!n%s!t]!n, !gSuanki Map !t[!n%s!n]!n, !gBir Sonraki Map !t[!n%s!t]",bmMaplar[bmOncekiMap][0],bmSuankiMap,bmMaplar[bmSonrakiMap][0])
}
stock renkli_yazi(const id, const input[], any:...)
{
    new 
count 1players[32];
    static 
msg[191];
    
vformat(msg190input3);
    
    
replace_all(msg190"!n""^x01"); // Default Renk(Sarı)
    
replace_all(msg190"!g""^x04"); // Yeşil Renk
    
replace_all(msg190"!t""^x03"); // Takım Renk( CT mavi , T kırmızı )
    
    
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();
            }
            
        }
    }
    
}
stock SaniyeCevir(Saniye,Tip){
    new 
saat,gun
    
new dakika Saniye/60
    
new saniye Saniye%60
    
while(dakika 59){
        
dakika-=60
        saat
++ 
    }
    while(
saat 23){
        
saat-=24
        gun
++ 
    }
    switch(
Tip){
        case 
: {
            return 
saniye;
        }
        case 
: {
            return 
dakika;
        }
        case 
: {
            return 
saat;
        }
        case 
: {
            return 
gun;
        }
    }
    return 
PLUGIN_HANDLED;

...
Son Düzenleme: 04-06-2020, 13:49, Düzenleyen: PawNod'.
#3
(04-06-2020, 13:46)PawNod\ Adlı Kullanıcıdan Alıntı:
PHP Kod:
#include <amxmodx>

#define Round 30

new const bmMaplar[][] = {
    
"de_dust2",
    
"de_aztec",
    
"fy_pool_day"
}

new 
bmAktifMapID
new bmSuankiMap[18];
new 
bmRoundSayar

public plugin_init() {
    
register_plugin
    
("AutoMapChanger",
    
"1.0",
    
"Berk");
    
    
get_mapname(bmSuankiMap,charsmax(bmSuankiMap));
    
    new 
bmMapConst 0;
    for(new 
isizeof(bmMaplar); i++){
        if(
equali(bmSuankiMap,bmMaplar[i][0])){
            
bmAktifMapID i;
            
bmMapConst++;
        }
    }
    if(
bmMapConst == 0){
        
log_amx("bmAutoMapChanger : Suanki map map dosyasinda bulunamadi , lutfen ekleyin.");
        return;
    }

    
register_logevent("pRS",2,"1=Round_Start");
    
    
register_clcmd("say /haritalar","beHaritalar")
}
public 
pRS() {
    new 
bmConstID;
    if(
bmAktifMapID == 0){
        
bmConstID++;
    }
    else if(
bmAktifMapID == sizeof(bmMaplar)-1){
        
bmConstID 0;
    }
    else{
        
bmConstID bmAktifMapID+1;
    }
    
bmRoundSayar++
    if(
bmRoundSayar >= Round){
        
engine_changelevel(bmMaplar[bmConstID][0]);
    }
    else if((
Round bmRoundSayar) == ){
        
set_hudmessage(127255127, -1.00.6806.012.0)
        
show_hudmessage(0"Map Degismesine Son [1] Round")
    }
}
public 
beHaritalar(id){
    new 
bmSonrakiMap;
    if(
bmAktifMapID == 0){
        
bmSonrakiMap++;
    }
    else if(
bmAktifMapID == sizeof(bmMaplar)-1){
        
bmSonrakiMap 0;
    }
    else{
        
bmSonrakiMap bmAktifMapID+1;
    }
    
    new 
bmOncekiMap;
    if(
bmAktifMapID == 0){
        
bmOncekiMap sizeof(bmMaplar)-1;
    }
    else if(
bmAktifMapID == sizeof(bmMaplar)-1){
        
bmOncekiMap 1;
    }
    else{
        
bmOncekiMap bmAktifMapID-1;
    }
    
    
renkli_yazi(id,"!gBir Onceki Map !t[!n%s!t]!n, !gSuanki Map !t[!n%s!n]!n, !gBir Sonraki Map !t[!n%s!t]",bmMaplar[bmOncekiMap][0],bmSuankiMap,bmMaplar[bmSonrakiMap][0])
}
stock renkli_yazi(const id, const input[], any:...)
{
    new 
count 1players[32];
    static 
msg[191];
    
vformat(msg190input3);
    
    
replace_all(msg190"!n""^x01"); // Default Renk(Sarı)
    
replace_all(msg190"!g""^x04"); // Yeşil Renk
    
replace_all(msg190"!t""^x03"); // Takım Renk( CT mavi , T kırmızı )
    
    
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();
            }
            
        }
    }
    
}
stock SaniyeCevir(Saniye,Tip){
    new 
saat,gun
    
new dakika Saniye/60
    
new saniye Saniye%60
    
while(dakika 59){
        
dakika-=60
        saat
++ 
    }
    while(
saat 23){
        
saat-=24
        gun
++ 
    }
    switch(
Tip){
        case 
: {
            return 
saniye;
        }
        case 
: {
            return 
dakika;
        }
        case 
: {
            return 
saat;
        }
        case 
: {
            return 
gun;
        }
    }
    return 
PLUGIN_HANDLED;

...
Gerçekten Çok Teşekkür ederim peki şöyle birşey yapabilirmiyiz Bunu Rekabetci Mode Eklentisiyle Birleştirebilirmiyiz yani demek istediğim 15 Raundda Bir Takımlar Değişecek Ellerindeki Silahlar Alınacak ama restart atılmayacak ve paraları alınmayacak?
#4
PHP Kod:
#include <amxmodx>
#include <fun>
#include <cstrike>

#define Round 15

new bmRoundSayar

public plugin_init() {
    
register_plugin
    
("AutoTeamChanger",
    
"1.0",
    
"Berk");
    
    
register_logevent("pRS",2,"1=Round_Start");
    
}
public 
pRS() {
    
bmRoundSayar++
    if(
bmRoundSayar >= Round){
        new 
pOyuncular[32],pSayi,pUID;
        
get_players(pOyuncular,pSayi);
        for(new 
ipSayii++){
            
pUID pOyuncular[i];
            
strip_user_weapons(pUID)
            new 
pTakim get_user_team(pUID);
            switch(
pTakim){
                case 
: {
                    
cs_set_user_team(pUID,2);
                }
                case 
: {
                    
cs_set_user_team(pUID,1);
                }
            }
        }
        
bmRoundSayar 0
    
}

Ayrı bir eklenti olarak buyrun 15 round olduğunda takımları değişir
#5
(04-06-2020, 15:39)PawNod\ Adlı Kullanıcıdan Alıntı:
PHP Kod:
#include <amxmodx>
#include <fun>
#include <cstrike>

#define Round 15

new bmRoundSayar

public plugin_init() {
    register_plugin
    
("AutoTeamChanger",
    "1.0",
    "Berk");
    
    register_logevent
("pRS",2,"1=Round_Start");
    
}
public 
pRS() {
    bmRoundSayar++
    if(bmRoundSayar >= Round){
        new pOyuncular[32],pSayi,pUID;
        get_players(pOyuncular,pSayi);
        for(new ipSayii++){
            pUID pOyuncular[i];
            strip_user_weapons(pUID)
            new pTakim get_user_team(pUID);
            switch(pTakim){
                case : {
                    cs_set_user_team(pUID,2);
                }
                case : {
                    cs_set_user_team(pUID,1);
                }
            }
        }
        bmRoundSayar 0
    
}

Ayrı bir eklenti olarak buyrun 15 round olduğunda takımları değişir
gerçekten teşekkürler şimdi rep vereceğim peki bu eklentide 15 elde silahları elden alıyormu?
#6
@dadas_caner az önceki silahları alıyordu fakat bıçağı geri vermiyordu buyrun.
PHP Kod:
#include <amxmodx>
#include <fun>
#include <cstrike>

#define Round 15

new bmRoundSayar

public plugin_init() {
    
register_plugin
    
("AutoTeamChanger",
    
"1.0",
    
"Berk");
    
    
register_logevent("pRS",2,"1=Round_Start");
    
}
public 
pRS() {
    
bmRoundSayar++
    if(
bmRoundSayar >= Round){
        new 
pOyuncular[32],pSayi,pUID;
        
get_players(pOyuncular,pSayi);
        for(new 
ipSayii++){
            
pUID pOyuncular[i];
            
strip_user_weapons(pUID)
            
give_item(id,"weapon_knife")
            new 
pTakim get_user_team(pUID);
            switch(
pTakim){
                case 
: {
                    
cs_set_user_team(pUID,2);
                }
                case 
: {
                    
cs_set_user_team(pUID,1);
                }
            }
        }
        
bmRoundSayar 0
    
}

Son Düzenleme: 04-06-2020, 16:02, Düzenleyen: PawNod'.
#7
(04-06-2020, 16:01)PawNod\ Adlı Kullanıcıdan Alıntı: @dadas_caner az önceki silahları alıyordu fakat bıçağı geri vermiyordu buyrun.
PHP Kod:
#include <amxmodx>
#include <fun>
#include <cstrike>

#define Round 15

new bmRoundSayar

public plugin_init() {
    register_plugin
    
("AutoTeamChanger",
    "1.0",
    "Berk");
    
    register_logevent
("pRS",2,"1=Round_Start");
    
}
public 
pRS() {
    bmRoundSayar++
    if(bmRoundSayar >= Round){
        new pOyuncular[32],pSayi,pUID;
        get_players(pOyuncular,pSayi);
        for(new ipSayii++){
            pUID pOyuncular[i];
            strip_user_weapons(pUID)
            give_item(id,"weapon_knife")
            new pTakim get_user_team(pUID);
            switch(pTakim){
                case : {
                    cs_set_user_team(pUID,2);
                }
                case : {
                    cs_set_user_team(pUID,1);
                }
            }
        }
        bmRoundSayar 0
    
}

çok teşekkür ederim birazdan deneyeceğim.

.smarekabetcimodeyeniv1.sma(Dosya Boyutu: 3,38 KB | İndirme Sayısı: 2)
.smatakimdegistirmev1.sma(Dosya Boyutu: 883 Bayt | İndirme Sayısı: 2)
Verdiği Hatalar şunlar takimdeğiştirmev1 eklentisi error 017 undefined symbol "id"| warning 215: expression has no effect | error 001 expected token "," but found | error 029: invalid expression assumed zero | fatal error 107: too many error messages on one line hatalarını verdi 


RekabetciModeYeniv1 ise 001 : expected token "}" but found "-string"  | error 017: undefined symbol "engine_changelevel" hatalarını verdi sunucum oyunyöneticisi

@PawNod' bakarmısın kanka

yorum yazıyorum konu yukarı çıkmıyor çok ilginç Çok güldüm
Son Düzenleme: 04-06-2020, 16:52, Düzenleyen: dadas_caner.
#8
PHP Kod:
#include <amxmodx>
#include <fun>
#include <cstrike>

#define Round 15

new bmRoundSayar

public plugin_init() {
    
register_plugin
    
("AutoTeamChanger",
    
"1.0",
    
"Berk");
    
    
register_logevent("pRS",2,"1=Round_Start");
    
}
public 
pRS() {
    
bmRoundSayar++
    if(
bmRoundSayar >= Round){
        new 
pOyuncular[32],pSayi,pUID;
        
get_players(pOyuncular,pSayi);
        for(new 
ipSayii++){
            
pUID pOyuncular[i];
            
strip_user_weapons(pUID)
            
give_item(pUID,"weapon_knife")
            new 
pTakim get_user_team(pUID);
            switch(
pTakim){
                case 
: {
                    
cs_set_user_team(pUID,2);
                }
                case 
: {
                    
cs_set_user_team(pUID,1);
                }
            }
        }
        
bmRoundSayar 0
    
}

#9
(04-06-2020, 16:56)PawNod\ Adlı Kullanıcıdan Alıntı:
PHP Kod:
#include <amxmodx>
#include <fun>
#include <cstrike>

#define Round 15

new bmRoundSayar

public plugin_init() {
    register_plugin
    
("AutoTeamChanger",
    "1.0",
    "Berk");
    
    register_logevent
("pRS",2,"1=Round_Start");
    
}
public 
pRS() {
    bmRoundSayar++
    if(bmRoundSayar >= Round){
        new pOyuncular[32],pSayi,pUID;
        get_players(pOyuncular,pSayi);
        for(new ipSayii++){
            pUID pOyuncular[i];
            strip_user_weapons(pUID)
            give_item(pUID,"weapon_knife")
            new pTakim get_user_team(pUID);
            switch(pTakim){
                case : {
                    cs_set_user_team(pUID,2);
                }
                case : {
                    cs_set_user_team(pUID,1);
                }
            }
        }
        bmRoundSayar 0
    
}

diğer eklentide veriyordu hata rekabetcimode onuda rica etsem yaparmısın?
#10
PHP Kod:
new const bmMaplar[][] = {
    
"csgo_dust2",
    
"csgo_mirage",
    
"csgo_inferno",
    
"csgo_cache",
    
"csgo_overpass",
    
"csgo_train",
    
"csgo_nuke",
    
"csgo_aztec",
    
"csgo_dust3"

Eklentide hiçbir hata yok sadece düzenlerken yanlış düzenlemişsiniz her satırdan sonra , (virgül) koymalısınız sadece en son satırda ,(virgül) olmayacak bide en sondakine tırnak koymayı unutmuşsunuz Gülümse
Son Düzenleme: 04-06-2020, 17:04, Düzenleyen: PawNod'.

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

Yorum yapmak için üye olmanız gerekiyor

ya da