Heya! I am wondering if it's possible to read a const from a file.
I have this code:
PHP Code:
new mapnames
<...>
new const mapnames[][] =
{
"awp_", "cs_deagle", "knf_", "1hp_", "aim_", "fy_" //Maps in which vipmenu can't be used
}
<...>
get_mapname( szMap , charsmax( szMap ) );
for( new i = 0 ; i < sizeof( mapnames ) ; i++ )
{
if ( containi( szMap , mapnames[ i ] ) !=-1 )
return;
}
I want to make a file where those all mapnames would be and I could add more without editing the plugin.