Raised This Month: $51 Target: $400
 12% 

plugin help here with JB


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
sasukebr
Member
Join Date: Feb 2012
Location: Porto Alegre
Old 05-17-2012 , 18:13   plugin help here with JB
Reply With Quote #1

Someone get this error for me here
Attached Files
File Type: sma Get Plugin or Get Source (ScorPionS_Jb_New_Rebel.sma - 482 views - 1.8 KB)
sasukebr is offline
Send a message via MSN to sasukebr Send a message via Skype™ to sasukebr
satelitegames
Member
Join Date: Nov 2010
Old 05-17-2012 , 21:57   Re: plugin help here with JB
Reply With Quote #2

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

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

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 Virou Rebelado"szName );
        
        
ChatColor(0,"O Player %s Rebelou"szName);
    }
}


stock ChatColor(const id, const input[], any:...) {
    new 
count 1players[32]
    static 
msg[191]
    
vformat(msg190input3)
    
    
replace_all(msg190"!g""^4"// Verde
    
replace_all(msg190"!y""^1"// Cor Padrão do CS
    
replace_all(msg190"!team""^3"// Cor do Time
    
replace_all(msg190"!team2""^0"// Cor do Time 2
    
    
if (idplayers[0] = id; else get_players(playerscount"ch"
    {
        for (new 
0counti++) {
            if (
is_user_connected(players[i])) {
                
message_begin(MSG_ONE_UNRELIABLEget_user_msgid("SayText"), _players[i])
                
write_byte(players[i]);
                
write_string(msg);
                
message_end();
            }
        }
    }


By Satellite, kkk Sasuke
__________________




satelitegames is offline
sasukebr
Member
Join Date: Feb 2012
Location: Porto Alegre
Old 05-17-2012 , 22:36   Re: plugin help here with JB
Reply With Quote #3

Quote:
Originally Posted by satelitegames View Post
PHP Code:
#include <amxmodx>
#include <hamsandwich>
#include <cstrike>
#include <fun>

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

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 Virou Rebelado"szName );
        
        
ChatColor(0,"O Player %s Rebelou"szName);
    }
}


stock ChatColor(const id, const input[], any:...) {
    new 
count 1players[32]
    static 
msg[191]
    
vformat(msg190input3)
    
    
replace_all(msg190"!g""^4"// Verde
    
replace_all(msg190"!y""^1"// Cor Padrão do CS
    
replace_all(msg190"!team""^3"// Cor do Time
    
replace_all(msg190"!team2""^0"// Cor do Time 2
    
    
if (idplayers[0] = id; else get_players(playerscount"ch"
    {
        for (new 
0counti++) {
            if (
is_user_connected(players[i])) {
                
message_begin(MSG_ONE_UNRELIABLEget_user_msgid("SayText"), _players[i])
                
write_byte(players[i]);
                
write_string(msg);
                
message_end();
            }
        }
    }


By Satellite, kkk Sasuke
kkkk and kkk
sasukebr is offline
Send a message via MSN to sasukebr Send a message via Skype™ to sasukebr
Old 08-14-2012, 19:52
.BaTmaN
This message has been deleted by ConnorMcLeod. Reason: english only thanks
quilhos
Veteran Member
Join Date: Jun 2010
Old 08-15-2012 , 04:25   Re: plugin help here with JB
Reply With Quote #4

Only english is allow in this section of the forum.
__________________
ELO RATING SYSTEM - SQL [COMPLETE]
Quote:
Originally Posted by Liverwiz View Post
DDDRRRRAAAAMMMMAAAAA!!!???

Put this shit on pause while i go get some popcorn!!
quilhos is offline
killerftw
Senior Member
Join Date: Nov 2010
Old 08-15-2012 , 17:58   Re: plugin help here with JB
Reply With Quote #5

May you explain what this Plugin do?
killerftw is offline
samer_ben
BANNED
Join Date: Jun 2011
Old 08-15-2012 , 20:25   Re: plugin help here with JB
Reply With Quote #6

Quote:
Originally Posted by killerftw View Post
May you explain what this Plugin do?
yes !
samer_ben is offline
nikhilgupta345
Veteran Member
Join Date: Aug 2009
Location: Virginia
Old 08-15-2012 , 22:14   Re: plugin help here with JB
Reply With Quote #7

It displays a message when a prisoner attacks a guard in jailbreak mod and glows the rebel.
__________________
Quote:
Originally Posted by DarkGod View Post
nikhilgupta generates his plugins using sheer awesome.
If you like my work, please

Last edited by nikhilgupta345; 08-15-2012 at 22:15.
nikhilgupta345 is offline
Send a message via ICQ to nikhilgupta345 Send a message via Yahoo to nikhilgupta345
Reply



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


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