AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting (https://forums.alliedmods.net/forumdisplay.php?f=107)
-   -   Solved setup file plugins reads after two maps (https://forums.alliedmods.net/showthread.php?t=316809)

mewbie222 06-11-2019 04:29

setup file plugins reads after two maps
 
after the server is started, the settings file for the plugin is read after the map change, i.e. from the second map. Is there any subtlety to the plugin to take new values immediately after starting the server ?
Code example:
PHP Code:

public OnPluginStart()
{
    
CreateConVar("sm_dod_version"PLUGIN_VERSION"name info version"FCVAR_PLUGIN|FCVAR_SPONLY|FCVAR_REPLICATED|FCVAR_NOTIFY);
the variables created through CreateConVar

    HookEvent
("dod_stats_player_damage"PlayerDamageEvent);
    
    
AutoExecConfig(true"namefile")


Maybe there is some subtlety in writing to the new values from the settings file for the plugin immediately began to "work" , and not as I have now after changing the map ?
As for me, I could say a beginner script in SP.

Sorry for bad english.


All times are GMT -4. The time now is 14:18.

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