CSPLague
[ZP]:hp gösterme - Printable Version

+- CSPLague (https://www.csplague.com)
+-- Forum: CS 1.6 Plugin (Eklenti) Bölümü (https://www.csplague.com/forumdisplay.php?fid=6)
+--- Forum: [İSTEK] Cs 1.6 Plugin İstek Bölümü (https://www.csplague.com/forumdisplay.php?fid=80)
+---- Forum: Çözülmüş İstekler (https://www.csplague.com/forumdisplay.php?fid=87)
+---- Thread: [ZP]:hp gösterme (/showthread.php?tid=6296)



[ZP]:hp gösterme - nomaxx - 05-01-13

Ben crosshair ile oyuncuya baktığımda sol altta sadece nick,hp ve armor gösterilmesini istiyorum yardımcı olursanız sevinirim Smile


Cevap: [ZP]:hp gösterme - akcaliberkk - 05-01-13

PHP Code:
/*****************************************************\
===============================
|| [ZP] Aim Info Plugin v1.0 ||
===============================

||DESCRIPTION||
    When you aim at your friend, a hud message
    appears which shows you the Name, HP, 
    Armor and Ammo Packs of your friend.

||CREDITS||
    - AMX MOD X Team ----> For most of the natives
    - MeRcyLeZZ ----> For ZP 4.3
    - Sn!ff3r ----> For the Actual Aim info Plugin

\*****************************************************/
#include <amxmodx>
#include <zombieplague>

#define PLUGIN "Aim Info Plugin"
#define VERSION "1.0"
#define AUTHOR "@bdul!+Sn!ff3r"

new g_status_sync

public plugin_init()
{
    
register_plugin(PLUGINVERSIONAUTHOR)
    
register_event("StatusValue""showStatus""be""1=2""2!0")
    
register_event("StatusValue""hideStatus""be""1=1""2=0")
    
    
g_status_sync CreateHudSyncObj()
}

public 
showStatus(id)
{
    if(!
is_user_bot(id) && is_user_connected(id)) 
    {
        new 
name[32], pid read_data(2)
    
        
get_user_name(pidname31)
        new 
color1 0color2 0
    
        
new team1 zp_get_user_zombie(id), team2 zp_get_user_zombie(pid)
    
        if (
team2 == 1)
            
color1 255
        
else
            
color2 255
                
        set_hudmessage
(color150color2, -1.00.6010.013.00.010.01, -1)
        
ShowSyncHudMsg(idg_status_sync"%s | HP: %d | Armor: %d | Ammo Packs: %d"nameget_user_health(pid), get_user_armor(pid), zp_get_user_ammo_packs(pid))
        }
    }
}

public 
hideStatus(id)
{
    
ClearSyncHud(idg_status_sync)
}
/* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE
*{\\ rtf1\\ ansi\\ ansicpg1252\\ deff0\\ deflang1033{\\ fonttbl{\\ f0\\ fnil Tahoma;}}\n\\ viewkind4\\ uc1\\ pard\\ f0\\ fs16 \n\\ par }
*/ 

Buyur bir dene.


Cevap: [ZP]:hp gösterme - nomaxx - 05-01-13

Kardeş bunu her iki takım için ayarlayabilirmisin ?


Cevap: [ZP]:hp gösterme - akcaliberkk - 06-01-13

Güncelledim. Tekrar kontrol et.


Cevap: [ZP]:hp gösterme - nomaxx - 06-01-13

saol kardeş aslında sol altta gözükse daha iyi olurdu ellerine sağlık


Cevap: [ZP]:hp gösterme - Nefesim - 06-01-13

Bende kullandım


Cevap: [ZP]:hp gösterme - akcaliberkk - 06-01-13

Çözülmüş İsteklere taşındı.