Raised This Month: $ Target: $400
 0% 

Block weapon switch..


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 04-13-2009 , 12:01   Re: Block weapon switch..
Reply With Quote #1

Try this :

PHP Code:
#include <amxmodx>
#include <fakemeta>
#include <hamsandwich>

#define PLUGIN "test"
#define AUTHOR "ConnorMcLeod"
#define VERSION "0.0.1"

#define bAutoWepSwitch 509

public plugin_init()
{
    
register_plugin(PLUGINVERSIONAUTHOR)

    
RegisterHam(Ham_Spawn"player""Player_Spawn")
}

public 
Player_Spawn(id)
{
    if( 
is_user_aliveid ) )
    {
        
set_pdata_int(idbAutoWepSwitchfalse)
    }

Quote:
510 - setinfo _vgui_menus (1<<0), _ah (1<<8 ), uses_shield (1<<16), has_shield (1<<24)
__________________
- tired and retired -

- my plugins -

Last edited by ConnorMcLeod; 04-13-2009 at 12:14.
ConnorMcLeod is offline
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 02:17.


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