AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   server_exec() in plugin_init (https://forums.alliedmods.net/showthread.php?t=222896)

Desikac 08-07-2013 19:59

server_exec() in plugin_init
 
If I use server_exec() in plugin_init, will it also force the execution of amxx.cfg and/or server.cfg before the other plugins load?

fysiks 08-07-2013 21:48

Re: server_exec() in plugin_init
 
server_exec() does not execute any particular file.

Desikac 08-08-2013 05:47

Re: server_exec() in plugin_init
 
I don't think you understand. Let me try to explain it better.

Server.cfg loads on server start. However, those commands wait till all of the plugins have been loaded before executing. That is why putting plugin related cvars/commands in server.cfg works. (?)

Will server_exec() in plugin_init of one of the plugins make those commands from server.cfg that are waiting execute before other plugins have been loaded?

YamiKaitou 08-08-2013 07:27

Re: server_exec() in plugin_init
 
server.cfg is not executed by AMXX

As for your question, not sure, never tested it that far. I know just using server_cmd and not server_exec will wait until the end of the current frame to execute all the commands. Not sure if using server_exec will flush the entire queue or just the queue generated by that plugin. You can always try it yourself though, not that hard


All times are GMT -4. The time now is 15:59.

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