Raised This Month: $ Target: $400
 0% 

set,show hud message,won't be shown.


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
xbatista
Veteran Member
Join Date: Mar 2008
Location: Lithuania
Old 12-29-2008 , 03:33   set,show hud message,won't be shown.
Reply With Quote #1

PHP Code:
public Event_DeathMsg() 

    new 
attacker read_data(1)
    new 
victim read_data(2)


if(
attacker != victim)
    {
        if (
get_user_team(victim) == 2)
        {
    for(new 
0iNum; ++i)
    {
    new 
id Players[i]
        new 
attacker_msg[32]
        new 
victim_msg[32]
    
get_user_name(attackerattacker_msg31)
    
get_user_name(victimvictim_msg31)
        
set_hudmessage(255010, -1.40.3010.011.50.010.01
        
show_hudmessage(id"%s's brains has been eaten by %s!"victim_msgattacker_msg)
        
client_cmdi"spk %s"music1[random_num(0,sizeof music1 1)]);
        } 
I wanna show message to all,but it won't show.



EDIT: Oh,I solved problem.
Must be this yes?
PHP Code:
if(attacker != victim
    { 
        if (
get_user_team(victim) == 2
        { 
    for(new 
0iNum; ++i
    { 
    new 
id Players[i
        
set_hudmessage(255010, -1.40.3010.011.50.010.01)  
        
show_hudmessage(id"%s's brains has been eaten by %s!"victimattacker
        
client_cmdi"spk %s"music1[random_num(0,sizeof music1 1)]); 
        } 
Or,no?
This is a good way?

Last edited by xbatista; 12-29-2008 at 03:42.
xbatista is offline
Send a message via Skype™ to xbatista
 



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 09:19.


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