Konu

#1
Arkadaşlae Bayrak Kapmaca Icin Boyle Skor Tablosu Yapabilecek Varmi Bayrak Aldikca Skora İslicek
Dosya Adı: 20200206_152912.png | Dosya Boyutu: 95,2 KB | 06-02-2020, 15:31
Kod:
DC- 9jX3aEk6TA DR- 95.173.173.157
#2
kullandıgın modu gonderırmısın
#3
Oyt nin panelindeki modu kullaniyorum
Kod:
DC- 9jX3aEk6TA DR- 95.173.173.157
#4
O modun sması lazım ya da native çıkışları.
EKLENTİ YAZMIYORUM, YAZMAYIN ARTIK.
#5
paneli versem sana bakabilirmisin @By.KinG
Kod:
DC- 9jX3aEk6TA DR- 95.173.173.157
#6
Hayır
EKLENTİ YAZMIYORUM, YAZMAYIN ARTIK.
#7
Modsuz Yapalamazmı bu
Kod:
DC- 9jX3aEk6TA DR- 95.173.173.157
#8
Hayır
EKLENTİ YAZMIYORUM, YAZMAYIN ARTIK.
#9
(06-02-2020, 16:30)By.KinG Adlı Kullanıcıdan Alıntı: Hayır

(06-02-2020, 17:06)By.KinG Adlı Kullanıcıdan Alıntı: Hayır
PHP Kod:
/*
    Plugin author by DT.Sakulekingz (KIN)
*/
    
    #include <amxmodx>
    #include <amxmisc>
    
    #define PLUGIN    "Team Score"
    #define VERSION    "2.0"
    #define AUTHOR    "DT.Sakulekingz(KIN)"
    #define LOADING    "^n^t%s v%s, Copyright (C) 2009 by %s^n"
    
    
new ct_scoreterrorist_score;
    new 
iconstatus;
new 
user_icons[32][192];
new 
icon_origin[3] = {0,0,0}
new 
pcv_show;
new 
pcv_iloc;
    
    public 
plugin_init()
    {
    
register_plugin(PLUGINVERSIONAUTHOR);
    
server_print(LOADING,PLUGIN,VERSION,AUTHOR);
    
register_event("TeamScore""team_score""a");
    
set_task(1.0,"score_round",_,_,_,"b")
    
register_plugin(PLUGINVERSIONAUTHOR)
    
register_event ("CurWeapon""update_icon""ab")
    
register_event("DeathMsg""event_death""a")
    
pcv_show register_cvar("amx_show_weapon_icon""1");
    
pcv_iloc register_cvar("amx_show_weapon_icon_location""1");
    
register_concmd("amx_weapon_icon""weapon_icon_toggle"ADMIN_CVAR"Toggle display of the weapon icon on/off (default on)")
    
    
check_icon_loc();
    }
    
    public 
team_score()
    {
        new 
team[32];
        
read_data(1,team,31);
        if (
equal(team,"CT"))
        {
            
ct_score read_data(2);
        }
        else if (
equal(team,"TERRORIST"))
        {
            
terrorist_score read_data(2);
        }
    }
    
    public 
score_round()
    {
        
set_hudmessage(070200, -1.00.0200.52.00.082.0145);
        
show_hudmessage(0,"   %d                      "terrorist_score);
        
        
set_hudmessage(20000, -1.00.0200.52.00.082.0146);
        
show_hudmessage(0,"                                     %d"ct_score);
    }

public 
update_icon(id) {
    
check_icon_loc();
    if(!
get_pcvar_num(pcv_show) || get_pcvar_num(pcv_iloc) == 0)
        return 
PLUGIN_CONTINUE;
    
    if(
is_user_alive(id))
    {
        new 
iwpnwclipwammosprite[192], icon_color[3] = {01600}
        
        
remove_weapon_icon(id)
        
        
iwpn get_user_weapon(idwclipwammo)
        switch(
iwpn) {
            case 
CSW_P228sprite "score"
                
case CSW_SCOUTsprite "score"
                
case CSW_HEGRENADEsprite "score"
                
case CSW_XM1014sprite "score"
                
case CSW_C4sprite "score"
                
case CSW_MAC10sprite "score"
                
case CSW_AUGsprite "score"
                
case CSW_SMOKEGRENADEsprite "score"
                
case CSW_ELITEsprite "score"
                
case CSW_FIVESEVENsprite "score"
                
case CSW_UMP45sprite "score"
                
case CSW_SG550sprite "score"
                
case CSW_GALILsprite "score"
                
case CSW_FAMASsprite "score"
                
case CSW_USPsprite "score"
                
case CSW_MP5NAVYsprite "score"
                
case CSW_M249sprite "score"
                
case CSW_M3sprite "score"
                
case CSW_M4A1sprite "score"
                
case CSW_TMPsprite "score"
                
case CSW_G3SG1sprite "score"
                
case CSW_FLASHBANGsprite "score"
                
case CSW_DEAGLEsprite "score"
                
case CSW_SG552sprite "score"
                
case CSW_AK47sprite "score"
                
case CSW_KNIFEsprite "score"
                
case CSW_P90sprite "score"
                
case CSW_VESTsprite "score"
                
case CSW_VESTHELMsprite "score"
                
case CSW_GLOCK18sprite "score"
                
case CSW_AWPsprite "score"
                
case 0sprite ""
                
default: sprite ""
        
}
        if (
is_user_ok(id)) {
            if (
equali(sprite"") || !is_user_ok(id)) {
                
remove_weapon_icon(id)
                } else {
                
// draw the sprite itself (only on a human user's screen)
                // marker ////////////////////////////////////////////////////////////////////////////////
                
message_begin(MSG_ONE,iconstatus,icon_origin,id);
                
write_byte(1); // status (0=hide, 1=show, 2=flash)
                
write_string(sprite); // sprite name
                
                /*
                4 stages - Normal, 1 Clip, No Clip + Some ammo, Completely Out
                
                */
                
                // ammo check, this is for the color of the icon
                
get_user_ammo(idiwpnwammowclip// update vars correctly
                
if (wclip == && wammo == 0icon_color = {00255// outta ammo!
                
if (wclip == wammo || wclip wammoicon_color = {255150150// last clip!
                
if (wammo && wclip == 0icon_color = {255100100// almost out!
                // attempt at percentage max clip & % red/green color
                // 1: Get max ammo for weapon
                //maxammo = maxclip(iwpn);
                
                
                
write_byte(icon_color[0]); // red
                
write_byte(icon_color[1]); // green
                
write_byte(icon_color[2]); // blue
                
message_end();
            }
            
user_icons[id] = sprite;
        }
    }
    return 
PLUGIN_CONTINUE


public 
weapon_icon_toggle(id) {
    new 
toggle[32], players[32], numplayerstatus[32] = "enabled"
    
read_argv(1toggle1)
    
    if (
equali(toggle"1")) {
        
status "enabled"
        
} else if (equali(toggle"0")) {
        
status "disabled"
        
} else if (equali(toggle"")) {
        
console_print(id"Usage: amx_weapon_icon <1/0> - Toggles wether or not showing the user's current weapon as an icon")
        
console_print(id"Weapon Icon is currently %s"status)
        return 
PLUGIN_HANDLED
    
}
    
    
set_cvar_string("amx_show_weapon_icon"toggle)
    
client_print(0print_chat"Weapon Icon is now %s"status)
    
get_players(playersnum)
    for (new 
i=0i<numi++) {
        
player players[i]
        if (!
equali(user_icons[player], "") && !equali(players[i], "") && is_user_ok(id)) {
            
remove_weapon_icon(i)
        }
    }
    return 
PLUGIN_CONTINUE
}

public 
remove_weapon_icon(id) {
    if (
is_user_ok(id)) {
        
message_begin(MSG_ONE,iconstatus,icon_origin,id);
        
write_byte(0);
        
write_string(user_icons[id]);
        
message_end();
    }
}

public 
is_user_ok(id) {
    
// check if the user is "ok": they are connected, not a bot, and alive
    
if (is_user_connected(id) && !is_user_bot(id) && is_user_alive(id))
        return 
true
    
return false
}

public 
event_death() {
    new 
player read_data(2// the dead player's ID (1-32)
    
if (is_user_connected(player) && !is_user_bot(player)) { // remove icon
        
message_begin(MSG_ONE,iconstatus,icon_origin,player);
        
write_byte(0);
        
write_string(user_icons[player]);
        
message_end();
    }
}

public 
check_icon_loc() {
    if(!
get_pcvar_num(pcv_iloc))
        return 
PLUGIN_CONTINUE;
    new 
value get_pcvar_num(pcv_iloc);
    if (
value == 0)
        
iconstatus 0;
    if (
value == 1)
        
iconstatus get_user_msgid("StatusIcon");
    if (
value == 2)
        
iconstatus get_user_msgid("Scenario");
    return 
PLUGIN_CONTINUE;


kanka müsaitsen servera bir gelirmisin @By.KinG Buldumda sadece 0  0 yazıyor bunun ustunde oynama yapabilirmiyiz

https://forums.alliedmods.net/showthread.php?t=132115?t=132115

kanka mod bu ama skor tablosunu ayrı bır sekılde yazabılırmısın @By.KinG
Kod:
DC- 9jX3aEk6TA DR- 95.173.173.157
Son Düzenleme: 06-02-2020, 17:33, Düzenleyen: insanity.
#10
Eklentiyi eke koyun
EKLENTİ YAZMIYORUM, YAZMAYIN ARTIK.

Bir hesap oluşturun veya yorum yapmak için giriş yapın

Yorum yapmak için üye olmanız gerekiyor

ya da

Benzer Konular

4
Yorum
4.031
Okunma
26-08-2022, 23:05
2
Yorum
4.726
Okunma
08-07-2022, 17:52
2
Yorum
5.256
Okunma
17-06-2022, 09:35
3
Yorum
9.120
Okunma
22-12-2021, 18:27
7
Yorum
9.371
Okunma
20-12-2021, 20:12
Task
Kayıt Ol
Discord Adresimize Katılın