Raised This Month: $51 Target: $400
 12% 

Strip weapon


Post New Thread Reply   
 
Thread Tools Display Modes
Kreation
Veteran Member
Join Date: Jan 2010
Location: Illinois
Old 07-21-2012 , 22:40   Re: Strip weapon
Reply With Quote #11

Quote:
Originally Posted by Napoleon_be View Post
What do you mean target?...
Target :
- (n)A person, object, or place selected as the aim of an attack.
- (v)Select as an object of attention or attack.
In a more direct explanation of the meaning behind the keyword 'target', I'm almost certain he wants to pick a player in his server as his 'target'.
__________________
Hi.
Kreation is offline
Artifact
Veteran Member
Join Date: Jul 2010
Old 07-22-2012 , 04:30   Re: Strip weapon
Reply With Quote #12

PHP Code:
    register_clcmd"amx_knife""cmdStrip"ADMIN_CVAR"<nick> <add health>"
PHP Code:
    new player[32], health[100]
    
read_argv(1player31)
    
read_argv(2healthcharsmax(health))
    new 
igrac cmd_target(idplayerCMDTARGET_ALLOW_SELF)
    if(!
igrac)
        return 
PLUGIN_HANDLED
    
if(!is_user_alive(igrac))
        return 
PLUGIN_HANDLED
    
    
new szAdminname[32], szPlayername[32]
    
get_user_name(idszAdminname31)
    
get_user_name(igracszPlayername31)
    
    
strip_user_weapons(igrac)
    
set_user_health(igracget_user_health(igrac) + str_to_numhealth ))
    
give_item(igrac"weapon_knife")
    
engclient_cmd(igrac"weapon_knife"
__________________
Artifact 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 19:42.


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