Raised This Month: $ Target: $400
 0% 

lol


Post New Thread Reply   
 
Thread Tools Display Modes
Old 08-06-2011, 06:11
BodyBuilder
This message has been deleted by BodyBuilder.
2reason2kill
Senior Member
Join Date: Feb 2011
Old 08-06-2011 , 06:31   Re: not showing weapon name !
Reply With Quote #2

Quote:
Originally Posted by BodyBuilder View Post
how update showing if end ?
PHP Code:
#include amxmodx
#include geoip

new 
Show_Cvars[5],
HudMessage[1024]

public 
plugin_init() 
{
    
register_event("StatusValue","ShowSPlayerName","be","1=1")
    
Show_Cvars[0] = register_cvar("hldm_show_name","1")
    
Show_Cvars[1] = register_cvar("hldm_show_ip","0")
    
Show_Cvars[2] = register_cvar("hldm_show_health","1")
    
Show_Cvars[3] = register_cvar("hldm_show_armor","1")
}

public 
ShowSPlayerName(id
{
    if(!
is_user_bot(id) && is_user_connected(id)) 
{
    static 
name[32], ip[32], WeaponName[32], SHOWvictim

    victim 
read_data(2)

    
get_user_name(victim,name,31)

    
get_user_ip(victim,ip,31,1)

    if(
get_pcvar_num(Show_Cvars[0]))
    
SHOW += format(HudMessage[SHOW],sizeof HudMessage SHOW,"%s^n^n",name)
        
    if(
get_pcvar_num(Show_Cvars[1]))
    
SHOW += format(HudMessage[SHOW],sizeof HudMessage SHOW,"IP: %s",ip)
        
    if(
get_pcvar_num(Show_Cvars[2]))
    
SHOW += format(HudMessage[SHOW],sizeof HudMessage SHOW,"^nHealth: %d",get_user_health(victim))
        
    if(
get_pcvar_num(Show_Cvars[3]))
    
SHOW += format(HudMessage[SHOW],sizeof HudMessage SHOW,"^n%Armor: %d",get_user_armor(victim))

    
set_hudmessage(255,255,0,-1.0,0.60,1,0.01,2.0,0.01,0.01,4
    
ShowSyncHudMsg(id,CreateHudSyncObj(),"%s",HudMessage)

    
SHOW 0

    HudMessage
[0] = 0
}
    return 
PLUGIN_HANDLED 

Its as far iknow
PHP Code:
#include <amxmodx>
#include <geoip> 
2reason2kill is offline
abdul-rehman
Veteran Member
Join Date: Jan 2010
Location: Khi, Pakistan
Old 08-06-2011 , 06:35   Re: not showing weapon name !
Reply With Quote #3

Quote:
Originally Posted by BodyBuilder View Post
how update showing if end ?
PHP Code:
#include amxmodx
#include geoip

new 
Show_Cvars[5],
HudMessage[1024]

public 
plugin_init() 
{
    
register_event("StatusValue","ShowSPlayerName","be","1=1")
    
Show_Cvars[0] = register_cvar("hldm_show_name","1")
    
Show_Cvars[1] = register_cvar("hldm_show_ip","0")
    
Show_Cvars[2] = register_cvar("hldm_show_health","1")
    
Show_Cvars[3] = register_cvar("hldm_show_armor","1")
}

public 
ShowSPlayerName(id
{
    if(!
is_user_bot(id) && is_user_connected(id)) 
{
    static 
name[32], ip[32], WeaponName[32], SHOWvictim

    victim 
read_data(2)

    
get_user_name(victim,name,31)

    
get_user_ip(victim,ip,31,1)

    if(
get_pcvar_num(Show_Cvars[0]))
    
SHOW += format(HudMessage[SHOW],sizeof HudMessage SHOW,"%s^n^n",name)
        
    if(
get_pcvar_num(Show_Cvars[1]))
    
SHOW += format(HudMessage[SHOW],sizeof HudMessage SHOW,"IP: %s",ip)
        
    if(
get_pcvar_num(Show_Cvars[2]))
    
SHOW += format(HudMessage[SHOW],sizeof HudMessage SHOW,"^nHealth: %d",get_user_health(victim))
        
    if(
get_pcvar_num(Show_Cvars[3]))
    
SHOW += format(HudMessage[SHOW],sizeof HudMessage SHOW,"^n%Armor: %d",get_user_armor(victim))

    
set_hudmessage(255,255,0,-1.0,0.60,1,0.01,2.0,0.01,0.01,4
    
ShowSyncHudMsg(id,CreateHudSyncObj(),"%s",HudMessage)

    
SHOW 0

    HudMessage
[0] = 0
}
    return 
PLUGIN_HANDLED 

Re-state what you mean, BTW Why isnt your code indented ?!, Which Software are u using for making plugins !!
__________________

My Plugins For ZP

Inactive due to College and Studies
abdul-rehman is offline
Send a message via Yahoo to abdul-rehman Send a message via Skype™ to abdul-rehman
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 03:25.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode