Raised This Month: $ Target: $400
 0% 

Task in the some public


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
AntiBots
Veteran Member
Join Date: May 2008
Location: Brazil
Old 07-14-2008 , 18:52   Task in the some public
Reply With Quote #1

Is a player do something then of 0.8 second show a MsG,
I do with task, but I want to put the MsG in the same public that the Action.
__________________

Last edited by AntiBots; 07-14-2008 at 19:09.
AntiBots is offline
Send a message via ICQ to AntiBots Send a message via MSN to AntiBots Send a message via Skype™ to AntiBots
Sn!ff3r
Veteran Member
Join Date: Aug 2007
Location: Poland
Old 07-14-2008 , 22:45   Re: Task in the some public
Reply With Quote #2

Show code.
Sn!ff3r is offline
Send a message via Skype™ to Sn!ff3r
AntiBots
Veteran Member
Join Date: May 2008
Location: Brazil
Old 07-15-2008 , 17:17   Re: Task in the some public
Reply With Quote #3

PHP Code:
public playerDeath()
{
        new 
killer read_data(1)
        new 
victim read_data(2)
        new 
weapon[8]
        
read_data(4weapon7)
 
        if (
get_pcvar_num(hehud) && killer != victim && equal(weapon"grenade"))
   
set_task(0.5,"hesound")
  
  if (
get_pcvar_num(knifehud) && killer != victim && equal(weapon"knife"))
   
set_task(0.5,"knifesound")
}
public 
hesound()
{
    
client_cmd(0"spk misc/rey_killgrenade")
 
set_hudmessage(8542255, -1.0, -1.006.05.0)
 
show_hudmessage(0"GRANADAZO")
}
public 
knifesound()
{
    
client_cmd(0"spk misc/rey_fakazo.wav")
 
set_hudmessage(8542255, -1.0, -1.006.05.0)
 
show_hudmessage(0"FAKAZO")

I want to put all in one.
__________________
AntiBots is offline
Send a message via ICQ to AntiBots Send a message via MSN to AntiBots Send a message via Skype™ to AntiBots
jim_yang
Veteran Member
Join Date: Aug 2006
Old 07-15-2008 , 21:36   Re: Task in the some public
Reply With Quote #4

why you need a 0.5s delay, just play the sound and show the message in playerdeath()
__________________
Project : CSDM all in one - 99%
<team balancer#no round end#entity remover#quake sounds#fake full#maps management menu#players punishment menu#no team flash#colored flashbang#grenade trails#HE effect#spawn protection#weapon arena#weapon upgrade#auto join#no weapon drop#one name>
jim_yang is offline
AntiBots
Veteran Member
Join Date: May 2008
Location: Brazil
Old 07-15-2008 , 21:37   Re: Task in the some public
Reply With Quote #5

Because the player canīt lisen well the sound.
__________________
AntiBots is offline
Send a message via ICQ to AntiBots Send a message via MSN to AntiBots Send a message via Skype™ to AntiBots
Reply


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:34.


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