AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Need Jailbreak /box plugin or sma file (https://forums.alliedmods.net/showthread.php?t=152671)

Luu 03-12-2011 15:17

Need Jailbreak /box plugin or sma file
 
Box.
-=Binds.=-
/box

-=Use.=-

Only CTs can type /box

-=Description=-

I want box for JailBreak , and Terrorists can only box , not CTs.



Help With plugin.

Alon 03-13-2011 10:51

Re: Need Jailbreak /box plugin or sma file
 
PHP Code:

/* Plugin generated by AMXX-Studio */

#include <amxmodx>
#include <amxmisc>

#define PLUGIN "New Plug-In"
#define VERSION "1.0"
#define AUTHOR "author"


public plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR)
    
         
register_clcmd("say /box""cmd_box").
}

public 
cmd_box(id)
{
    static 
i
    
if((id 0) || (is_user_alive(id) && cs_get_user_team(id) == CS_TEAM_CT))
    {
        {
            if(
is_user_alive(i) && cs_get_user_team(i) == CS_TEAM_T)
            
set_user_health(i100)
            
set_cvar_num("mp_friendlyfire"1)                
            
boxnow true

        
}
    }
    return 
PLUGIN_HANDLED



capozblack 03-13-2011 19:15

Re: Need Jailbreak /box plugin or sma file
 
Code:


#include <amxmodx>
#include <cstrike>
 
#define PLUGIN "JB Box"
#define VERSION "0.1"
#define AUTHOR "Capoz"
 
new iFF, iHandler
 
public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)
iFF = get_cvar_pointer( "mp_friendlyfire" )
 
iHandler = get_pcvar_num( iFF )
 
register_clcmd( "say /box", "cmdBox" )
}
 
public cmdBox( id ) {
if( !is_user_connected( id ) || !is_user_alive( id ) || cs_get_user_team( id ) != CS_TEAM_CT ) {
return PLUGIN_HANDLED
}
 
switch( iHandler ) {
case 0: {
server_cmd( "mp_friendlyfire 1" )
set_hudmessage(0, 255, 0, -1.0, -1.0, 0, 6.0, 12.0)
show_hudmessage(id, "Jailbreak Box Activated!")
}
case 1: {
server_cmd( "mp_friendlyfire 0" )
set_hudmessage(255, 0, 0, -1.0, -1.0, 0, 6.0, 12.0)
show_hudmessage(id, "Jailbreak Box Deactivated!")
}
}
 
iHandler = !iHandler
 
return PLUGIN_HANDLED
}


Terrex 05-23-2012 14:15

Re: Need Jailbreak /box plugin or sma file
 
you can add the Models glove ?

Santaaa 05-23-2012 14:50

Re: Need Jailbreak /box plugin or sma file
 
Knife sounds aren't blocked + no screenshakes, + the ammount of damage.
I'd suggest you to place this into suggestion / requests.


All times are GMT -4. The time now is 14:29.

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