AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Suggestions / Requests (https://forums.alliedmods.net/forumdisplay.php?f=12)
-   -   Help With a plugin jailBreak (https://forums.alliedmods.net/showthread.php?t=185118)

sasukebr 05-12-2012 21:49

Help With a plugin jailBreak
 
I'm behind a plugin that shows players rebels

hornet 05-12-2012 23:21

Re: Help With a plugin jailBreak
 
You mean when they rebel you want them to glow / show a message etc. ?

sasukebr 05-12-2012 23:30

Re: Help With a plugin jailBreak
 
Quote:

Originally Posted by hornet (Post 1707874)
You mean when they rebel you want them to glow / show a message etc. ?

Yes that's right

hornet 05-12-2012 23:54

Re: Help With a plugin jailBreak
 
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 );
    }



sasukebr 05-13-2012 00:59

Re: Help With a plugin jailBreak
 
:)


All times are GMT -4. The time now is 01:49.

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