Raised This Month: $ Target: $400
 0% 

help


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
wTf.
Senior Member
Join Date: Aug 2011
Location: This important?
Old 10-25-2013 , 12:21   help
Reply With Quote #1

i use this command

PHP Code:
register_concmd("+kill","KillCommand"); 

public 
KillCommand(id) {
    new 
targetbody;
    
get_user_aiming(idtargetbody);

    if(
is_user_alive(target)) {
        
client_cmd(id"bind e ^"+kill^"");
        
user_kill(target1);
        
client_print(target,"You are DEAD")
        
client_print(id"You are KILLER")
    }
    return 
PLUGIN_HANDLED;

but, i want to use this command
Code:
IN_USE
wTf. is offline
alan_el_more
Veteran Member
Join Date: Jul 2008
Location: amxmodx-es.com
Old 10-25-2013 , 12:29   Re: help
Reply With Quote #2

Search FM_CmdStart or Ham_Use
__________________

Last edited by alan_el_more; 10-25-2013 at 12:30.
alan_el_more is offline
DWIGHTpN
Senior Member
Join Date: Jan 2013
Location: Romania.
Old 10-25-2013 , 12:34   Re: help
Reply With Quote #3

I'm not sure, but...
PHP Code:
public plugin_init() {
       
register_forward(FM_CmdStart"fwd_CmdStart");
}

public 
fwd_CmdStart(iduc_handleseed) {
    if(!
is_user_alive(id)) return FMRES_IGNORED
    
    
new buttons get_uc(uc_handle,UC_Buttons)
    if(
buttons IN_USE) {
          new 
targetbody
          get_user_aiming
(idtargetbody)
          if( 
is_user_alivetarget ) ) {
               
user_kill(target1)
               
client_print(targetprint_center"You are DEAD"
               
client_print(idprint_center,  "You are KILLER")
          }
   }
   return 
FMRES_IGNORED


Last edited by DWIGHTpN; 10-25-2013 at 12:35.
DWIGHTpN 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 23:15.


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