Raised This Month: $ Target: $400
 0% 

Amx mod x compiler


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
BadAim
Senior Member
Join Date: Feb 2006
Location: canada
Old 02-05-2007 , 19:30   Re: Amx mod x compiler
Reply With Quote #1

yeah, finally it was my errors, im trying to play a sound during warmup in my gungame mod.

i used
precache_sound("gungame/warmup.wav")
and
client_cmd(play gungame/warmup.wav)

i just dont really know where to put the code to makethe sound starts exactly when the warmup starts


this is the default version, the plugin is too big to search my added codes
Attached Files
File Type: sma Get Plugin or Get Source (gungame.sma - 753 views - 117.4 KB)
BadAim is offline
SweatyBanana
BANNED
Join Date: Sep 2005
Location: LOL
Old 02-05-2007 , 19:43   Re: Amx mod x compiler
Reply With Quote #2

In the else statement.

PHP Code:
 public warmup_check(taskid)
 {
    
warmup--;
    
set_hudmessage(255,255,255,-1.0,0.4,0,6.0,1.0,0.1,0.2,CHANNEL_WARMUP);

    if(
warmup <= 0)
    {
        
warmup = -13;

        
show_hudmessage(0,"%L",LANG_PLAYER,"WARMUP_ROUND_OVER");
        
set_cvar_num("sv_restartround",1);
    }
    else
    {

        
show_hudmessage(0,"%L",LANG_PLAYER,"WARMUP_ROUND_DISPLAY",warmup);
        
set_task(1.0,"warmup_check",taskid);
    }
 } 
SweatyBanana is offline
Send a message via AIM to SweatyBanana Send a message via Yahoo to SweatyBanana
XxAvalanchexX
Veteran Member
Join Date: Oct 2004
Location: abort73.com
Old 02-05-2007 , 20:23   Re: Amx mod x compiler
Reply With Quote #3

Try this. It will loop the sound "gungame/warmup.mp3" during the warmup round. It has to be an MP3 or else it will be overriden by level up or other sounds.

EDIT: file removed
__________________
No longer around. Thanks your support, everyone! As always:
THIS ONES FOR YOU
3000 PTS

Last edited by XxAvalanchexX; 02-05-2007 at 21:20.
XxAvalanchexX is offline
BadAim
Senior Member
Join Date: Feb 2006
Location: canada
Old 02-05-2007 , 20:41   Re: Amx mod x compiler
Reply With Quote #4

a loop? its not nessecary, the warmup is 60 seconds, and my song is 56 seconds

sweatbanana: i know it was here, but when i placed client_cmd(play gungame/warmup.wav);
4 errors apeared

i didnt know the exact place in this spot
BadAim is offline
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 00:40.


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