Help Me For maps
#1

Good day to put the map as filterscripts please ??
For answers will be grateful!
Thank you!
Reply
#2

to put FS map
PHP код:
new.pwn
public OnFilterScriptInit()
{
    
//your map 
    
return 1;
}
server.cfg 
filterscripts 
new 
or to put map as include


PHP код:
#include <map>
public OnGameModeInit()
{
    
// 
        
mapload();
    return 
1;
}
create map.inc file and put 
mapload
() 

 
//// your mapping 

Reply
#3

Thank you!
Reply
#4

And another way?
Reply
#5

Making filterscripts is the best way. Also, create a function called AddMap(mapname[], MapFilterScriptName[], ................);

And in the filterscript, Add this:
PHP код:
public OnFilterscriptInit()
{
   
//objects
}
public 
OnFilterscriptExit()
{
    for(new 
i=0i<MAX_OBJECTSi++)
    {
         
DestroyObject(i);
    }
    return 
1;

But you can load only 16 filterscripts at a time. To fix this, unload the current filterscript and load the new when the map changes.
Reply
#6

And RemoveBuilding.
Reply
#7

You can add your Maps code in the Gamemode ( laggy)
in public OnGameModeInit() // in this line
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)