Raised This Month: $ Target: $400
 0% 

how do you client_cmd with the persons name


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
kp_uparrow
Penalized Member
Join Date: Jun 2006
Location: 192.168.0.1
Old 06-24-2006 , 17:33   how do you client_cmd with the persons name
Reply With Quote #1

register_clcmd("say /slapme", "bla....")

client_cmd(id, "amx_slap name 5") -duh this does not work

how do you make the plugin execute amx_slap "name" 5, where the "name is the person who said /slap me

*the "name" can be the persons #userid or the persons name
kp_uparrow is offline
SubStream
Veteran Member
Join Date: Aug 2005
Location: USA
Old 06-24-2006 , 23:16   Re: how do you client_cmd with the persons name
Reply With Quote #2

don't make the client slap themselves literally.

user server_cmd instead and have the server slap the player when they request it.
SubStream 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 08:06.


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