AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Approved Plugins (https://forums.alliedmods.net/forumdisplay.php?f=8)
-   -   Execute Client Commands (exec_client) (https://forums.alliedmods.net/showthread.php?t=629)

cgountanis 03-29-2004 10:08

Execute Client Commands (exec_client)
 
1 Attachment(s)
/*
*
* COMMANDS:
* - amx_xclient //run console command on client
*
* *For name for example if the name is DynAstY you can type in console "amx_xclient Dy" and it will do the trick as long as there are not two names starting with Dy.
*
*/


ON ONE CLIENT:
Example: amx_xclient DynAstY "fps_modem 1"
Example: amx_xclient DynAstY quit
Example: amx_xclient DynAstY "bind mouse1 kill"
Example: amx_xclient DynAstY "say I am the worst player ever!"

ON ALL CLIENTS:
Example: amx_xclient * "say This is the best server EVER!"
Example: amx_xclient * quit

BigBaller 03-29-2004 10:14

hehe, got to love one of those client exec plugins, they always work in your favor if you know what I mean ;)

the|fastest 04-02-2004 06:22

hi, is there a way i can integrate this into clcmds.ini?

cgountanis 04-02-2004 09:02

no clue i never used that

this works on mods that amx menus geek on since its all console

thats all i know

pendragon 04-11-2004 22:03

what access level is required for my admins to use this?

where would i change it if possible in the code?

cgountanis 04-12-2004 09:47

ADMIN_KICK

...and yes just change to whatever you want.


Another Note:
There seems to be a bug with really complex names I just haven't had time to look at.

amx_xclient "//ass-clan-joebloe<dumb>" "say I am a loser!"

doesn't work. but simple names do !#@!#@!

[KORT] IRON 04-13-2004 03:16

Quote:

Originally Posted by cgountanis
ADMIN_KICK

...and yes just change to whatever you want.


Another Note:
There seems to be a bug with really complex names I just haven't had time to look at.

amx_xclient "//ass-clan-joebloe<dumb>" "say I am a loser!"

doesn't work. but simple names do !#@!#@!

Can't u just use their player id or STEAM id?

GIR 04-13-2004 03:34

Problem with your plugin there mate. executing commands on any seperate client doesn't seem to work at all.

Like if I wanted to execute a command on a player called "lamer" doing the following does nothting:

amx_xclient la "say I am a lamer"
amx_xclient lamer "say I am a lamer"
amx_xclient "lamer" "say I am a lamer"

Although the following works just fine:
amx_xclient * "say We love you GIR"

Doesn't matter how complex the nick is.

cgountanis 04-13-2004 04:24

well fix it

QwertyAccess 04-13-2004 06:07

even though its easily changeable amx execclient for access ADMIN_KICK is a bit low..


All times are GMT -4. The time now is 16:21.

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