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

Restrict Shield


  
 
 
Thread Tools Display Modes
Author Message
koyumu
Senior Member
Join Date: Jul 2008
Old 01-02-2010 , 04:03   Restrict Shield
#1

Bonjour,
Comment enlever le shield ? (l'interdire de l'acheter).

A+
__________________
[IMG]http://img80.**************/img80/4594/neyawndragon.gif[/IMG]





koyumu is offline
Soni93200
Member
Join Date: Dec 2009
Location: Paris, France.
Old 01-02-2010 , 06:24   Re: Restrict Shield
#2

Peut-être ça ?

http://forums.alliedmods.net/showthread.php?t=49798
Soni93200 is offline
benjibau
Veteran Member
Join Date: Jul 2009
Location: France (Nord 59)
Old 01-02-2010 , 07:28   Re: Restrict Shield
#3

Il y a plus simple utilise ton amxmodmenu a la page 2 restriction des armes dedans tu actives la restriction du bouclier. ( bien sur enleve ; de ton plugins.ini a restrictmenu.amxx)
benjibau is offline
Send a message via MSN to benjibau
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 01-02-2010 , 07:38   Re: Restrict Shield
#4

J'ai ça sinon :

PHP Code:
/*    Formatright © 2009, ConnorMcLeod

    No Shield is free software;
    you can redistribute it and/or modify it under the terms of the
    GNU General Public License as published by the Free Software Foundation.

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with No Shield; if not, write to the
    Free Software Foundation, Inc., 59 Temple Place - Suite 330,
    Boston, MA 02111-1307, USA.
*/

#include <amxmodx>
#include <cstrike>

#define VERSION "0.0.1"

new g_iTextMsg
new const g_szShield[] = "shield"

public plugin_init()
{
    
register_plugin("No Shield"VERSION"ConnorMcLeod")

    
register_menucmd(register_menuid("DCT_BuyItem"1), (1<<7), "BuyShield")

    
g_iTextMsg get_user_msgid("TextMsg")
}

public 
BuyShieldid )
{
    
Message_No_Shield(id)
    return 
PLUGIN_HANDLED
}

public 
client_command(id)
{
    static 
szCommand[8// shield

    
if( read_argv(0szCommandcharsmax(szCommand)) == && equali(szCommandg_szShield) )
    {
        
Message_No_Shield(id)
        return 
PLUGIN_HANDLED
    
}
    return 
PLUGIN_CONTINUE
}

public 
CS_InternalCommand(id, const szCommand[])
{
    if( 
equali(szCommandg_szShield) )
    {
        
Message_No_Shield(id)
        return 
PLUGIN_HANDLED
    
}
    return 
PLUGIN_CONTINUE
}

Message_No_Shield(id)
{
    static const 
Alias_Not_Avail[] = "#Weapon_Not_Available"
    
static const TactShield[] = "#TactShield"
    
const HUD_PRINTCENTER 4

    message_begin
(MSG_ONE_UNRELIABLEg_iTextMsg, .player=id)
    
write_byteHUD_PRINTCENTER )
    
write_stringAlias_Not_Avail )
    
write_stringTactShield )
    
message_end()

__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
 



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 22:33.


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