Skocz do zawartości

Nowy szablon forum

mygo.pl

Stworzyliśmy dla Was nowy wygląd forum. Z pewnością znajdziesz rzeczy, które wg Ciebie mogą zostać zmienione - wspomnij o tym w specjalnym wątku.

Czytaj więcej

Jak założyć własną sieć

serwerów CS

Zastanawiasz się nad prowadzeniem własnej sieci serwerów? Przeczytaj podstawowe informacje, na które należy zwrócić uwagę, przy takim projekcie.

Czytaj więcej

Tworzymy spis sieci

dodaj swoją

Dodaj sieć do której należysz, pozwoli to na promocję i budowę ogólnopolskiej bazy sieci CS.

Czytaj więcej

Thunder Events


MYGO.pl
 Udostępnij

Rekomendowane odpowiedzi

  • RSSy
Hello,
I have this thunder events plugin but something about it is causing my server to have a lot of instability.
can someone say what can cause or what can be wrong?


Code

PHP Code:

#include <amxmodx>
#include <amxmisc>
#include <fakemeta>

new const PLUGIN[] = "ThunderEvents (Light & Sounds)"
new const VERSION[] = "1.0"
new const AUTHOR[] = "kepler"

// define a task id
#define TASKID1 1324687358

// array de sons aleatórios 
new thunder_sounds[][] = {
    
"thunder_events/thunder1",
    
"thunder_events/thunder2",
    
"thunder_events/thunder3",
    
"thunder_events/thunder4",
    
"thunder_events/thunder5"
}

public 
plugin_init() { // registro do plugin
    
register_plugin(PLUGIN,VERSION,AUTHOR)
    
set_taskrandom_float30.0,  60.0 ), "thunderclap")
    return 
PLUGIN_CONTINUE;
}

public 
client_putinserver(id){
    if(
is_user_bot(id)) 
    return;
    
    if(!
task_exists(TASKID1)){
        
restore_lightstyle();
    }
}

public 
thunderclap() { 
    
client_cmd(0,"spk %s",thunder_sounds[random(sizeof thunder_sounds)]);
    
set_taskrandom_float(30.0,  60.0), "thunderclap")
    
    
engfunc(EngFunc_LightStyle0"z")
    
    if(
task_exists(TASKID1)){
        
remove_task(TASKID1
    }
    
set_task(0.2"restore_lightstyle"TASKID1)
    return 
FMRES_HANDLED
}

public 
restore_lightstyle() {
    
engfunc(EngFunc_LightStyle0"m")


Przeczytaj cały wpis

Odnośnik do komentarza
Udostępnij na innych stronach

Gość
Ten temat został zamknięty. Brak możliwości dodania odpowiedzi.
 Udostępnij

×
×
  • Dodaj nową pozycję...