Raised This Month: $ Target: $400
 0% 

[CS] c4 drop (weapon switch disable)


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
alonelive
Senior Member
Join Date: Jan 2011
Location: Big snow country.. :)
Old 01-23-2013 , 13:46   [CS] c4 drop (weapon switch disable)
Reply With Quote #1

Hello once more
When use engclient drop weapon_c4, player have a weapon switch (pistol to primary weapon or prim. weapon to pistol).
I see the code, which disable this switching. Help me to find them I tried "c4 drop switch", "switch bug remove" and etc, but can't find this.
but this code on the forum. I saw him early..
__________________
sorry my bad english...
alonelive is offline
Xalus
Veteran Member
Join Date: Dec 2009
Location: Belgium
Old 01-23-2013 , 13:52   Re: [CS] c4 drop (weapon switch disable)
Reply With Quote #2

So you mean when yo do that code, it switch to C4 to drop it ?

There is a stock Ham... that removes a weapon from a player
__________________
Retired.

Last edited by Xalus; 01-23-2013 at 13:53.
Xalus is offline
alonelive
Senior Member
Join Date: Jan 2011
Location: Big snow country.. :)
Old 01-23-2013 , 14:18   Re: [CS] c4 drop (weapon switch disable)
Reply With Quote #3

Quote:
Originally Posted by Xalus View Post
So you mean when yo do that code, it switch to C4 to drop it ?

There is a stock Ham... that removes a weapon from a player
Черт подери..
NO!
A terror. he has a AK-47 as primary and Deagle as secondary. Also he has C4..
His current weapon is AK-47.

when use engclient_cmd(id,"drop", weapon_c4) a PRIMARY AND SECONDARY weapons of player has been switched. I need a code to disable switching.
__________________
sorry my bad english...
alonelive is offline
alonelive
Senior Member
Join Date: Jan 2011
Location: Big snow country.. :)
Old 01-23-2013 , 14:23   Re: [CS] c4 drop (weapon switch disable)
Reply With Quote #4

Tomorrow i want to try use ham_strip. Topic is temporary closed
__________________
sorry my bad english...
alonelive is offline
alonelive
Senior Member
Join Date: Jan 2011
Location: Big snow country.. :)
Old 01-24-2013 , 01:03   Re: [CS] c4 drop (weapon switch disable)
Reply With Quote #5

HAM_STRIP does not work correctly in this case!


PHP Code:
register_logevent"LogEvent_Got_Bomb"3"2=Spawned_With_The_Bomb" )
register_logevent"LogEvent_Got_Bomb"3"2=Got_The_Bomb" )

//c4 remove
public LogEvent_Got_Bombid)
{
    new 
iFwd register_forward(FM_SetModel"SetModel"1)
    
engclient_cmd(0"drop""weapon_c4")
    
//i tried to use ham strip instead engclient_cmd drop - not works correctly.
    
unregister_forward(FM_SetModeliFwd1)
}

public 
SetModelentmodel[] )
{
    if( 
equal(model"models/w_backpack.mdl") )
    {
        
call_think(ent)
        
message_begin(MSG_ALLgmsgBombPickup)
        
message_end()
    }

__________________
sorry my bad english...
alonelive is offline
Bos93
Veteran Member
Join Date: Jul 2010
Old 01-24-2013 , 06:47   Re: [CS] c4 drop (weapon switch disable)
Reply With Quote #6

block lastinv
__________________
Bos93 is offline
Send a message via ICQ to Bos93 Send a message via Skype™ to Bos93
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 20:39.


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