CSPLague
10 saniyede bir say mesajı - Printable Version

+- CSPLague (https://www.csplague.com)
+-- Forum: CS 1.6 Plugin (Eklenti) Bölümü (https://www.csplague.com/forumdisplay.php?fid=6)
+--- Forum: [İSTEK] Cs 1.6 Plugin İstek Bölümü (https://www.csplague.com/forumdisplay.php?fid=80)
+---- Forum: Çözülmüş İstekler (https://www.csplague.com/forumdisplay.php?fid=87)
+---- Thread: 10 saniyede bir say mesajı (/showthread.php?tid=8245)



10 saniyede bir say mesajı - DeadNight26 - 05-08-13

Öncelikle merhaba arkadaşlar...

Benim istediğim plugin 10 saniyede bir saydan mesaj yollıyacak ancak hep aynı mesajı deil örneğin:

el başlayınca : el başladı
10 saniye geçince : el başladıktan 10 saniye geçti
20 saniye geçince : el başladıktan 20 saniye geçti
30 saniye geçince : el başladıktan 30 saniye geçti
40 saniye geçince : el başladıktan 40 saniye geçti
50 saniye geçince : el başladıktan 50 saniye geçti
60 saniye geçince : el başladıktan 60 saniye geçti

Gibi ancak 3 saat içinde bayram sebebiyle bayram bitene kadar bilgisayarı açamıyacağım için 3 saat içinde cevap verilmezse konu çöp kutusuna gidebilir. Bu yüzden yapacak bi arkadaş varsa hızlı olursa sevinirim...
Şimdiden Teşekkürler.
Bu arada hepinizin bayramı şimdiden kutlu olsun.


Cevap: 10 saniyede bir say mesajı - peNgueN - 05-08-13

PHP Code:
/* Plugin generated by AMXX-Studio */

#include <amxmodx>
#include <amxmisc>

#define PLUGIN "10 saniye sonra ?"
#define VERSION "1.0"
#define AUTHOR "atgsghssrshss"

#define TASK 0 + 1453

new Sure;

public 
plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR);
    
    
register_logevent"logevent_round_start"2"1=Round_Start" );
    
register_logevent"logevent_round_end"2"1=Round_End" );
    
}

public 
logevent_round_start()
{
    
set_task10.0"Gecti"TASK""0"b" );
}

public 
logevent_round_end()
{
    
remove_taskTASK );
    
Sure 0;
}

public 
Gecti( )
{
    
Sure Sure 10;
    
client_print0print_chat"El Baslayali %d Saniye Oldu."Sure );    




Cevap: 10 saniyede bir say mesajı - DeadNight26 - 05-08-13

Eline sağlık güzel olmuş bişey daha sorcam peki 60. saniyede "60 saniye doldu artık /slh menüsüne giremezsin" yazısı çıkmayı ayarlayabilirmisin ben denedim 60 saniye geçtikte mesaj yolluyo ben sadece 1 kere yollamasını istiyorum onu yapabilirmisin??? yani 60 saniye geçince 1 kere yollıyacak bidaha o el bitmeden yollamıcak


Cevap: 10 saniyede bir say mesajı - batjeffmatt - 05-08-13

PHP Code:
/* Plugin generated by AMXX-Studio */

#include <amxmodx>
#include <amxmisc>
#include <colorchat>

#define PLUGIN "New Plug-In"
#define VERSION "1.0"
#define AUTHOR "batu"


public plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR)
    
register_logevent("RoundStart",  2"1=Round_Start")
    
register_logevent("RoundEnd",  2"1=Round_End" )
}

public 
RoundStart()
{
    
    
set_task(60.0,"altmis")
}


public 
RoundEnd()
{
    
remove_task
}


public 
altmis()
{
    
ColorChat(0,GREEN,"60 Saniye Doldu Artik Silah Alamazsin")
    return 
PLUGIN_HANDLED


olması lazım dene bi


Cevap: 10 saniyede bir say mesajı - peNgueN - 05-08-13

PHP Code:
/* Plugin generated by AMXX-Studio */

#include <amxmodx>
#include <amxmisc>

#define PLUGIN "10 saniye sonra ?"
#define VERSION "1.0"
#define AUTHOR "atgsghssrshss"

#define TASK 0 + 1453

new Sure;

public 
plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR);
    
    
register_logevent"logevent_round_start"2"1=Round_Start" );
    
register_logevent"logevent_round_end"2"1=Round_End" );
    
}

public 
logevent_round_start()
{
    
set_task10.0"Gecti"TASK""0"b" );
}

public 
logevent_round_end()
{
    
remove_taskTASK );
    
Sure 0;
}

public 
Gecti( )
{
    
Sure Sure 10;
    
    if( 
Sure == 60 ) {
               
client_print0print_chat"60 saniye doldu artık /slh menüsüne giremezsin");    
    }
    else
    
client_print0print_chat"El Baslayali %d Saniye Oldu."Sure );    




Cevap: 10 saniyede bir say mesajı - DeadNight26 - 05-08-13

çok işime yaradı teşekkürler istek çözüldüğüne göre çözülmüş istekler bölümüne taşınabilir...


Cevap: 10 saniyede bir say mesajı - akcaliberkk - 05-08-13

Çözülmüş İsteklere taşındı.