AlliedModders

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

iStrike 06-20-2012 10:45

nvm
 
nvm

hornet 06-21-2012 11:40

Re: help: Dead Terrors Can Speak
 
That forward is fine. Are you sure your not already running a plugin that allows Terrorists to speak whilst dead?

hornet 06-21-2012 22:24

Re: help: Dead Terrors Can Speak
 
Try debugging it then to find the "failing" condition.

hornet 07-06-2012 09:23

Re: help: Dead Terrors Can Speak
 
I mean debugging as in print comments to show that expressions have passed true.

Santaaa 07-06-2012 17:50

Re: help: Dead Terrors Can Speak
 
Lol, maybe u have sv_alltalk on 1?

daniel46 07-06-2012 18:43

Re: help: Dead Terrors Can Speak
 
i think he do have alltalk 1 but need it for T to hear the ct....

hornet 07-06-2012 22:14

Re: help: Dead Terrors Can Speak
 
Quote:

Originally Posted by Santaaa (Post 1744941)
Lol, maybe u have sv_alltalk on 1?

sv_alltalk 1 must be set. The forward ( in this case ) is used to "block" a player from voice communicating.

But as I'm convinced that there's nothing wrong with that code, perhaps is there another plugin running that could be causing this?
Show the output of rcon amx_plugins .

BuuBaa 07-21-2012 20:10

Re: help: Dead Terrors Can Speak
 
could help me I have this problem the tt can not speak and only speak tt admin nose like it I'm complicated I'm new to help me thank you very much if

Doc-Holiday 07-22-2012 09:06

Re: help: Dead Terrors Can Speak
 
PHP Code:

 if((cs_get_user_team(sender) != CS_TEAM_CT && is_user_alive(sender)) 
  || (
get_user_flags(sender) & ADMIN_KICK
  || (
CanTalk[sender] && is_user_alive(sender)))
{
     
/*If your on any other team but CT and alive OR
      If your an admin with ADMIN_KICK flag OR
      If CanTalk[sender] = true and your alive*/


If you just want to check if T is dead and restrict him
PHP Code:

 if((cs_get_user_team(sender) == CS_TEAM_T && !is_user_alive(sender)) 
  && ~(
get_user_flags(sender) & ADMIN_KICK))
{
    
//Dead Terror without ADMIN_KICK


the check admin flag might be wrong way to check if flag doesn't exist.

ConnorMcLeod 07-22-2012 09:20

Re: help: Dead Terrors Can Speak
 
Show the full code so we can see how you manage CanTalk variable.


All times are GMT -4. The time now is 06:13.

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