Sign in to follow this  
emiledesmarg

Hi . how can I make my server be

Recommended Posts

Hi . how can I make my server be (r_fullbright "1" and fx_draw "0") .. so that people enter and maps are in fullbright and do not have fx_draw ..?

I'm not using any mod.

in the case of having to use it the one I prefer is " modWarfare "

From already thank you very much
 

modwarfare.zip

Share this post


Link to post
Share on other sites
On 23/10/2017 at 12:57 AM, AlexC said:

just put in globallogic:

setClientDvar("r_fullbright", 1);

thank you very much for your reply ..
this command, in what file should I put it?
thank you very much really . The guys that play on my server do not have modern computers. and we really need this.

Share this post


Link to post
Share on other sites

the server has messages such as fullbright and other commands .. but some do not know how to put the commands .. so it would be good if the server has fullbright by default ..

 

shot0053.jpg  

181.164.44.182:28963

Edited by emiledesmarg

Share this post


Link to post
Share on other sites

Someone could explain to me, like this kind person ..
how to have on my server fullbright 1 and fx_draw 0 .. ???

GSC Scripting Guide

This scripting guide shows how to modify server side scripts on the CoD4x server.

Quickstart - Running your first script!

In this chapter we develop a small welcome script. It will wait for a player to connect to the server, and write a welcome message to his screen.

Set up your scriptfile

Inside the serverfolder create a new folder called main_shared1. Inside main_shared create a file called welcome.gsc. This file will contain our code.

init()
{
    for(;;)
    {
        level waittill("connected", player); // Waits until a new player connects - player stored in "player" variable.
        player thread welcome(); // Execute a new thread for "player".
    }
}

welcome()
{
    // "player" is referenced as "self" now.
    self endon("disconnect"); // If player was connected but left without spawning, thread will lock because of next statement.
    self waittill("spawned_player"); // Waits until the player spawned.
    self iprintlnbold("Welcome " + self.name); // Writes the welcome message bold and centered on the player's screen.
}

Execute the script

Just because a script or function is present, doesn't mean it also gets executed. You not only tell them how to jump, you also tell them when to jump. Do not worry yet about the following lines, what's happening will be explained later.

Create a file called _callbacksetup.gsc inside main_shared/maps/mp/gametypes. Fill it with the contents of this file: https://github.com/D4edalus/CoD4MW/blob/master/raw/maps/mp/gametypes/_callbacksetup.gsc. To run our script we are going to edit the existing CodeCallback_StartGameType function.

CodeCallback_StartGameType()
{
    // If the gametype has not beed started, run the startup.
    if(!isDefined(level.gametypestarted) || !level.gametypestarted)
    {
          [[level.callbackStartGameType]]();

          level.gametypestarted = true; // So we know that the gametype has been started up.

          thread welcome::init(); // Initializes the welcome script.
    }
}

1: main_shared is not only one possibility to load custom scripts on the CoD4x server. Most certainly the easiest and the best one for development.

Share this post


Link to post
Share on other sites

as I said, setClientDvar("r_fullbright", 1); in _globallogic.gsc

Edited by AlexC

Share this post


Link to post
Share on other sites
2 hours ago, AlexC said:

as I said, setClientDvar("r_fullbright", 1); in _globallogic.gsc

thank you very much .. I think I'm close to being able to do it .. but it gives me an error ..

I have tried in many ways :

setClientDvar("r_fullbright", 1);

-------------------------------------------------------

{ setClientDvar("r_fullbright", 1); }

-------------------------------------------------------

<value> { ("r_fullbright"); }

<dvar>  { setClientDvar("r_fullbright", 1); }

------------------------------------------------------

{ setClientDvar ("r_fullbright", 1); }

 

 

Sin título.jpg

Share this post


Link to post
Share on other sites
45 minutes ago, emiledesmarg said:

thank you very much .. I think I'm close to being able to do it .. but it gives me an error ..

I have tried in many ways :

setClientDvar("r_fullbright", 1);

-------------------------------------------------------

{ setClientDvar("r_fullbright", 1); }

-------------------------------------------------------

<value> { ("r_fullbright"); }

<dvar>  { setClientDvar("r_fullbright", 1); }

------------------------------------------------------

{ setClientDvar ("r_fullbright", 1); }

 

 

Sin título.jpg

 

forget to comment

the server is without mod now.

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.
Sign in to follow this