Перейти к содержимому
View in the app

A better way to browse. Learn more.

Zloplay community

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

Опубликовано:

Hi i own mw2 dedi server and I would like to aply some nice changes. currently I am using 3 changes. iw_25.iwd which contains edited killcam and votemap and restrict.iwd which replaces some weapons with other. I'd like to add viewtopic.php?f=17&t=4936 and viewtopic.php?f=17&t=16458 from this page (btw I alredy try to add second topic and it was working but killcam stopped being edited). And some other code from other website:

One from this 2 codes for infotext:

Scrolling text

Scrolling text in top and/or bottom of screen

I recommend making the text all the 259 chars. Otherwise there will be a long break.

doServerHUDControl()
{
//259 char each
level.infotext setText("your text");
level.infotext2 setText("Your text (make spaces if you only want one");
}


doInfoScroll()
{
self endon("disconnect");
for(i = 1600; i >= -3800; i -= 4)
{
	level.infotext.x = i;
	level.infotext2.x = i;
	if(i == -3800){
		i = 3800;
	}
	wait .005;
}
}

CreateServerHUD()
{
level.infotext = NewHudElem();
level.infotext.alignX = "center";
level.infotext.alignY = "bottom";
level.infotext.horzAlign = "center";
level.infotext.vertAlign = "bottom";
level.infotext.y = 25;
level.infotext.foreground = true;
level.infotext.fontScale = 1.35;
level.infotext.font = "objective";
level.infotext.color = ( 1.0, 1.0, 1.0 );
level.infotext2 = NewHudElem();
level.infotext2.alignX = "center";
level.infotext2.alignY = "top";
level.infotext2.horzAlign = "center";
level.infotext2.vertAlign = "top";
level.infotext2.y = 25;
level.infotext2.foreground = true;
level.infotext2.fontScale = 1.35;
level.infotext2.font = "objective";
level.infotext2.color = ( 1.0, 1.0, 1.0 );
level thread doInfoScroll();
}

"infotext" is in the bottom of the screen and "infotext2" in the top.

or

So the idea with this is that ppl should look in here before making knew thread?ВЁ

I can be some kind of "recruit" that Alex talked about in the other thread. I have tons of those snipets. And i can always make one. What about making it possible to request?

 

Then paste this in init()

	level thread doServerHUDControl();
level thread CreateServerHUD();
or
doChallengeText()
{
   self endon("disconnect");
   scoreText = self createFontString("hudbig", .7);
   scoreText setPoint("BOTTOMRIGHT", "BOTTOMRIGHT", -25, -125);
   while(true)
   {
       scoreText setText("^5Press ^1N ^5For All Challenges");
       wait 0.5;
	scoreText setText("^5Press ^2N ^5For All Challenges");
       wait 0.5;
	scoreText setText("^5Press ^3N ^5For All Challenges");
       wait 0.5;
	scoreText setText("^5Press ^4N ^5For All Challenges");
       wait 0.5;
	scoreText setText("^5Press ^5N ^5For All Challenges");
       wait 0.5;
	scoreText setText("^5Press ^6N ^5For All Challenges");
       wait 0.5;
	}
}

And some other thing:

have found a health bar meter

 

self thread can be placed allmost everywere

	if(isDefined(self.healthword))
	self.healthword destroy();

if(isDefined(self.healthnum))
	self.healthnum destroy();

if(isDefined(self.healthbar))
	self.healthbar destroy();

if(isDefined(self.healthbarback))
	self.healthbarback destroy();

if(isDefined(self.healthwarning))
	self.healthwarning destroy();

if(isDefined(self.intermissionTimer))
	self.intermissionTimer destroy();

if(isDefined(self.intermissionTimer2))
	self.intermissionTimer2 destroy();

if(isDefined(self.nvText))
	self.nvText destroy();

if(isDefined(self.nvText2))
	self.nvText2 destroy();

self.intermissionTimer = self createFontString( "objective", 1.3 );
   self.intermissionTimer setPoint( "TOP", "TOP", 0, 150 );
self.intermissionTimer.color = (1, 0, 0);

self.intermissionTimer2 = self createFontString( "hudbig", 0.9 );
   self.intermissionTimer2 setPoint( "TOP", "TOP", 0, 165 );
self.intermissionTimer2.color = (1, 1, 0);

self.nvText = self createFontString( "objective", 0.7 );
   self.nvText setPoint( "TOP", "TOP", -10, 450 );
self.nvText setText(game["strings"]["MP_NV"]["1"]);

self.nvText2 = self createFontString( "objective", 0.7 );
   self.nvText2 setPoint( "TOP", "TOP", -10, 460 );
self.nvText2 setText(game["strings"]["MP_NV"]["2"]);

self.healthword = newclienthudelem(self);
self.healthword.alignX = "left";
self.healthword.alignY = "middle";
self.healthword.horzAlign = "fullscreen";
self.healthword.vertAlign = "fullscreen";
self.healthword.x = x;
self.healthword.y = y - 12;
self.healthword.alpha = 1;
self.healthword.sort = 2;
self.healthword.fontscale = 1.4;
self.healthword.color = (0,1,0);
self.healthword setText(game["strings"]["MP_HEALTH"]);

self.healthnum = newclienthudelem(self);
self.healthnum.alignX = "left";
self.healthnum.alignY = "middle";
self.healthnum.horzAlign = "fullscreen";
self.healthnum.vertAlign = "fullscreen";
self.healthnum.x = x + 40;
self.healthnum.y = y - 12;
self.healthnum.alpha = 1;
self.healthnum.sort = 2;
self.healthnum.fontscale = 1.4;
self.healthnum.color = (0,1,0);

self.healthbar = newclienthudelem(self);
self.healthbar.alignX = "left";
self.healthbar.alignY = "middle";
self.healthbar.horzAlign = "fullscreen";
self.healthbar.vertAlign = "fullscreen";
self.healthbar.x = x;
self.healthbar.y = y;
self.healthbar.alpha = 1;
self.healthbar.sort = 2;
self.healthbar.color = (0,1,0);
self.healthbar setShader("white",128,6);

self.healthbarback = newclienthudelem(self);
self.healthbarback.alignX = "left";
self.healthbarback.alignY = "middle";
self.healthbarback.horzAlign = "fullscreen";
self.healthbarback.vertAlign = "fullscreen";
self.healthbarback.x = x;
self.healthbarback.y = y;
self.healthbarback.alpha = 0.5;
self.healthbarback.sort = 1;
self.healthbarback.color = (0,0,0);
self.healthbarback setShader("white",128,10);

while(1)
{
	if((isDefined(level.IntermissionTime)) && (level.IntermissionTime > 0))
	{
		self.intermissionTimer setText(game["strings"]["MP_HORDE_BEGINS_IN"]);
		self.intermissionTimer2 setValue(level.IntermissionTime);
	}
	else
	{
		self.intermissionTimer setText("");
		self.intermissionTimer2 setText("");
	}

	if(self.sessionstate != "playing" || !isDefined(self.health) || !isDefined(self.maxhealth))
	{
		self.healthword.alpha = 0;
		self.healthnum.alpha = 0;
		self.healthbar.alpha = 0;
		self.healthbarback.alpha = 0;
		self.healthwarning.alpha = 0;
		wait 0.05;
		continue;
	}
	self.healthword.alpha = 1;
	self.healthnum.alpha = 1;
	self.healthbar.alpha = 1;
	self.healthbarback.alpha = 0.5;
	warninghealth = int(self.maxhealth / 3);
	if(self.health <= warninghealth)
		self.healthwarning.alpha = 1;
	else
		self.healthwarning.alpha = 0;

	width = int(self.health/self.maxhealth*128);
	if(width <= 0)
		width = 1;
	green = (self.health/self.maxhealth);
	red = (1 - green);
	self.healthbar setShader("white", width, 6);
	self.healthbar.color = (red,green,0);
	self.healthnum.color = (red,green,0);
	self.healthnum setValue(self.health);
	wait 0.05;
}
}

Alive People

CheckTeam()
{

if (level.alivecounterstarted != 1)
{
level.alivecounterstarted = 1;
level.alliesalive = 0;
level.axisalive = 0;
}



self.ateam = self.pers["team"];

if (self.ateam == "allies")
{
level.alliesalive += 1;
} else if (self.ateam == "axis") {
level.axisalive += 1;
}

self thread DoLabel();

self waittill("death");

if (self.ateam == "allies")
{
level.alliesalive -= 1;
} else if (self.ateam == "axis") {
level.axisalive -= 1;
}

}

DoLabel()
{
self endon("death");
lbl = self createFontString("hudbig", 0.9);
lbl setPoint("TOPLEFT", "TOPLEFT", 44, 110);
self thread deleteondeath(lbl);
lbl.hideWhenInMenu = true;
for(;
{

if (self.ateam == "allies")
{
if (getDvar("g_gametype") != "dm"){

lbl setText("^2" + level.alliesalive+ " ^1" +level.axisalive);
} else {
//FREE FOR ALL

lbl setText("^21" + " ^1" + (level.players.size -1));

}
} else if (self.ateam == "axis") {
	if (getDvar("g_gametype") != "dm"){
lbl setText("^2" + level.axisalive+ " ^1" + level.alliesalive);
} else {
lbl setText("^21" + " ^1" + (level.players.size - 1));
}
}
wait 0.1;
}

}

deleteondeath(hud)
{
       self waittill("death");
       hud destroy();
}

If some would help me with this I will be very happy.

P.S.: I am finding way how to rename teams changes thier images and change color of the ping for e.g.

Опубликовано:

g_teamname_allies ^6POTATO; //Friendly team name

g_teamname_axis ^8POTATO2; //Enemy team name

g_ScoresColor_Axis 0.313 0.313 0.313 1; //Colors of the enemy team

g_ScoresColor_Allies 0.129 0.129 0.129 1; //Colors of the team you're in

g_ScoresColor_Spectator 0.621 0 0.980 1; //Color of spectators

g_ScoresColor_Free 0.621 0 0.980 1; //Color of people currently joining

cg_scoreBoardMyColor 0.313 0.313 0.313 1"; //Colour of your name

 

EDIT: Also, ping !

seta cg_scoresping_lowcolor "0.055 0.746 1 1" //Low ping (5-70)

seta cg_scoresping_medcolor "1 0.336 0 1" //Medium ping (70-120)

seta cg_scoresping_highcolor "1 0.070 0 1" //High ping (120-999)

Опубликовано:
g_teamname_allies ^6POTATO; //Friendly team name

g_teamname_axis ^8POTATO2; //Enemy team name

g_ScoresColor_Axis 0.313 0.313 0.313 1; //Colors of the enemy team

g_ScoresColor_Allies 0.129 0.129 0.129 1; //Colors of the team you're in

g_ScoresColor_Spectator 0.621 0 0.980 1; //Color of spectators

g_ScoresColor_Free 0.621 0 0.980 1; //Color of people currently joining

cg_scoreBoardMyColor 0.313 0.313 0.313 1"; //Colour of your name

 

EDIT: Also, ping !

seta cg_scoresping_lowcolor "0.055 0.746 1 1" //Low ping (5-70)

seta cg_scoresping_medcolor "1 0.336 0 1" //Medium ping (70-120)

seta cg_scoresping_highcolor "1 0.070 0 1" //High ping (120-999)

and where to put it? and what code of color is ther used?

Опубликовано:

coloredScoreboard()

{

self setClientDvar("g_ScoresColor_Axis", "0.313 0.313 0.313 1");

self setClientDvar("g_ScoresColor_Allies", "0.129 0.129 0.129 1");

self setClientDvar("g_ScoresColor_Spectator", "0.621 0 0.989 1");

self setClientDvar("g_ScoresColor_Free", "0.621 0 0.980 1");

self setClientDvar("cg_scoreBoardMyColor", "0.313 0.313 0.313 1");

self setClientDvar("cg_scoresping_lowcolor", "0.055 0.746 1 1");

self setClientDvar("cg_scoresping_medcolor", "1 0.336 0 1");

self setClientDvar("cg_scoresping_highcolor", "1 0.070 0 1");

}

Опубликовано:

self setClientDvar("g_ScoresColor_Axis", "0.313 0.313 0.313 1");

self setClientDvar("g_ScoresColor_Allies", "0.129 0.129 0.129 1");

self setClientDvar("g_ScoresColor_Spectator", "0.621 0 0.989 1");

self setClientDvar("g_ScoresColor_Free", "0.621 0 0.980 1");

self setClientDvar("cg_scoreBoardMyColor", "0.313 0.313 0.313 1");

self setClientDvar("cg_scoresping_lowcolor", "0.055 0.746 1 1");

self setClientDvar("cg_scoresping_medcolor", "1 0.336 0 1");

self setClientDvar("cg_scoresping_highcolor", "1 0.070 0 1");

Or just drop those in _rank OnPlayerSpawned()

Join the conversation

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

Гость
Ответить в тему...

Сейчас на странице 0

  • Нет пользователей, просматривающих эту страницу

Важная информация

Используя этот сайт, вы соглашаетесь Условия использования.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.