Raised This Month: $ Target: $400
 0% 

not to touch, even after choosing the team.


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
klysman07
Senior Member
Join Date: Oct 2011
Old 06-29-2012 , 17:13   not to touch, even after choosing the team.
Reply With Quote #1

usually carries the music when I'm doing the loading.

but no end, even after I enter the game
She keeps repeating


PHP Code:
//Loading Music Also In Spectator Mode
//by Torch
//MP3 ONLY
//Copy MP3 file to sound/misc/loading.mp3
//Music will still play after the player has joined server until he chooses a team.
//Music will start playing again if the person goes back to spectator mode
//(not DEAD spectator, only Team Select>Spectator)

#include <amxmodx>
#include <amxmisc>
#include <cstrike>

new bool:playing[32]

public 
plugin_init() {
register_plugin("Loading Song","1.0","Torch")
register_event"ResetHUD""song","b" )
register_event("TextMsg","song","b","2&#Spec_Mode")
for (new 
i=0;i<32;i++)
{
playing[i]=false
}
return 
PLUGIN_CONTINUE
}

public 
plugin_precache() {
precache_sound("sound/misc/pitbullevery.mp3")
return 
PLUGIN_CONTINUE
}

public 
client_connect(id) {
play_song(id)
return 
PLUGIN_CONTINUE
}

public 
play_song(id) {
client_cmd(id,"mp3 loop sound/misc/pitbullevery.mp3")
return 
PLUGIN_HANDLED
}

public 
play_song_task(params[],id) {
new 
player params[0]
client_cmd(player,"mp3 loop sound/misc/pitbullevery.mp3")
return 
PLUGIN_HANDLED
}

public 
song(id) {
new 
CsTeams:team
team 
cs_get_user_team(id)

if ((
team==CS_TEAM_SPECTATOR)||(team==CS_TEAM_UNASSIGNED))
{
if (
playing[id]==false)
{
new 
params[1]
params[0]=id
set_task
(0.5,"play_song_task",0,params,1,"a",1)
playing[id]=true
}
}
else
{
client_cmd(id,"mp3 stop")
playing[id]=false
}
return 
PLUGIN_CONTINUE

klysman07 is offline
klysman07
Senior Member
Join Date: Oct 2011
Old 06-30-2012 , 10:27   Re: not to touch, even after choosing the team.
Reply With Quote #2

My mod is jailbreak

al players go straight to TR

is to make the music more so do not touch that they enter the TR?
klysman07 is offline
Backstabnoob
BANNED
Join Date: Feb 2009
Location: Iwotadai Dorm
Old 06-30-2012 , 13:10   Re: not to touch, even after choosing the team.
Reply With Quote #3

what?

PHP Code:
public client_putinserverid )
     
client_cmdid"mp3 stop" 

Last edited by Backstabnoob; 06-30-2012 at 13:11.
Backstabnoob is offline
klysman07
Senior Member
Join Date: Oct 2011
Old 06-30-2012 , 15:34   Re: not to touch, even after choosing the team.
Reply With Quote #4

I would not touch that music more after the player already alive.

I use a plugin that will direct the player to TR

al music keeps repeating.
klysman07 is offline
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 15:18.


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