Raised This Month: $ Target: $400
 0% 

[Check] Jailbreak Voice


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Fuck For Fun
Veteran Member
Join Date: Nov 2013
Old 01-09-2015 , 12:39   Re: [Check] Jailbreak Voice
Reply With Quote #3

Quote:
Originally Posted by yan1255 View Post
I don't know why your's crashes the server but here's something I Just built.
Its not tested and supposed to block dead prisoners voice.
PHP Code:
#include < amxmodx >
#include < fakemeta >

#define TALK_ACCESS    ADMIN_LEVEL_F

enum _:Teams
{
    
FM_TEAM_UNASSIGNED,
    
FM_TEAM_T,
    
FM_TEAM_CT,
    
FM_TEAM_SPECTATOR
};

new 
gH_LRCanSpeak;

public 
plugin_init()
{
    
register_plugin"JailBreak Voice Manager""1.0""Rejack" );
    
    
register_forwardFM_Voice_SetClientListening"FwdVoiceSetClientListening" );
    
    
gH_LRCanSpeak    register_cvar"amx_jailbreak_lr_can_speak""1" );
}    

public 
FwdVoiceSetClientListeningRecSenderbool:bListen 
{
    if ( !
is_user_connectedSender ) || !is_user_connectedRec ) )
        return 
1;
    
    if ( 
get_user_flagsSender ) & TALK_ACCESS )
        return 
1;
    
    if ( 
fm_get_user_teamSender ) == FM_TEAM_CT && is_user_aliveSender ) )
        return 
1;
    
    if ( 
get_pcvar_numgH_LRCanSpeak ) && TeamCount() == && is_user_aliveSender ) && fm_get_user_teamSender ) == FM_TEAM_T )
        return 
1;
    
    
engfuncEngFunc_SetClientListeningRecSender);
    
    return 
FMRES_SUPERCEDE;
}

stock TeamCount()
{
    static 
Players32 ], iNum;
    
    
get_playersPlayersiNum"aceh""TERRORIST" );
    
    return 
iNum;
}

stock fm_get_user_team( const index )
    return 
get_pdata_intindex114 ); 
I think, once you have given me this code, and i use it and it dropped (crashed) my server

So I tried to build one myself, but Dead Prisoner Talking.

Check your code and tell me if working
Fuck For Fun is offline
Send a message via Skype™ to Fuck For Fun
 



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 15:29.


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