AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   bind problem (https://forums.alliedmods.net/showthread.php?t=318210)

KillerElite 08-20-2019 03:40

bind problem
 
Hello, i want to remove the "in_use" bind from this source or to change the taste E with another (C, V, X, L, K)
Code:

public fw_CmdStart( id, uc_handle, randseed )
{
        if (!g_isConnected[id] || !g_isAlive[id])
                return FMRES_IGNORED

        //new button = pev(id, pev_button)
        new button = get_uc( uc_handle , UC_Buttons );
        new oldbutton = pev(id, pev_oldbuttons)

        if( button & IN_USE && !(oldbutton & IN_USE) && !g_iOwnedEnt[id])
                cmdGrabEnt(id)
        else if( oldbutton & IN_USE && !(button & IN_USE) && g_iOwnedEnt[id])
                cmdStopEnt(id)


        return FMRES_IGNORED;
}


HamletEagle 08-20-2019 03:49

Re: bind problem
 
Most keys can not be used unless the user manually binds a command to that key.

KillerElite 08-20-2019 04:08

Re: bind problem
 
Quote:

Originally Posted by HamletEagle (Post 2663894)
Most keys can not be used unless the user manually binds a command to that key.

Atunci ma poti ajuta sa scot use-ul? :D
E dintr un plugin de baza de basebuilder..si faza e ca daca scot in use se bugheaza contruitul.
Ma gandeam sa pun alt bind pentru ca lumea si asa are bindul ei cu +grab..deci daca pun unu optional e si mai bn

HamletEagle 08-20-2019 06:13

Re: bind problem
 
English only, please. If you want to use another language, you should add an english translation too.

What do you want to use instead of IN_USE?

KillerElite 08-20-2019 06:32

Re: bind problem
 
Quote:

Originally Posted by HamletEagle (Post 2663910)
English only, please. If you want to use another language, you should add an english translation too.

What do you want to use instead of IN_USE?

I want the taste C or to remove the in_use..but the building is buging after i remove in_use...probably i don't remove it good.

OciXCrom 08-20-2019 07:22

Re: bind problem
 
Your best bet for "C" is hooking the "radio3" command via "register_clcmd", but there is no guarantee that all players are using "radio3" on their "C" key.

KillerElite 08-20-2019 08:12

Re: bind problem
 
Quote:

Originally Posted by OciXCrom (Post 2663918)
Your best bet for "C" is hooking the "radio3" command via "register_clcmd", but there is no guarantee that all players are using "radio3" on their "C" key.

Hmm, radio3 is with register_clcmd..i want with IN_.. IN_RADIO3 doesn't work.

Can someone help me to remove this IN_USE from the building? This is a part of a basebuilder source.

thEsp 08-20-2019 08:37

Re: bind problem
 
Quote:

Originally Posted by Ronald E (Post 2663923)
Nice job

[URL="https://gradesfixer.com/free-essay-examples/art/"]
[IMG]https://i.imgur.com/VRh2Ytd.jpg[/IMG][/URL]

Nice jabait

HamletEagle 08-20-2019 11:01

Re: bind problem
 
Quote:

Originally Posted by KillerElite (Post 2663921)
Hmm, radio3 is with register_clcmd..i want with IN_.. IN_RADIO3 doesn't work.

Can someone help me to remove this IN_USE from the building? This is a part of a basebuilder source.

I already told you this is not how it works. If you want "c", hook "radio3".

KillerElite 08-20-2019 17:20

Re: bind problem
 
Quote:

Originally Posted by HamletEagle (Post 2663946)
I already told you this is not how it works. If you want "c", hook "radio3".

Ok..then i want to remove the in_use bind.


All times are GMT -4. The time now is 17:28.

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