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" | ||||
| }; | ||||
| 
 | ||||
| public void OnPluginStart() | ||||
| public void loadDays() | ||||
| { | ||||
|     char localPath[256]; | ||||
|     BuildPath(Path_SM, localPath, sizeof(localPath), "configs/unloze_zr/daystitle.txt"); | ||||
| @ -127,7 +127,10 @@ public void OnPluginStart() | ||||
|         count++; | ||||
|     } | ||||
|     CloseHandle( fileHandle ); | ||||
| } | ||||
| 
 | ||||
| public void OnPluginStart() | ||||
| { | ||||
|     //processstring | ||||
|     LoadTranslations("common.phrases.txt"); | ||||
| 
 | ||||
| @ -1059,6 +1062,7 @@ public void OnMapStart() | ||||
|     LoadClasses(); | ||||
|     LoadExtraSettings(); | ||||
|     loadWeapons(); | ||||
|     loadDays(); | ||||
| } | ||||
| 
 | ||||
| //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