Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Sorun İstek
#3
PHP Code:
#include <amxmodx>

new Float:gRadio[33]
new 
pTime,pEnabled,pBlock

new szRadioCommands[][] = {
    
"radio1""coverme""takepoint""holdpos""regroup""followme""takingfire",
    
"radio2""go""fallback""sticktog""getinpos""stormfront""report",
    
"radio3""roger""enemyspot""needbackup""sectorclear""inposition""reportingin""getout""negative""enemydown"
}


public 
plugin_init() {
    
    
register_plugin(PLUGINVERSIONAUTHOR)
    
    for (new 
i=0i<sizeof szRadioCommandsi++)
        
register_clcmd(szRadioCommands[i], "cmdRadio")
    
    
pTime register_cvar("srf_time","99"
    
pEnabled register_cvar("srf_enabled","1")
    
pBlock register_cvar("srf_block_fith","1")

    
/* srf_enabled (1 Açma) (0 Kapatma)
    srf_block_fith (1 Açık) (0 Kapalı) Atılan bombaların radio mesajlarını engelleme. Varsayılan 1
    srf_time 5 (Radio mesajlarının kaç saniye aralıkla kullanılacağına belirleyen komut. Varsayılan 5 sn. */
    
    
register_message(get_user_msgid("SendAudio"),"FireInTheHole")
    
register_cvar("srf_version",VERSION,FCVAR_SERVER|FCVAR_SPONLY)
    
}

public 
cmdRadio(id){
    
    if(
get_pcvar_num(pEnabled)){
        
        new 
Float:fTime get_gametime()
        
        if(
fTime gRadio[id] < get_pcvar_num(pTime)){
            
            
client_print(id,print_center,"Uzgunum, cunku sen bu komutu surekli kullaniyorsun!")
            
            return 
PLUGIN_HANDLED_MAIN
        
}
        
        
gRadio[id] = fTime
    
}
    
    return 
PLUGIN_CONTINUE
}

public 
FireInTheHole(msgid,msg_dest,msg_entity) {
    
    if(
get_msg_args() < || get_msg_argtype(2) != ARG_STRING)
        return 
PLUGIN_HANDLED
    
    
new szArg[32]
    
    
get_msg_arg_string(2,szArg,31)
    
    if(
equal(szArg ,"%!MRAD_FIREINHOLE") && get_pcvar_num(pBlock))
        return 
PLUGIN_HANDLED;
    
    return 
PLUGIN_CONTINUE;

[/i]
Reply


Messages In This Thread
Sorun İstek - by leaffan1994 - 27-02-13, 02:05
Cevap: Sorun İstek - by leaffan1994 - 01-03-13, 05:56
Cevap: Sorun İstek - by JDM - 02-03-13, 21:58
Cevap: Sorun İstek - by leaffan1994 - 03-03-13, 16:54
Cevap: Sorun İstek - by JDM - 03-03-13, 18:03
Cevap: Sorun İstek - by leaffan1994 - 11-03-13, 14:42
Cevap: Sorun İstek - by leaffan1994 - 15-03-13, 22:45
Cevap: Sorun İstek - by Furkan Dize - 15-03-13, 22:54
Cevap: Sorun İstek - by DeaTReX - 20-03-13, 01:54

Possibly Related Threads…
Thread Author Replies Views Last Post
  [İSTEK]Jb Verme Plugini (/mg) NorDan 8 12,924 03-09-17, 18:06
Last Post: tahayasin
  [ İSTEK ] Belirli Yetki Hariç 3 Raund Weapon Engel excellenT 15 6,352 21-07-17, 03:49
Last Post: SINCAPP
  [İSTEK] CT MAVi - T Kırmızı ışık yanan Plugin + Video Çektim ademcan36 9 10,465 26-04-17, 16:15
Last Post: h4m4s
  [ISTEK] Hızlı Dowload Link [ISTEK] TagaL 13 7,768 05-01-17, 01:30
Last Post: marvel1905
  Menu ve jbmenu istek hamhum 10 12,376 05-01-17, 01:30
Last Post: marvel1905
  İSTEK ! Sadece Ct de hook basabilmek playman01 17 7,538 28-08-16, 14:42
Last Post: QuarsS
  Acil Sorun istek hasanx9 6 3,993 03-08-16, 20:44
Last Post: murat1366
  Plugin İstek CFG Tarzı erenstrkl 6 3,775 03-08-16, 20:31
Last Post: murat1366
  Reklamcılara karsi Acil İstek[Plugin] hasan0650 22 5,577 17-07-16, 18:03
Last Post: BYHAZARD7
  [pawn] istek batuopoz0770 4 6,547 19-04-15, 16:27
Last Post: akcaliberkk

Foruma Atla:


Users browsing this thread: 1 Guest(s)