Konu

#1
Arkadaşlar map değişmesine 2 dk kalınca aşşağıdan şu yazı geçsin:
FF Acilmasina 10 sn kaldi
FF Acilmasina 5 sn kaldi
FF Acilmasina 3 sn kaldi
FF Acilmasina 2 sn kaldi
FF Acilmasina 1 sn kaldi
FF Acildi Herkez Revlensin
saolun şimdid4en
#2
...
PHP Kod:
/** 
* Created by AMXX-Stuido
* User: ITenGriTR
* Date: 30.01.2020
* Time 15.55
*/
#include <amxmodx>
#include <hamsandwich>

new iG_Counter 10;

public 
plugin_init(){
    
register_plugin
    
("Naber",
    
"1.0",
    
"Berk");
    
    new 
iL_TimeLeft get_timeleft();
    
iL_TimeLeft -= 120;
    
set_task(float(iL_TimeLeft),"pT_CountDown",0);
}
public 
pT_StarCountDown(){
    switch(
iG_Counter){
        case 
10 : {
            
iG_Counter -= 5;
            
set_task(5.0,"pT_CountDown",0);
            
sColoredChat(0,"!n[ !tAutoFF !n] !gFF'in acilmasina son !t10 !gsaniye");
        }
        default : {
            if(
iG_Counter 0){
                
iG_Counter -= 1;
                
set_task(1.0,"pT_CountDown",0);    
                
sColoredChat(0,"!n[ !tAutoFF !n] !gFF'in acilmasina son !t%i !gsaniye",iG_Counter);
            }
            else{
                new 
iL_Players[32],iL_Num,iL_GetID;
                
get_players(iL_Players,iL_Num);
                for(new 
iiL_Numi++){
                    
iL_GetID iL_Players[i];
                    
ExecuteHamB(Ham_CS_RoundRespawn,iL_GetID);
                }
                
set_cvar_num("mp_friendlyfire",1);
                
sColoredChat(0,"!n[ !tAutoFF !n] !gFF acildi herkese basarilar!n!");
            }
        }
    }
}
#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 
#3
Konunuz "Çözülmüş İsteklere" taşınmıştır.
EKLENTİ YAZMIYORUM, YAZMAYIN ARTIK.

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

Yorum yapmak için üye olmanız gerekiyor

ya da

Benzer Konular

2
Yorum
22.594
Okunma
27-05-2020, 13:44
10
Yorum
23.138
Okunma
09-04-2020, 13:54
17
Yorum
22.777
Okunma
03-04-2020, 21:02
Task
Kayıt Ol
Discord Adresimize Katılın