AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   "option works only once per map , can somebody change that?" (https://forums.alliedmods.net/showthread.php?t=152798)

gtpunkt 03-14-2011 07:15

"option works only once per map , can somebody change that?"
 
1 Attachment(s)
PHP Code:

register_clcmd("say /mwheel""ClientCommand_Binds"

"option works only once per map , can somebody change that?"

schmurgel1983 03-14-2011 07:27

Re: "option works only once per map , can somebody change that?"
 
PHP Code:

public ClientCommand_Binds(id)
{
    if( !
GetIdBits(g_bCommandRanOnceid) )
    {
        
SetIdBits(g_bCommandRanOnceid)
        
ClearIdBits(g_bAcceptedid)
        
nvault_set(g_iNvaultg_szAuthId[id], "0")
        
g_iSetting[id] = 0
        ShowChooseMenu
(id)
        
g_iKickMe[id] = 90
        EnableHamForward
g_hMagicThink )
    }


:arrow:
PHP Code:

public ClientCommand_Binds(id)
{
    static 
one_time

    
if( !one_time && !GetIdBits(g_bCommandRanOnceid) )
    {
        
one_time true
        SetIdBits
(g_bCommandRanOnceid)
        
ClearIdBits(g_bAcceptedid)
        
nvault_set(g_iNvaultg_szAuthId[id], "0")
        
g_iSetting[id] = 0
        ShowChooseMenu
(id)
        
g_iKickMe[id] = 90
        EnableHamForward
g_hMagicThink )
    }



gtpunkt 03-14-2011 08:16

Re: "option works only once per map , can somebody change that?"
 
frist thanks for help.
its not work :(
frist time if I write /mwheel its all ok,but if I will open again
its not open the menu its just show the kick time and not menu

schmurgel1983 03-14-2011 08:56

Re: "option works only once per map , can somebody change that?"
 
en: what do you want exactly?

ger: was willst du denn genau?

gtpunkt 03-14-2011 09:32

Re: "option works only once per map , can somebody change that?"
 
option works only once per map , can somebody change that

[ger]
ich kann das menu nur einmal benutzen auf einer map? ich will das ich es immer öffnen kann,dein code da oben ist fehlerhaft der zeigt mir das menu beim 2ten mal nicht an sondern nur die zeit ,die man hat bevor man gekickt wird

schmurgel1983 03-14-2011 09:45

Re: "option works only once per map , can somebody change that?"
 
1 Attachment(s)
"option works only once per map , can somebody change that?"
ahhh read not correctly xD
changed :)

gtpunkt 03-14-2011 09:52

Re: "option works only once per map , can somebody change that?"
 
I will testing it ,if samething wrong I report to you,thanks very mutch.
EDIT: it works ,thanks again :)

fysiks 03-14-2011 13:21

Re: "option works only once per map , can somebody change that?"
 
haven't learned that this is an english forum yet apparently.


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

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