Raised This Month: $ Target: $400
 0% 

Play sound when hud shows


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
MrKiller2010
Senior Member
Join Date: Aug 2012
Old 08-09-2013 , 16:41   Play sound when hud shows
Reply With Quote #1

How can i make that a small .wav file plays when i start this game?

PHP Code:
public Foodgame()
{
g_iCurrentGame GAME_Food

new iPlayers[32]
new 
iNum
new id

get_players
iPlayersiNum"a" )

for( new 
0iNumi++ )
{
id iPlayers[i]

set_hudmessage 102102102, -1.00.3500.15.00.10.1, -
show_hudmessage 0"[DLO_JSS]: foodgame Started!")

strip_user_weaponsid )

if (
cs_get_user_team(id) == CS_TEAM_CT)
{
give_item(id"weapon_knife")
set_user_health(id,150)
fm_reset_user_model(id)


else if (
cs_get_user_team(id) == CS_TEAM_T)
{
give_item(id"weapon_knife")
set_user_health(id35)

}

}

__________________
JailBreak & HNS

Last edited by YamiKaitou; 08-10-2013 at 09:51. Reason: restoring post
MrKiller2010 is offline
 



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 15:56.


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