Raised This Month: $32 Target: $400
 8% 

Help With a plugin jailBreak


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
sasukebr
Member
Join Date: Feb 2012
Location: Porto Alegre
Old 05-12-2012 , 21:49   Help With a plugin jailBreak
Reply With Quote #1

I'm behind a plugin that shows players rebels
sasukebr is offline
Send a message via MSN to sasukebr Send a message via Skype™ to sasukebr
hornet
AMX Mod X Plugin Approver
Join Date: Mar 2010
Location: Australia
Old 05-12-2012 , 23:21   Re: Help With a plugin jailBreak
Reply With Quote #2

You mean when they rebel you want them to glow / show a message etc. ?
__________________
Quote:
vBulletin Tip #42: Not much would be accomplished by merging this item with itself.
hornet is offline
sasukebr
Member
Join Date: Feb 2012
Location: Porto Alegre
Old 05-12-2012 , 23:30   Re: Help With a plugin jailBreak
Reply With Quote #3

Quote:
Originally Posted by hornet View Post
You mean when they rebel you want them to glow / show a message etc. ?
Yes that's right
sasukebr is offline
Send a message via MSN to sasukebr Send a message via Skype™ to sasukebr
hornet
AMX Mod X Plugin Approver
Join Date: Mar 2010
Location: Australia
Old 05-12-2012 , 23:54   Re: Help With a plugin jailBreak
Reply With Quote #4

There should be many other plugins that do this so use the search button next time.
This time I'll write it for you:

PHP Code:
#include <amxmodx>
#include <hamsandwich>
#include <cstrike>
#include <fun>

#define PLUGIN "JB Rebel"
#define VERSION "0.1"
#define AUTHOR "hornet"

new bool:g_bIsRebel33 ];

public 
plugin_init() 
{
    
register_pluginPLUGINVERSIONAUTHOR );
    
    
RegisterHamHam_Spawn"player""ham_PlayerSpawn_Post");
    
RegisterHamHam_TakeDamage"player""ham_TakeDamage_Post");
}

public 
ham_PlayerSpawn_Postid )
{
    if( 
is_user_aliveid ) )
    {
        
g_bIsRebelid ] = false;
        
set_user_renderingidkRenderFxNone000kRenderNormal);
    }
}

public 
ham_TakeDamage_PostiVictimiInflictoriAttacker )
{
    if( !
g_bIsRebeliAttacker ] && cs_get_user_teamiVictim ) == CS_TEAM_CT && cs_get_user_teamiAttacker ) == CS_TEAM_T )
    {
        
//player rebelled
        
g_bIsRebeliAttacker ] = true;
        
set_user_renderingiAttackerkRenderFxGlowShell25500kRenderNormal);
        
        new 
szName32 ];
        
get_user_nameiAttackerszNamecharsmaxszName ) );
        
        
set_hudmessage25500, -1.00.2510.013.01.01.0 );
        
show_hudmessage0"%s has become a Rebel!"szName );
        
        
client_print0print_chat"%s has become a Rebel!"szName );
    }

__________________
Quote:
vBulletin Tip #42: Not much would be accomplished by merging this item with itself.
hornet is offline
sasukebr
Member
Join Date: Feb 2012
Location: Porto Alegre
Old 05-13-2012 , 00:59   Re: Help With a plugin jailBreak
Reply With Quote #5

sasukebr is offline
Send a message via MSN to sasukebr Send a message via Skype™ to sasukebr
Reply


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 21:09.


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