Raised This Month: $32 Target: $400
 8% 

server_exec() in plugin_init


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Desikac
Senior Member
Join Date: Apr 2010
Location: Serbia
Old 08-07-2013 , 19:59   server_exec() in plugin_init
Reply With Quote #1

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?
Desikac is offline
Send a message via MSN to Desikac Send a message via Skype™ to Desikac
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 08-07-2013 , 21:48   Re: server_exec() in plugin_init
Reply With Quote #2

server_exec() does not execute any particular file.
__________________
fysiks is offline
Desikac
Senior Member
Join Date: Apr 2010
Location: Serbia
Old 08-08-2013 , 05:47   Re: server_exec() in plugin_init
Reply With Quote #3

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?
Desikac is offline
Send a message via MSN to Desikac Send a message via Skype™ to Desikac
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 08-08-2013 , 07:27   Re: server_exec() in plugin_init
Reply With Quote #4

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
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).
YamiKaitou is offline
Reply


Thread Tools
Display Modes

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 23:25.


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