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

Spk command loops for some reason.


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
r4ndomz
Senior Member
Join Date: Jul 2009
Location: The Hood
Old 06-17-2010 , 23:09   Spk command loops for some reason.
Reply With Quote #1

In my hlds when my plugin would take action, it would greet the player then play some music. For some reason, the music loops and keeps repeating when the .wav file is over. I was planning to make a /off command but i couldnt figure out a way to stop the music.

PHP Code:
public client_putinserver(id)
{
    
set_task(3.0"Greet"TASK_GREET id)
}

public 
Greet(id)
{
    
id -= TASK_GREET

    ColorChat
(idGREEN"^x03[^x04cBg^x03]^x01 Greetings^x01, Have fun and enjoy your stay at^x04 Cold Blooded Gaming^x01!");
    
ColorChat(idGREEN"^x03[^x04cBg^x03]^x01 Don't like the music? Turn it^x03 off^x01 by typeing^x04 /off^x01!");
    
ColorChat(idGREEN"^x03[^x04cBg^x03]^x01 Contact^x04 r4nDoMz^x01 if you encounter any^x03 problems^x01.");

    
client_cmd(id"spk ambience/cbg.wav")


How do i stop the music from looping? How do i get the /off to take action?
__________________
HideNSeek bug fixed here:http://forums.alliedmods.net/showpos...&postcount=951

PM me if you want a nice HideNSeek shop
NEED PLUGIN TESTERS PM ME
r4ndomz is offline
Send a message via Skype™ to r4ndomz
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 14:03.


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