Raised This Month: $ Target: $400
 0% 

JailBreak Rebel System


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 06-04-2009 , 01:41   Re: JailBreak Rebel System
Reply With Quote #10

Quote:
Originally Posted by shadow.hk View Post
Says you're a rebel on every startround (but resets your rendering to normal anyway)
I don't know what this means. Please elaborate.

Added Connor's suggestion:

PHP Code:
#include <amxmodx>
#include <fun>
// #include <colorchat>

#define PLUGIN "Rebel Detector"
#define VERSION "1.0"
#define AUTHOR "shadow.hk"

new g_is_rebel[33]

public 
plugin_init()
{
    
register_plugin(PLUGINVERSIONAUTHOR);
    
register_event("Damage""damage_event""b""2>0""3=0")
    
register_event("HLTV""event_new_round""a")
}

public 
client_connect(id)
{
    
g_is_rebel[id] = 0
}

public 
event_new_round()
{
    new 
iPlayers[32], iPlayersNum
    get_players
(iPlayersiPlayersNum)
    
    for( new 
0iPlayersNumi++ )
    {
        
g_is_rebel[iPlayers[i]] = 0
        set_user_rendering
(i)
    }
}

public 
damage_event(iVictim)
{
    new 
iAttacker get_user_attacker(iVictim)
    
    if( 
read_data(4) || read_data(5) || read_data(6) ) 
    {
        if( 
g_is_rebel[iAttacker] == && get_user_team(iAttacker) == && get_user_team(iVictim) == )
        {
            
set_user_rendering(iAttackerkRenderFxGlowShell25500kRenderNormal1)
            
            new 
name[32]
            
get_user_name(iAttacker,name,31)
            
// ColorChat(0,NORMAL,"[ ^x04PrisonBreak^x01 ] ^x04%s^x01 Is Now a Rebel!",name)
            
client_print(0print_chat"[ PrisonBreak ] %s Is Now a Rebel!"name)
            
            
g_is_rebel[iAttacker] = 1
        
}
    }
    return 
PLUGIN_HANDLED

If this doesn't fix it you will just have to debug it.
__________________

Last edited by fysiks; 06-04-2009 at 01:54.
fysiks is offline
 



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 14:02.


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