Raised This Month: $ Target: $400
 0% 

Check last player


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
baneado
Veteran Member
Join Date: Dec 2012
Location: amxmodx-es.com
Old 07-30-2014 , 12:47   Re: Check last player
Reply With Quote #1

make a loop with all players and use set_speak
baneado is offline
NikKOo31
Senior Member
Join Date: May 2013
Location: Home
Old 07-30-2014 , 14:24   Re: Check last player
Reply With Quote #2

PHP Code:
new MuteTeams[CsTeams

PHP Code:
new bool:MuteTeams[4

PHP Code:
    switch( choice )  
    {  
        case 
12:  
        {  
            
MuteTeams[CsTeams:choice] = !MuteTeams[CsTeams:choice]  
        }  
                  
        default:  
        {  
            if( !
MuteTeams[CS_TEAM_T] || !MuteTeams[CS_TEAM_CT] )  
            {  
                
MuteTeams[CS_TEAM_T] = 1  
                MuteTeams
[CS_TEAM_CT] = 1  
            
}  
                          
            else  
            {  
                
MuteTeams[CS_TEAM_T] = 0  
                MuteTeams
[CS_TEAM_CT] = 0  
            
}  
        }  
    } 

PHP Code:
    switch( choice )  
    {
        case 
0:
        {
            if(
MuteTeams[1] && MuteTeams[2]) //both muted
            
{
                
MuteTeams[1] = false
                MuteTeams
[2] = false
            
}
            else
            {
                
MuteTeams[1] = true
                MuteTeams
[2] = true
            
}
        }
        case 
12:
        {  
            
MuteTeams[choice] = !MuteTeams[choice]
        }
    } 
Edit* attached sma because of the tag mismatch
Attached Files
File Type: sma Get Plugin or Get Source (asd3.sma - 312 views - 2.3 KB)
__________________
Hey ^_^

Last edited by NikKOo31; 07-30-2014 at 14:30.
NikKOo31 is offline
pob18
Member
Join Date: Jun 2014
Old 07-30-2014 , 17:41   Re: Check last player
Reply With Quote #3

The plugin is bugged. The menu does not open correctly.
Also when in the menu you choise mute all, after this if you choice mute t or ct, it mutes/unmutes all.
Please test this on your server to understand what I mean, thanks!
pob18 is offline
NikKOo31
Senior Member
Join Date: May 2013
Location: Home
Old 07-30-2014 , 19:31   Re: Check last player
Reply With Quote #4

Quote:
Originally Posted by pob18 View Post
The plugin is bugged. The menu does not open correctly.
Also when in the menu you choise mute all, after this if you choice mute t or ct, it mutes/unmutes all.
Please test this on your server to understand what I mean, thanks!
1st - "The menu does not open correctly" does not help to find a problem. If you want to show to both of the last players add (in client_death)

PHP Code:
lastPlayer(victim
2nd - If you use mute all, both teams will be muted. If you unmute one of the teams, then they won't be all muted

3rd - I don't have a server atm, my hard disc died a few days ago. I lost all partitions.

If you can be more descriptive, we'll happily help you to find the problem
__________________
Hey ^_^
NikKOo31 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 13:00.


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