AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Autobinding error (https://forums.alliedmods.net/showthread.php?t=210355)

MmikiM 03-09-2013 14:14

Autobinding error
 
Probably after updates it stopped working
Quote:

Server tried to send invalid command:"bind p +setlaser
PHP Code:

public zp_extra_item_selected(playeritemid)
{
    if (
itemid == g_itemid_lminas)
    {
        
cmd_bind(player)
        
BuyLasermine(player)
    }

}
public 
cmd_bind(id)
{
    
//new Lcount
    //Lcount = g_havemine[id]
    
if ( get_pcvar_num(g_LCMDMODE) == )
    {
        if ( 
get_pcvar_num(g_BINDMODE) == )
        {
            
client_print(idprint_chat"%s %s",CHATTAG,STR_BOUGHT)
            
client_print(idprint_chat"[ZP] You have %i Laser Mines"g_havemine[id]+1)
            
client_cmd(id,"bind p +setlaser");
            return 
PLUGIN_HANDLED
        
}
        
client_print(idprint_chat"%s %s",CHATTAG,STR_BOUGHT3)
        
client_print(idprint_chat"[ZP] You have %i Laser Mines"g_havemine[id]+1)
        return 
PLUGIN_HANDLED
    
    
}
    if ( 
get_pcvar_num(g_LCMDMODE) == )
    {
        
client_print(idprint_chat"%s %s",CHATTAG,STR_BOUGHT2)
        
client_print(idprint_chat"[ZP] You have %i Laser Mines"g_havemine[id]+1)
        return 
PLUGIN_HANDLED
    
}
    return 
PLUGIN_CONTINUE


Any ideas?

wickedd 03-09-2013 14:21

Re: Autobinding error
 
You are not allowed to change players keys without their permission.

YamiKaitou 03-09-2013 14:25

Re: Autobinding error
 
bind is a blocked command

MmikiM 03-09-2013 14:28

Re: Autobinding error
 
Ok thanks for the answer :)

Is there any option to show like a menu with available options to select like bind or not?

YamiKaitou 03-09-2013 14:38

Re: Autobinding error
 
The server cannot send the bind command anymore

MmikiM 03-09-2013 14:49

Re: Autobinding error
 
Ok thanks :) You can close the topic.

schmurgel1983 03-10-2013 04:27

Re: Autobinding error
 
Quote:

Originally Posted by YamiKaitou (Post 1909591)
The server cannot send the bind command anymore

offtopic: this update i loved, finally i can connect to other servers without f**k up my config :D

Podarok 03-10-2013 04:44

Re: Autobinding error
 
Not all servers have updated to the last version because its kinda unstable. So , no, they still can fk up ur config.

MmikiM 03-10-2013 12:58

Re: Autobinding error
 
Quote:

Originally Posted by schmurgel1983 (Post 1909913)
offtopic: this update i loved, finally i can connect to other servers without f**k up my config :D

I agree with you but it's unhelpful for me.

jimaway 03-10-2013 17:04

Re: Autobinding error
 
Quote:

Originally Posted by Podarok (Post 1909922)
Not all servers have updated to the last version because its kinda unstable. So , no, they still can fk up ur config.

its blocked client side and has nothing to do with servers not being updated


All times are GMT -4. The time now is 21:41.

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