Raised This Month: $51 Target: $400
 12% 

Solved setup file plugins reads after two maps


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
mewbie222
Senior Member
Join Date: May 2018
Old 06-11-2019 , 04:29   setup file plugins reads after two maps
Reply With Quote #1

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.

Last edited by mewbie222; 06-13-2019 at 16:31. Reason: seems to be understand myself !!
mewbie222 is offline
Reply



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 02:46.


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