Raised This Month: $ Target: $400
 0% 

Help running config


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
666
Senior Member
Join Date: Mar 2015
Old 10-12-2022 , 18:48   Help running config
Reply With Quote #1


PHP Code:
#include <amxmodx>
#include <amxmisc>

enum CVARS
{
    
NAME[MAX_RESOURCE_PATH_LENGTH],
    
VALUE[MAX_RESOURCE_PATH_LENGTH]
};

new 
cvar_list[][CVARS] = 
{
    {
"mp_timeleft""0"},
    {
"mp_timelimit""0"},
    {
"mp_tkpunish""0"},
    {
"mp_windifference""1"},
    {
"mp_winlimit""0"},
};

public 
plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR)
}

public Function()
{
    
ExecuteGameConfig(cvar_list)
}

public 
ExecuteGameConfig(const cvars[])
{
    for ( new 
0sizeof(cvars); i++ )
    {
        
set_cvar_string(cvarscvars);
    }

__________________

Last edited by 666; 10-13-2022 at 14:12.
666 is offline
 



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 13:07.


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