loading days file on mapstart instead of pluginstart
This commit is contained in:
parent
9b93fd3fa2
commit
b5056b71a8
@ -113,7 +113,7 @@ public Plugin myinfo =
|
|||||||
url = "www.unloze.com"
|
url = "www.unloze.com"
|
||||||
};
|
};
|
||||||
|
|
||||||
public void OnPluginStart()
|
public void loadDays()
|
||||||
{
|
{
|
||||||
char localPath[256];
|
char localPath[256];
|
||||||
BuildPath(Path_SM, localPath, sizeof(localPath), "configs/unloze_zr/daystitle.txt");
|
BuildPath(Path_SM, localPath, sizeof(localPath), "configs/unloze_zr/daystitle.txt");
|
||||||
@ -127,7 +127,10 @@ public void OnPluginStart()
|
|||||||
count++;
|
count++;
|
||||||
}
|
}
|
||||||
CloseHandle( fileHandle );
|
CloseHandle( fileHandle );
|
||||||
|
}
|
||||||
|
|
||||||
|
public void OnPluginStart()
|
||||||
|
{
|
||||||
//processstring
|
//processstring
|
||||||
LoadTranslations("common.phrases.txt");
|
LoadTranslations("common.phrases.txt");
|
||||||
|
|
||||||
@ -1059,6 +1062,7 @@ public void OnMapStart()
|
|||||||
LoadClasses();
|
LoadClasses();
|
||||||
LoadExtraSettings();
|
LoadExtraSettings();
|
||||||
loadWeapons();
|
loadWeapons();
|
||||||
|
loadDays();
|
||||||
}
|
}
|
||||||
|
|
||||||
//just checking the knife when they spawn is appereantly not good enough. this is just repeating what Timer_StopProtection does.
|
//just checking the knife when they spawn is appereantly not good enough. this is just repeating what Timer_StopProtection does.
|
||||||
|
Loading…
Reference in New Issue
Block a user