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

delete this


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Syturi0
Veteran Member
Join Date: Aug 2014
Location: Your mom house -Portugal
Old 10-30-2014 , 21:07   delete this
Reply With Quote #1

delete this

Last edited by Syturi0; 11-07-2014 at 11:31.
Syturi0 is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 10-30-2014 , 21:24   Re: Only player with flag can hear song
Reply With Quote #2

Only send the sound command to the players with ADMIN_CHAT. You are currently playing the sound to everybody in the server every time that a player with ADMIN_CHAT sees the message.
__________________
fysiks is offline
Old 10-30-2014, 21:26
Syturi0
This message has been deleted by Syturi0.
Xunfop
Member
Join Date: Mar 2012
Location: 97Club
Old 10-30-2014 , 21:40   Re: Only player with flag can hear song
Reply With Quote #3

Use special id instead 0 to send to special player.
PHP Code:
client_cmd(0"spk as_outros/alerta_palavrao.wav"

PHP Code:
client_cmd(player"spk as_outros/alerta_palavrao.wav"
PHP Code:
if (access(players[i], ADMIN_CHAT)) 
don't forget optimized
PHP Code:
if (access(playerADMIN_CHAT)) 
Xunfop is offline
Old 10-30-2014, 22:31
Syturi0
This message has been deleted by Syturi0.
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 01:58.


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