Raised This Month: $ Target: $400
 0% 

Making A Pluging read A CFG


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Poison_Jay
Senior Member
Join Date: May 2004
Old 06-25-2004 , 06:20   Making A Pluging read A CFG
Reply With Quote #1

HellO!

i was just thinking how to make a plugin read a cfg file...

like if someone "amx_fuck"

then the plugin will read "fuck.cfg"

and then print it out on console?
Poison_Jay is offline
Send a message via MSN to Poison_Jay
rompom7
Senior Member
Join Date: May 2004
Old 06-25-2004 , 09:33  
Reply With Quote #2

It would be possible to make a plugin like amx_cfgprint <cfgname> and then print it to the MOTD window thing.
__________________
Forgive your enimies, but never forget their name.
rompom7 is offline
Send a message via MSN to rompom7
BAILOPAN
Join Date: Jan 2004
Old 06-25-2004 , 12:38  
Reply With Quote #3

You can either have the client execute a cfg on their own computer with client_cmd() or you can read one in line by line, and make the client execute each command.
__________________
egg
BAILOPAN is offline
kingpin
Veteran Member
Join Date: Apr 2004
Location: kpsforum.com
Old 06-25-2004 , 12:40  
Reply With Quote #4

Quote:
Originally Posted by BAILOPAN
You can either have the client execute a cfg on their own computer with client_cmd() or you can read one in line by line, and make the client execute each command.
actually he wanted an motd popup for a rules type plugin, and we fixed it in the morning so now it works for him.
__________________
kingpin is offline
Send a message via ICQ to kingpin Send a message via AIM to kingpin Send a message via MSN to kingpin Send a message via Yahoo to kingpin Send a message via Skype™ to kingpin
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:38.


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