Need Code For CFG FILE
I have Plugin and i want to pick mp_maxrounds from cfg file
addons/amxmodx/maps/%s.cfg that %s is map name and i want to pick mp_maxrounds can anyone make code on cfg file |
Re: Need Code For CFG FILE
PHP Code:
|
Re: Need Code For CFG FILE
Map-specific config files are loaded automatically by AMX Mod X so there is no reason to do anything with those files directly. You simply need to read the cvar values like you would do for any cvar. damage220 gave you an example of one way to read the cvar value.
|
Re: Need Code For CFG FILE
Quote:
PHP Code:
|
Re: Need Code For CFG FILE
Please re-read my post.
|
Re: Need Code For CFG FILE
Quote:
what if its cfg file of map ... it will get mp_maxrounds of map cfg that all !!! |
Re: Need Code For CFG FILE
Quote:
if file exist open file get mp_maxrounds value and print it on server !!! |
Re: Need Code For CFG FILE
Quote:
https://wiki.alliedmods.net/Configur...ecific_Plugins |
Re: Need Code For CFG FILE
Quote:
you also give different answer what i am trying to do ? i have plugin i want to show cvar values to users from that file Assume if nextmap mp_maxrounds value should display to user when we write nextmap on chat it show nextmap name and it should also show Rounds of Nextmap will be: %d mean load mp_maxrounds from file to show nextmap rounds to users |
Re: Need Code For CFG FILE
Quote:
oh yes you need a function |
| All times are GMT -4. The time now is 10:32. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.