madkam

Spawn Protection

Recommended Posts

Where do I upload the gsc file on the server and what is the command to run it?

Share this post


Link to post
Share on other sites

Depends, are you running a mod? But what you need to do is add it to a folder, maps/mp/gametypes that's where you add the file and exec it from another script like teams.gsc, globallogic.gsc, dm.gsc, tdm.gsc just about any gsc script that gets called at start of game.

added this here to top of script you pick this is globallogic.gsc: 

#include maps\mp\_utility;
#include maps\mp\gametypes\_hud_util;
#include common_scripts\utility;

init()
{

  thread maps\mp\gametypes\_spawnprotection::init(); 

 
    // hack to allow maps with no scripts to run correctly
    if ( !isDefined( level.tweakablesInitialized ) )
        maps\mp\gametypes\_tweakables::init();

 

then add  set  protection "TIME HERE"  to server.cfg

This is just one way of doing it, but other way takes more time and knowledge of scripting.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.