AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   delete this (https://forums.alliedmods.net/showthread.php?t=250805)

Syturi0 10-30-2014 21:07

delete this
 
delete this

fysiks 10-30-2014 21:24

Re: Only player with flag can hear song
 
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.

Xunfop 10-30-2014 21:40

Re: Only player with flag can hear song
 
Use special id instead 0 to send to special player.
PHP Code:

client_cmd(0"spk as_outros/alerta_palavrao.wav"

:arrow:
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)) 



All times are GMT -4. The time now is 17:39.

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