Перейти к содержимому
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.
Опубликовано:

Hey, this is a small gsc mod!

You can configure:

- Welcome message (3 lines, icon and sound)

- Stupid Bots

- Custom XP scale

- Colored XP pupup

- Text scroll line

 

Simply open up the iwd and configure the values on the top of the rank.gsc (should be self explanatory):

//Welcome Message
level.message_text1 = "^5Welcome ^6to ^7server ^8BLAH!";	//Message line 1, leave blank for none!
level.message_text2 = "Line 2";								//Message line 2, leave blank for none!
level.message_text3 = "Line 3";								//Message line 3, leave blank for none!
level.message_icon = "cardicon_prestige10_02";				//Message Icon, leave blank for none!
level.message_sound = "mp_defeat";							//Message Sound, leave blank for none!
level.message_glow = (0.0, 0.0, 0.0);						//Message glow color (use RGB values devided by 255)!

//Bots
level.bots = 3;												//Amount of stupid bots you want to spawn!

//Custom XP scale
level.xpScale = 4;											//Custom XP scaler. Any value higher than 4 will not save the playerstats!

//Colored XP popup
level.popcolor = 1;											//0 for normal yellow XP popup color, 1 for random RGB color!

//Scroll line
level.scrollline = 1;
level.scrolltxt = "^1Example scroll text! ^3Subscribe to ^5youtube.com/^2TheMomo5502 ^7!";

 

Post anything you want me to add to this mod

 

Download: z_svr_welcome.iwd

 

00F81FEC71AEB6D92EBFFB6C92DE2D46513BD568

3678A1F06CE2F9D9406EB87AC61328CD9CFDC5BB

 

 

This mod is not compatible with any other mods that use _rank.gsc as base!

 

Credit goes to TheFallen for the colored XP popup!

Credit goes to Apadayo for the scrollline!

Featured Replies

Опубликовано:
Why use rank.gsc as base?

I modified the score popup, and as the orginial code is in rank, i modified this gsc!

 

Hey was the code came from my mod? It's pretty much just as what I had in my mod... Survivors-coop-zombies

 

This is the code that makes this thing display in the screen:


IntroInfo()
{
if( !isDefined( self.doneIntro ) && !self.doneIntro )
{
	Title = "^3Survivors ^1Coop ^2Zombies";
	Creator = "^2Created by Ghilllie";
	Player = "Welcome " + self.name;
	Icon = "cardcion_prestige10";
	Icon2 = undefined;
	glowColor = ( 0.25,0.5,0.35 );
	Sound = "";maps\mp\gametypes\_teams::getTeamWinMusic( "allies" );
	duration = 10;
	self thread Introductory( Title, Creator, Player, Icon, Icon2, glowColor, Sound, duration );
	self.doneIntro = true;
}
}

Introductory( titleText, notifyText, notifyText2, iconName, iconOverlay, glowColor, sound, duration )
{
notifyData = spawnstruct();
notifyData.titleText = titleText;
notifyData.notifyText = notifyText;
notifyData.notifyText2 = notifyText2;
notifyData.iconName = "cardicon_prestige10";
notifyData.iconOverlay = iconOverlay;
notifyData.glowColor = glowColor;
notifyData.sound = sound;
notifyData.duration = duration;
notifyData.slot = 0;
self maps\mp\gametypes\_hud_message::notifyMessage( notifyData );
}

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

It shows the message every round in SnD which is quite annoying (not sure about other round-based gametypes), as the game calls the onplayerconnect thread everytime a new round begins.

 

Add something like this onplayerconnect(); (you actually can't use a normal self.babla or player.blabla variable. It will get re-initalized every round start, i posted something about that earlier in the old aiw-days...):

 

		if ( !isDefined( player.pers["splash_done"] ) )
		player.pers["splash_done"] = 0;

	if ( isDefined(player.pers["splash_done"]) && player.pers["splash_done"] != 1 ) {
		player thread doSplash();
		player.pers["splash_done"] = 1;
	}		

Опубликовано:
  • Автор
Hey was the code came from my mod? It's pretty much just as what I had in my mod... Survivors-coop-zombies

Well, I never tried out you mod, but the code i used is quite popular, so no I didn't use yours!

Опубликовано:
Hey was the code came from my mod? It's pretty much just as what I had in my mod... Survivors-coop-zombies

Well, I never tried out you mod, but the code i used is quite popular, so no I didn't use yours!

 

popular huh? never seen a mod with a 3 line of text + a logo below without customizing it...

Опубликовано:
  • Автор

It is popular, i got it from here (code number [C033]), and used it in my private patch years ago, but look on youtube, you can find tons of patches that use this type of welcome message and code, it's not yours!

 

Edit: Some examples:

 

  • 5 months later...
Опубликовано:

well what I was looking for.

thank you!!!

Опубликовано:
Hey, this is a small gsc mod!

You can configure:

- Welcome message (3 lines, icon and sound)

- Stupid Bots

- Custom XP scale

- Colored XP pupup

- Text scroll line

 

//Custom XP scale

level.xpScale = 4; //Custom XP scaler. Any value higher than 4 will not save the playerstats!

 

 

have to add some command in server.cfg for "xp scale" work?

Join the conversation

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

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

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

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

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

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

Account

Navigation

Поиск

Поиск

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.