Raised This Month: $12 Target: $400
 3% 

como por hud de atacante


  
 
 
Thread Tools Display Modes
cumbiero
Member
Join Date: Jul 2012
Old 07-22-2013 , 09:14   Re: como por hud de atacante
#11

lo tengo haci

PHP Code:

RegisterHam
(Ham_Killed"info_target""fw_PlayerKilled"1


puse el por lo vi en un ejemplo pero igaul lo tengo sin el 12
cumbiero is offline
baneado
Veteran Member
Join Date: Dec 2012
Location: amxmodx-es.com
Old 07-22-2013 , 09:50   Re: como por hud de atacante
#12

Quote:
Originally Posted by cumbiero View Post
lo tengo haci

PHP Code:

RegisterHam
(Ham_Killed"info_target""fw_PlayerKilled"1
PHP Code:
RegisterHam(Ham_Killed"info_target""fw_PlayerKilled"

Last edited by baneado; 07-22-2013 at 09:50.
baneado is offline
cumbiero
Member
Join Date: Jul 2012
Old 07-22-2013 , 13:47   Re: como por hud de atacante
#13

si eso ya lo probe pero no funcionaa no se seguro q algo lo bloqueaaa
cumbiero is offline
UnrealT
Member
Join Date: Jul 2013
Old 07-22-2013 , 18:49   Re: como por hud de atacante
#14

Quote:
Originally Posted by baneado View Post
PHP Code:
RegisterHam(Ham_Killed"info_target""fw_PlayerKilled"
Pregunto yo , envez de info_target , no iria el Classname del Npc?
Osea el npc_reverant?

PHP Code:
RegisterHam(Ham_Killed"npc_revenant""fw_PlayerKilled"

Last edited by UnrealT; 07-22-2013 at 18:54.
UnrealT is offline
Vitanova
Member
Join Date: May 2013
Old 07-23-2013 , 00:07   Re: como por hud de atacante
#15

Quote:
Originally Posted by UnrealT View Post
Pregunto yo , envez de info_target , no iria el Classname del Npc?
Osea el npc_reverant?

PHP Code:
RegisterHam(Ham_Killed"npc_revenant""fw_PlayerKilled"
No.
Vitanova is offline
UnrealT
Member
Join Date: Jul 2013
Old 07-23-2013 , 01:26   Re: como por hud de atacante
#16

Mira cumbiero te hice esto asi rapido , lo he probado y funciona muy bien.

Es como una idea para que tengas como hacer lo que necesitas

PHP Code:
public plugin_precache () {
    
precache_model("models/chick.mdl")
}

public 
plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR)
    
    
register_clcmd("say a""blabla")
    
    
RegisterHam(Ham_Killed"info_target""fw_NPCKilled")
    
    
}

public 
blabla id ) {
    new 
Float:origin[3]
    
entity_get_vector(idEV_VEC_originorigin)
    
    new 
ent create_entity("info_target")
    
    
entity_set_model(ent"models/chick.mdl")
    
    
entity_set_string(entEV_SZ_classname"NPC")
    
    
entity_set_size(entFloat:{-1.0,-1.0,-1.0}, Float:{1.01.01.0})
    
    
entity_set_int(entEV_INT_movetypeMOVETYPE_TOSS)
    
entity_set_int(entEV_INT_solidSOLID_BBOX)
    
    
entity_set_origin(entorigin)
    
    
origin[2] += 50
    
    entity_set_origin
(idorigin)
    
    
entity_set_float(entEV_FL_takedamage1.0)
    
entity_set_float(entEV_FL_health30.0)
    
}

public 
fw_NPCKilled entattacker ) {
    new 
szClassname[32], name[32]
    
    
get_user_name(attackernamesizeof name 1)
    
    
entity_get_string(entEV_SZ_classnameszClassnamecharsmax(szClassname))
    
    if (!
equali(szClassname"NPC"))    return HAM_IGNORED;
    
    if (
is_user_connected(attacker))
    {
        
client_print(0print_chat"Player: %s ha matado al Boss."name)
        
remove_entity(ent)
    }
    
    return 
HAM_SUPERCEDE;

Espero que te sirva o te ayude en algo.

Last edited by UnrealT; 07-23-2013 at 01:28.
UnrealT is offline
Winchester90
Senior Member
Join Date: May 2013
Location: Dale! RG4L Baby
Old 07-23-2013 , 10:52   Re: como por hud de atacante
#17

Esta mal pero se agradecen las ganas de ayudar.

PHP Code:
if (is_user_connected(attacker)) 
    { 
        
client_print(0print_chat"Player: %s ha matado al Boss."name
        
remove_entity(ent
    } 
Vale is_user_connected(esta conectado) pero esta vivo?¿

Code:
if (is_user_alive(attacker)) // Ves aunque sea una tonteria ya estaria mal :D     {         client_print(0, print_chat, "Player: %s ha matado al Boss.", name)         remove_entity(ent)     }
__________________
Proyectos No comercio XD
Zombie Resurection 1.0 (45%)
Winchester90 is offline
cumbiero
Member
Join Date: Jul 2012
Old 07-23-2013 , 12:43   Re: como por hud de atacante
#18

gracias por ayudar voy intentar la verdad no se que es ahora pruebo
cumbiero is offline
Old 07-23-2013, 15:13
Vitanova
This message has been deleted by Vitanova. Reason: Leí mal.
 


Thread Tools
Display Modes

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 05:38.


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