Make the player add stuff in cfg files
Is there any way to make a plugin that makes the player add stuff in like autoexec.cfg?
This is just a example: amx_addexec "noob" "autoexec.cfg" "exec omfg.cfg" amx_addexec "idiot" "userconfig.cfg" "name OMFG" etc.. (amx_addexec <name> <what file to add in> <what command to add in the file>) Now "exec omfg.cfg" will be added in noob's autoexec.cfg. Now "name OMFG" will be added in idiot's userconfig.cfg Is this possible? |
i don't think there is anyway for a client to write to a *.cfg file from HL...Not sure...
|
Nope, AMXx can only write to files that belong to the server, as it's a server-side plugin. ;-)
|
admin_execclient name writecfg "bind mouse1 kill"
:D u might be able to do it with amx_clexec, depending on how amx_clexec uses its args. |
Quote:
|
im not really sure what writecfg in console does, but im pretty sure it adds to config.ini
|
amx_addexec "xuntric" "autoexec.cfg" "exit"
:lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: Everytime they open counter-strike it will exit :P :lol: :D |
tahts only if you could write to client files. the only way as of right now you can write to a client file is admin_execclient name writecfg whatever.
|
| All times are GMT -4. The time now is 14:03. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.