AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Making A Pluging read A CFG (https://forums.alliedmods.net/showthread.php?t=3065)

Poison_Jay 06-25-2004 06:20

Making A Pluging read A CFG
 
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?

rompom7 06-25-2004 09:33

It would be possible to make a plugin like amx_cfgprint <cfgname> and then print it to the MOTD window thing.

BAILOPAN 06-25-2004 12:38

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.

kingpin 06-25-2004 12:40

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.


All times are GMT -4. The time now is 14:38.

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