Reload amx.cfg in every round.
Can someone make me code what reloads amx.cfg in every round, or some other ini/txt/.cfg file?
I got this kinda of code what reloads when someone connects. When is exec that file there is commands what server should do then. Code:
public client_putinserver(id) |
Re: Reload amx.cfg in every round.
Why do you not set a task every x seconds with a public on server_cmd?
Code:
#include < amxmodx > |
Re: Reload amx.cfg in every round.
Quote:
|
Re: Reload amx.cfg in every round.
My bad, yes, you need to put "\"
cstrike\addons\amxmodx\configs\amx.cfg |
Re: Reload amx.cfg in every round.
So this is right?
public reload() { server_cmd("exec cstrike\addons\amxmodx\configs\amx.cfg"); } And when it loads that does server make those commands what are inside of amx.cfg? |
Re: Reload amx.cfg in every round.
Must be "/" not "\", so, this is the correct form:
Code:
public reload() |
Re: Reload amx.cfg in every round.
2 Attachment(s)
Untested:
|
Re: Reload amx.cfg in every round.
Quote:
Quote:
|
Re: Reload amx.cfg in every round.
Quote:
Btw does it need to be like this; server_cmd("exec /addons/amxmodx/configs/amxx.cfg"); or this? server_cmd("exec "/addons/amxmodx/configs/amxx.cfg"); |
Re: Reload amx.cfg in every round.
Quote:
|
All times are GMT -4. The time now is 20:44. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.