Raised This Month: $ Target: $400
 0% 

Block weapon switch..


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Empowers
BANNED
Join Date: Feb 2009
Location: Ukraine
Old 04-13-2009 , 11:56   Block weapon switch..
Reply With Quote #1

How to block weapon switch.. Like when new round starts or player pickups item.



don't even advice me this =) :
PHP Code:
engclient_cmd(id"_cl_autowepswitch 0"

So..

Any suggestions?
Empowers is offline
Send a message via ICQ to Empowers
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 04-13-2009 , 12:01   Re: Block weapon switch..
Reply With Quote #2

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
Empowers
BANNED
Join Date: Feb 2009
Location: Ukraine
Old 04-13-2009 , 12:09   Re: Block weapon switch..
Reply With Quote #3

U A are turning off vgui_menus O_o. In code above..
Empowers is offline
Send a message via ICQ to Empowers
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 04-13-2009 , 12:14   Re: Block weapon switch..
Reply With Quote #4

LoL
Will be soon updated
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
Empowers
BANNED
Join Date: Feb 2009
Location: Ukraine
Old 04-13-2009 , 12:26   Re: Block weapon switch..
Reply With Quote #5

It doesn't work ..

Maybe there is some Ham hook or somethink like that to supercede weapon switch?
Empowers is offline
Send a message via ICQ to Empowers
Empowers
BANNED
Join Date: Feb 2009
Location: Ukraine
Old 04-13-2009 , 12:33   Re: Block weapon switch..
Reply With Quote #6

And even if I will set _cl_autowepswitch to 0 that won't cover all stuff.. In round start weapon is stripped for a mili second a then gived again.
So on screen your will see your weapon re-switched..

Any Suggestions? :}

Last edited by Empowers; 04-13-2009 at 13:39.
Empowers is offline
Send a message via ICQ to Empowers
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 04-13-2009 , 13:25   Re: Block weapon switch..
Reply With Quote #7

Quote:
Originally Posted by Empowers View Post
And even if I will set _cl_autowepswitch to 0 that won't cover all stuff.. In round start weapon is stripped for a gived again.
So on screen your will see your weapon re-switched..

Any Suggestions? :}
That happens only when you are the bomb carrier i guess ?
That bug that stops your weapon from reloading ;)
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
Empowers
BANNED
Join Date: Feb 2009
Location: Ukraine
Old 04-13-2009 , 13:37   Re: Block weapon switch..
Reply With Quote #8

Quote:
Originally Posted by ConnorMcLeod View Post
That happens only when you are the bomb carrier i guess ?
That bug that stops your weapon from reloading ;)
Yes
Empowers is offline
Send a message via ICQ to Empowers
Old 04-13-2009, 13:37
Empowers
This message has been deleted by YamiKaitou. Reason: dp
Old 04-13-2009, 13:02
Empowers
This message has been deleted by YamiKaitou. Reason: nope, nobody is home
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