Raised This Month: $ Target: $400
 0% 

Execute command to all on...


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Davidos
Senior Member
Join Date: Feb 2005
Old 07-21-2008 , 11:15   Execute command to all on...
Reply With Quote #1

I need some help.

How do you make it possible that, if a certain events is triggered for 'one' player, a different command is used on everybody else.
For example, if someone gets out of a...
...

car, the sound is stopped for the player in the car, but not for anyone else around it, as the sound will continue to roar from the player.

How could you fix this in one example to:
-stopsound on everyone
-make the sound auto stop when the event is triggered/revoked.
__________________
Roar.
Davidos is offline
atomen
Veteran Member
Join Date: Oct 2006
Location: Stockholm, Sweden
Old 07-21-2008 , 11:56   Re: Execute command to all on...
Reply With Quote #2

PHP Code:
public plugin_init()
{
 [...]
 
g_maxplayers get_maxplayers();
}

public 
stop_sound()
{
 for(new 
1<= g_maxplayersi++)
 {
  
client_cmd(i"your command");
 }

Not sure what you mean. But this code executes a command on everyone on the server.

Great Tutorial : How to Block Sounds
__________________
atomen is offline
Send a message via MSN to atomen
Davidos
Senior Member
Join Date: Feb 2005
Old 07-21-2008 , 19:33   Re: Execute command to all on...
Reply With Quote #3

Quote:
Originally Posted by atomen View Post
PHP Code:
public plugin_init()
{
 [...]
 
g_maxplayers get_maxplayers();
}

public 
stop_sound()
{
 for(new 
1<= g_maxplayersi++)
 {
  
client_cmd(i"your command");
 }

Not sure what you mean. But this code executes a command on everyone on the server.

Great Tutorial : How to Block Sounds

Eh, good enough, I managed to fix it with the tutorial, +karma >.>
__________________
Roar.
Davidos 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 02:30.


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