Raised This Month: $ Target: $400
 0% 

Rebel System Color Help


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
NzGamers
Member
Join Date: Jul 2009
Old 07-25-2009 , 09:28   Rebel System Color Help
Reply With Quote #1

Hi
I got the rebel system. I need some bits to be green. Could someone help me make the bits bold green. So say that ingame i shoot someone it ill say [JailBreak] John has shoot a prisoner. the [JailBreak] Must be green. Ill make the bits bold on the place i want green. ^"%s^" is the name of the person i also want the name of the person green. I want this plugin to complete ASAP thanks

PHP Code:
#include <amxmodx>

new g_iTKills[33], g_iMaxPlayers;
new 
bool:g_bRebel[33];

public 
plugin_init()
{
    
register_event("DeathMsg""ev_Death""a");
    
register_event("Damage""ev_Damage""b");
    
register_event("HLTV""ev_newRound""a""1=0""2=0");
    
g_iMaxPlayers get_maxplayers();
}

public 
ev_Death()
{
    static 
iVic iVic read_data(2);
    static 
iAtt iAtt read_data(1);
    
    if(!(
<= iAtt <= g_iMaxPlayers)
    || !(
<= iVic <= g_iMaxPlayers))
    {
        return 
PLUGIN_CONTINUE;
    }
    
    static 
aName[32], vName[32];
    
    if(
get_user_team(iAtt) == 2)
    {
        
get_user_name(iAttaNamecharsmax(aName));
        
        if(
get_user_team(iVic) == && ++g_iTKills[iAtt] > 2)
        {
            
user_silentkill(iAtt);
            
client_print(0print_chat"[B][JailBreak][/B] Guard [B]^"%s^"[/B] was slayed after killing more than 2 [B]prisoners[/B]"aName);
            
g_iTKills[iAtt] = 0;
        }
        
    }
    
    if(
g_bRebel[iVic])
    {
        if(
aName[0])
        {
            
get_user_name(iVicvNamecharsmax(vName));
            
client_print(0print_chat"[B][JailBreak][/B] Guard [B]^"%s^"[/B] killed rebel [B]^"%s^""[/B], aNamevName);
        }
        
g_bRebel[iVic] = false;
    }
    
    return 
PLUGIN_CONTINUE;
}

public 
ev_Damage(iVic)
{
    static 
iAtt iAtt get_user_attacker(iVic);
    
    if(!(
<= iAtt <= g_iMaxPlayers))
    {
        return 
PLUGIN_CONTINUE;
    }
    
    static 
TName[32];
    
    if(
get_user_team(iVic) == && get_user_team(iAtt) == 1)
    {
        if(!
g_bRebel[iAtt])
        {
            
get_user_name(iAttTNamecharsmax(TName)); 
            
client_print(0print_chat"[B][JailBreak][/B] Prisoner [B]^"%s^"[/B] is a [B]rebel![/B]"TName);
            
g_bRebel[iAtt] = true;
        }
    }
    
    return 
PLUGIN_CONTINUE;
}

public 
ev_newRound()
{
    for(new 
<= g_iMaxPlayers i++)
    {
        
g_bRebel[i] = false;
        
g_iTKills[i] = 0;
    }
}

public 
client_disconnect(id)
{
    
g_bRebel[id] = false;
    
g_iTKills[id] = 0;

THANK YOU I WANT THIS TO COMPLETE ASAP

Last edited by NzGamers; 07-26-2009 at 06:25.
NzGamers is offline
 


Thread Tools
Display Modes

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 18:28.


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