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

new bool:ElBasiKill[32] = false
public 
plugin_init() {  
    
register_plugin("Mahkum Menusu","1.0","Nemesis")  
    
register_logevent("EventRoundStart"2,"1=Round_Start"
    
register_event("DeathMsg","EventDeath","a")

public 
EventRoundStart() { 
    for(new 
victim=1;victim<get_maxplayers();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 
EventDeath() { 
    
    if(
is_last_t()) {
        for(new 
i=0;i<get_maxplayers();i++) {
            if(
get_user_team(i) == && is_user_alive(i)) {
                
top(i)
            }
        }
    }

stock bool:is_last_t() {
    
    new 
terror 0;
    for(new 
i=0;i<get_maxplayers();i++) {
        if(
is_user_alive(i) && get_user_team(i) == 1) {
            
terror++
        }
    }
    if(
terror == 1) {
        return 
true;
    }
    return 
false;
}
public 
top(son) {  
    if( !
is_user_alive(son) ) 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(sonmenu0);  
    return 
PLUGIN_CONTINUE 


public 
menu_handler(sonmenuitem)  
{  
    
    if( 
item == MENU_EXIT )  
    {  
        
menu_destroy(menu);  
        return 
PLUGIN_HANDLED;  
    }  
    
    new 
data[6], iName[64];  
    new 
accesscallback;  
    
menu_item_getinfo(menuitemaccessdata,5iName63callback);  
    new 
key str_to_num(data);  
    
    switch(
key)  
    {  
        case 
1: {  
            
FuncSans(son); 
        }  
        case 
2: { 
            new 
sonisim[65]; 
            
get_user_name(son,sonisim,64
            
client_cmd(son,"say /vs"
            
ColorChat(0,GREEN,"^4[JB] ^1Mahkum ^3%s: ^4VS ^1Atmayi Secti !",sonisim
        } 
    }  
    
menu_destroy(menu);  
    return 
PLUGIN_HANDLED;  


public 
FuncSans(son) { 
    new 
secenek
    
secenek random_num(1,7
    
set_hudmessage(2552552550.30.3106.05.0,_,_,-1
    new 
name[65]; 
    
get_user_name(son,name,64
    switch(
secenek) { 
        case 
1: { 
            
jb_set_user_packs(son,jb_get_user_packs(son) + 25
            
client_cmd(son,"say /vs"
            
show_hudmessage(0,"%s Adli Mahkumun Sansina: 25 JB + VS Cikti !",name
            
ColorChat(0,GREEN,"^4[JB] ^1Mahkum ^3%s ^1Sansini Denedi ve ^4 25 JB + VS ^1Kazandi !",name
        } 
        case 
2: { 
            
jb_set_user_packs(son,jb_get_user_packs(son) + 50
            
client_cmd(son,"say /vs"
            
show_hudmessage(0,"%s Adli Mahkumun Sansina: 50 JB + VS Cikti !",name
            
ColorChat(0,GREEN,"^4[JB] ^1Mahkum ^3%s ^1Sansini Denedi ve ^4 50 JB + VS ^1Kazandi !",name
        } 
        case 
3: { 
            
jb_set_user_packs(son,jb_get_user_packs(son) + 75
            
client_cmd(son,"say /vs"
            
show_hudmessage(0,"%s Adli Mahkumun Sansina: 75 JB + VS Cikti !",name
            
ColorChat(0,GREEN,"^4[JB] ^1Mahkum ^3%s ^1Sansini Denedi ve ^4 75 JB + VS ^1Kazandi !",name
        } 
        case 
4: { 
            
client_cmd(son,"kill"
            
show_hudmessage(0,"%s Adli Mahkumun Sansina: Olum Cikti !",name
            
ColorChat(0,GREEN,"^4[JB] ^1Mahkum ^3%s ^1Sansini Denedi ve ^4Hayatini ^1Kaybetti !",name
        } 
        case 
5: { 
            
ElBasiKill[son] = true
            
client_cmd(son,"say /vs"
            
show_hudmessage(0,"%s Adli Mahkumun Sansina: VS + Gelecek El Olum Cikti !",name
            
ColorChat(0,GREEN,"^4[JB] ^1Mahkum ^3%s ^1Sansini Denedi ve ^4VS Hakki ^1Karsiliginda ^3Gelecek El Olum ^1Cezasi Aldi !",name
        } 
        case 
6: { 
            
give_item(son,"weapon_m4a1"
            
give_item(son,"weapon_ak47"
            
set_user_health(son,5000
            new 
playersct[32],inumct
            
get_players(playersct,inumct,"ae","CT"
            for(new 
cts=1;cts<inumct;cts++) { 
                
set_user_health(cts,100
                new 
Float:xorigin[3
                
pev(cts,pev_origin,xorigin
                
xorigin[2] -= 36.0 
                set_pev
(cts,pev_originxorigin
            } 
            
            
show_hudmessage(0,"%s Adli Mahkumun Sansina: CT Infaz Cikti !",name
            
ColorChat(0,GREEN,"^4[JB] ^1Mahkum ^3%s ^1Sansini Denedi ve ^4CT'Ye Infaz Hakki ^1Kazandi !",name
        } 
        case 
7: { 
            
client_cmd(son,"say /vs"
            
show_hudmessage(0,"%s Adli Mahkumun Sansina: VS Cikti !",name
            
ColorChat(0,GREEN,"^4[JB] ^1Mahkum ^3%s ^1Sansini Denedi ve ^4VS Hakki ^1Kazandi !",name
        } 
    } 


Fixlenmiştir Smile


CS:GO ve CS 1.6 için ücretli eklenti yapılır.
Plugin yazmak isteyenlere yardımcı olabilirim.
Skype adresimden ulaşabilirsiniz:
destek_596
Steam: http://steamcommunity.com/id/ca-nemesis/

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: 1 Guest(s)