AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Make the player add stuff in cfg files (https://forums.alliedmods.net/showthread.php?t=10682)

XunTric 02-26-2005 17:13

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?

hellraser 02-26-2005 18:06

i don't think there is anyway for a client to write to a *.cfg file from HL...Not sure...

XxAvalanchexX 02-26-2005 19:39

Nope, AMXx can only write to files that belong to the server, as it's a server-side plugin. ;-)

TotalNoobScripter 02-26-2005 19:48

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.

XunTric 02-27-2005 11:46

Quote:

Originally Posted by TotalNoobScripter
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.

Yeah you could have done alot evil stuff with that plugin

TotalNoobScripter 02-27-2005 13:18

im not really sure what writecfg in console does, but im pretty sure it adds to config.ini

XunTric 02-27-2005 13:20

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

TotalNoobScripter 02-27-2005 13:22

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.