AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   how do you client_cmd with the persons name (https://forums.alliedmods.net/showthread.php?t=40191)

kp_uparrow 06-24-2006 17:33

how do you client_cmd with the persons name
 
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

SubStream 06-24-2006 23:16

Re: how do you client_cmd with the persons name
 
don't make the client slap themselves literally.

user server_cmd instead and have the server slap the player when they request it.


All times are GMT -4. The time now is 08:06.

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