Raised This Month: $ Target: $400
 0% 

[ZP] Extra Lasermine keys [HELP]


Post New Thread Reply   
 
Thread Tools Display Modes
gogicaa
Veteran Member
Join Date: Aug 2011
Location: //
Old 05-20-2012 , 06:35   Re: [ZP] Extra Lasermine keys [HELP]
Reply With Quote #11

this is called slowhacking and it's not allowed here.

Last edited by gogicaa; 05-20-2012 at 06:39.
gogicaa is offline
choco@.@
Member
Join Date: Jan 2012
Location: 한국 S.Korea
Old 05-20-2012 , 08:45   Re: [ZP] Extra Lasermine keys [HELP]
Reply With Quote #12

Quote:
Originally Posted by gogicaa View Post
this is called slowhacking and it's not allowed here.
Better than this stupid thing.
PHP Code:
client_cmd(index[], "bind g command01"
Hmm....
PHP Code:
register_clcmd("Something Default KeyValue""command01"
Anybody can help me for send a client-side-command for disconnected users?
__________________
 

Last edited by choco@.@; 05-20-2012 at 08:46. Reason: ...HAHA
choco@.@ is offline
H.RED.ZONE
Veteran Member
Join Date: Sep 2011
Location: Serbia, Belgrade
Old 05-20-2012 , 09:03   Re: [ZP] Extra Lasermine keys [HELP]
Reply With Quote #13

What do you mean, explain unbind command when player disconnects?
__________________
H.RED.ZONE is offline
jc980
Veteran Member
Join Date: Jan 2010
Location: God is with us...
Old 05-20-2012 , 09:15   Re: [ZP] Extra Lasermine keys [HELP]
Reply With Quote #14

better yet use an existing command, like slot5 etc.

#5 key
Quote:
client_cmd("slot5","+setlaser")
shift key
Quote:
client_cmd("+walk","+setlaser")
F2 key
Quote:
client_cmd("rebuy","+setlaser")
__________________

Last edited by jc980; 05-20-2012 at 09:16.
jc980 is offline
choco@.@
Member
Join Date: Jan 2012
Location: 한국 S.Korea
Old 05-20-2012 , 09:19   Re: [ZP] Extra Lasermine keys [HELP]
Reply With Quote #15

Quote:
Originally Posted by H.RED.ZONE View Post
What do you mean, explain unbind command when player disconnects?
Oh yeah,
__________________
 
choco@.@ is offline
H.RED.ZONE
Veteran Member
Join Date: Sep 2011
Location: Serbia, Belgrade
Old 05-20-2012 , 09:21   Re: [ZP] Extra Lasermine keys [HELP]
Reply With Quote #16

Not possible i tried long time ago it didn't work best way is to ask or use as JC just wrote.
Example:
PHP Code:
#include < amxmodx >
#include < colorchat >

public plugin_init() {
    
register_clcmd("say /bindmenu","bind_me")
    
register_clcmd("say_team /bindmenu","bind_me")    
}

public 
client_connect(id) {
    if(
is_user_alive(id)) {
        
ColorChat(idTEAM_COLOR"^4[ZP]^1 If you want to bind are commands type^4 /bindmenu^1 after that select option 1")
    }
}

public 
bind_me(id) {
    new 
menu menu_create("\yBind Menu""menu_handler")
    
    
menu_additem(menu"\wBind Me""1"0)
    
menu_additem(menu"\wUnbind Me""2"0)
    
    
menu_setprop(menuMPROP_EXITMEXIT_ALL);
    
menu_display(idmenu0);
}

public 
menu_handler(idmenuitem) {
    if( 
item == MENU_EXIT ) {
        
menu_destroy(menu);
        return 
PLUGIN_HANDLED;
    }
    new 
data[6], szName[64];
    new 
accesscallback;
    
    
menu_item_getinfo(menuitemaccessdata,charsmax(data), szName,charsmax(szName), callback);
    
    new 
key str_to_num(data);
    
    switch(
key) {
        case 
1: {
            
client_cmd(id"bind v +setlaser")
            
client_cmd(id"bind x +dellaser")
            
ColorChat(idTEAM_COLOR"^4[ZP]^1 You binded are commands.")
            return 
PLUGIN_HANDLED;
                }
        case 
2: {
            
client_cmd(id"bind x radio2")
            
ColorChat(idTEAM_COLOR"^4[ZP]^1 For better removal go to options and set keys to default.")
            return 
PLUGIN_HANDLED;
        }
    }
    
menu_destroy(menu); 
    return 
PLUGIN_HANDLED

__________________
H.RED.ZONE is offline
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 12:59.


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