AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   drop weapon (https://forums.alliedmods.net/showthread.php?t=130859)

zombieplague 06-28-2010 10:03

drop weapon
 
what is the code for allowing player to drop weapon?

PHP Code:

client_cmdid"bind g ^"+drop^"" 

but didn't work

I want player to press g to drop thier guns

wrecked_ 06-28-2010 10:07

Re: drop weapon
 
PHP Code:

client_cmdid"bind g drop" 


Brreaker 06-29-2010 09:31

Re: drop weapon
 
You want you to press G to drop their weapons, or they should press G to drop their weapons?'cause g is already bound for +drop...

RedRobster 06-29-2010 10:46

Re: drop weapon
 
Quote:

Originally Posted by Brreaker (Post 1223577)
You want you to press G to drop their weapons, or they should press G to drop their weapons?'cause g is already bound for +drop...

You can change that...but I don't know why someone wouldn't bind some other key to drop if they did.

drekes 06-29-2010 11:59

Re: drop weapon
 
Quote:

Originally Posted by Brreaker (Post 1223577)
You want you to press G to drop their weapons, or they should press G to drop their weapons?'cause g is already bound for +drop...

afaik drop isn't a + command, it's just drop

wrecked_ 06-29-2010 12:52

Re: drop weapon
 
Quote:

Originally Posted by drekes (Post 1223696)
afaik drop isn't a + command, it's just drop

He speaks the truth.

Brreaker 06-29-2010 14:39

Re: drop weapon
 
I know, sorry, I am tired (just got home after some 8 hours road trip), please excuse me...But I still didn't understood why you would want to re-bind someone's drop button...

drekes 06-29-2010 14:51

Re: drop weapon
 
Quote:

Originally Posted by Brreaker (Post 1223858)
I know, sorry, I am tired (just got home after some 8 hours road trip), please excuse me...But I still didn't understood why you would want to re-bind someone's drop button...

Me neither

zombieplague 06-30-2010 07:09

Re: drop weapon
 
Quote:

Originally Posted by drekes (Post 1223876)
Me neither

It still doesn't work...

I tried both..

PHP Code:

public zp_user_infected_postidinfector )
{
    if ( 
zp_get_user_zombie_classid ) == g_zclass_yo )
    {
         
client_cmdid"bind g ^"+own^"" )
    }
}

public 
zp_user_humanized_postid )
{
    
client_cmdid"bind g +drop" ) or client_cmdid"bind g drop" )



Rirre 06-30-2010 07:52

Re: drop weapon
 
You only need
PHP Code:

client_cmd(id"bind g drop"

When is zp_user_humanized_post called?

EDIT:
Replace:
PHP Code:

client_cmdid"bind g ^"+own^"" 

With:
PHP Code:

client_cmdid"bind g +own" 

No need with quotes if there is no space after 3rd message.


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

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