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

new bool:ElBasiKill[33] = false;
new 
g_toplamo
public plugin_init() { 
    
register_plugin("Mahkum Menusu","1.0","Nemesis")
    
register_logevent("EventRoundStart"2,"1=Round_Start")
    
RegisterHam(Ham_Killed"player""oldugunde")    
    
g_toplamo get_maxplayers()
}
public 
EventRoundStart() {
    for(new 
victim=0;victim<33;victim++) {
        if(
ElBasiKill[victim] == true) {
            
ElBasiKill[victim] = false;
            
client_cmd(victim,"kill")
            new 
vname[65];
            
get_user_name(victim,vname,64)
            
ColorChat(0,GREEN,"^4[JB] ^1Mahkum ^3%s: ^1Kotu Sans Nedeniyle Hayatini Kaybetti !",vname
        }
    }
}
public 
oldugunde(victimattackershouldgib) {
    if(
cs_get_user_team(victim) == CS_TEAM_T)
    {
        
sont(victim)
    }
}
public 
sont(id) {
    if(
cs_get_user_team(id) == CS_TEAM_T)
    {
        new 
ts[32], tsnum
    
        
for (new id=1id <= g_toplamoid++)
        {
            if (!
is_user_connected(id) || !is_user_alive(id)) 
            { 
                continue 
            } 
    
            if (
cs_get_user_team(id) == CS_TEAM_T
            { 
                
ts[tsnum++] = id
            

        } 
        if (
tsnum == 1
        {  
            
top(id)
        }
    }
}
public 
top(id) { 
    if( !
is_user_alive(id) ) return PLUGIN_HANDLED 
    
new menu menu_create("\rBirini Sec ! ""menu_handler"
    
    
menu_additem(menu"Sansimi Denemek Istiyorum""1"0); 
    
menu_additem(menu"VS Atmak Istiyorum""2"0); 
    
    
menu_setprop(menuMPROP_EXITMEXIT_ALL); 
    
menu_display(idmenu0); 
    return 
PLUGIN_CONTINUE


oldugunde publici hamsandwich ile her birisi öldüğünde çalışacak ve öldürülen kişi yani victim TE ise sont yi çalıştıracak. sont de de vs eklentisine biraz bakarak son t yi yaptım. denemedim ama yaptığım eklentilerde falan bu düzeneyi kullandığım için çalışma oranı yüksek.

not: sırf özelden yardım istedin diye yardım ediyorum. kolay kolay bir daha bakmam.

msn: [email protected]
Reply


Messages In This Thread
Sorun - by BrkyDmr - 03-10-12, 21:01
Cevap: Sorun - by CSmiLeFaCe - 03-10-12, 21:49
Cevap: Sorun - by BrkyDmr - 03-10-12, 22:03
Cevap: Sorun - by akcaliberkk - 05-10-12, 00:43
Cevap: Sorun - by BrkyDmr - 05-10-12, 01:16
Cevap: Sorun - by akcaliberkk - 06-10-12, 19:06
Cevap: Sorun - by BrkyDmr - 06-10-12, 21:53
Cevap: Sorun - by akcaliberkk - 06-10-12, 22:15
Cevap: Sorun - by BrkyDmr - 06-10-12, 22:30
Cevap: Sorun - by akcaliberkk - 09-10-12, 22:49
Cevap: Sorun - by BrkyDmr - 09-10-12, 22:50
Cevap: Sorun - by BrkyDmr - 09-10-12, 22:44

Possibly Related Threads…
Thread Author Replies Views Last Post
  Acil Sorun istek hasanx9 6 3,994 03-08-16, 20:44
Last Post: murat1366
  [Plugin-Sorun] mikail5529 4 2,683 11-09-14, 00:01
Last Post: tifargemirhan
  Bılbaz shop sorun mikail5529 3 3,794 08-09-14, 15:53
Last Post: kaptan647
  [sorun] kapılarda bug Osmanolu12 3 2,389 02-07-14, 03:18
Last Post: Osmanolu12
  Menüdeki Meslek Plugini SORUN YARDIM! blackzone 9 3,653 30-11-13, 19:39
Last Post: akcaliberkk
  Meslek Plugini Sorun EnbuyukBjk 12 5,890 03-11-13, 01:50
Last Post: JDM
  Jail Break Sorun hasanx9 6 2,838 18-07-13, 19:23
Last Post: Nobb
  Sorun hasanx9 7 2,357 18-07-13, 18:45
Last Post: sefatokgoz
  Sorun İstek leaffan1994 8 5,544 20-03-13, 01:54
Last Post: DeaTReX
  Akcali Bakarmısın Pluginde Sorun Var Nefesim 13 6,925 08-02-13, 17:35
Last Post: akcaliberkk

Foruma Atla:


Users browsing this thread: