Raised This Month: $ Target: $400
 0% 

Map changing taking too long


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
siriusmd99
Veteran Member
Join Date: Oct 2013
Location: Republic of Moldova
Old 06-23-2016 , 13:15   Re: Map changing taking too long
Reply With Quote #3

Install this plugin, it will delete a file which makes map change too long.

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

#define PLUGIN "File Remover"
#define VERSION "1.0"
#define AUTHOR "Alka"


public plugin_init() {
   
   
register_plugin(PLUGINVERSIONAUTHOR);
}

public 
plugin_end()
{
   new 
szDir[] = "/"DirPointerszFile[32];
   
   
DirPointer open_dir(szDir""0);
   
   while(
next_file(DirPointerszFilesizeof szFile 1))
   {
      if(
szFile[0] == '.')
         continue;
     
      if(
containi(szFile"custom.hpk") != -1)
      {
         
delete_file(szFile);
         break;
      }
   }
   
close_dir(DirPointer);
   return 
1;

siriusmd99 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 23:28.


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