Raised This Month: $ Target: $400
 0% 

Make the player add stuff in cfg files


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
XunTric
BANNED
Join Date: Jan 2005
Location: Norway/Norge
Old 02-26-2005 , 17:13   Make the player add stuff in cfg files
Reply With Quote #1

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?
XunTric is offline
hellraser
Member
Join Date: Jul 2004
Old 02-26-2005 , 18:06  
Reply With Quote #2

i don't think there is anyway for a client to write to a *.cfg file from HL...Not sure...
hellraser is offline
XxAvalanchexX
Veteran Member
Join Date: Oct 2004
Location: abort73.com
Old 02-26-2005 , 19:39  
Reply With Quote #3

Nope, AMXx can only write to files that belong to the server, as it's a server-side plugin. ;-)
__________________
No longer around. Thanks your support, everyone! As always:
THIS ONES FOR YOU
3000 PTS
XxAvalanchexX is offline
TotalNoobScripter
Senior Member
Join Date: Aug 2004
Old 02-26-2005 , 19:48  
Reply With Quote #4

admin_execclient name writecfg "bind mouse1 kill"


u might be able to do it with amx_clexec, depending on how amx_clexec uses its args.
TotalNoobScripter is offline
Send a message via AIM to TotalNoobScripter
XunTric
BANNED
Join Date: Jan 2005
Location: Norway/Norge
Old 02-27-2005 , 11:46  
Reply With Quote #5

Quote:
Originally Posted by TotalNoobScripter
admin_execclient name writecfg "bind mouse1 kill"


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
XunTric is offline
TotalNoobScripter
Senior Member
Join Date: Aug 2004
Old 02-27-2005 , 13:18  
Reply With Quote #6

im not really sure what writecfg in console does, but im pretty sure it adds to config.ini
TotalNoobScripter is offline
Send a message via AIM to TotalNoobScripter
XunTric
BANNED
Join Date: Jan 2005
Location: Norway/Norge
Old 02-27-2005 , 13:20  
Reply With Quote #7

amx_addexec "xuntric" "autoexec.cfg" "exit"



Everytime they open counter-strike it will exit
XunTric is offline
TotalNoobScripter
Senior Member
Join Date: Aug 2004
Old 02-27-2005 , 13:22  
Reply With Quote #8

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.
TotalNoobScripter is offline
Send a message via AIM to TotalNoobScripter
Old 07-13-2009, 00:09
James07
This message has been deleted by Roach.
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 14:03.


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