Перейти к содержимому
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

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

I sent a message to DUKIP since I never got an answer in this thread. He gave me this code, but I dont know what to do with it or where to add it. Can anybody help me with this?

 

    //Bar Text
   level.infotext = NewHudElem();
   level.infotext.alignX = "center";
   level.infotext.alignY = "bottom";
   level.infotext.horzAlign = "center";
   level.infotext.vertAlign = "bottom";
   level.infotext.y = 33;
   level.infotext.foreground = true;
   level.infotext.fontScale = 0.85;
   level.infotext.font = "objective";
   level.infotext.alpha = 1;
   level.infotext.color = ( 1.0, 1.0, 1.0 );
   //Bar
   level.bar = level createServerBar((0, 0, 0), 1000, 15);
   level.bar.alignX = "center";
   level.bar.alignY = "bottom";
   level.bar.horzAlign = "center";
   level.bar.vertAlign = "bottom";
   level.bar.y = 35;
   level.bar.foreground = true;
   level.bar.HideWhenInMenu = true;
}

 

onplayeronconnect:

 

    level.infotext setText("DUKIP IS AWESOME");
   level.infotext.HideWhenInMenu = true; 

 

Edit: Sorry for the double post btw.

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

All this goes in _rank.gsc btw, if you don't have it look at zombiefan564's thread of MW2 Raw/GSC files

Textyyy()
{
   level.infotext setText("DUKIP IS AWESOME");
   level.infotext.HideWhenInMenu = true;
}

 

TextInfo()
{
   //Bar Text
   level.infotext = NewHudElem();
   level.infotext.alignX = "center";
   level.infotext.alignY = "bottom";
   level.infotext.horzAlign = "center";
   level.infotext.vertAlign = "bottom";
   level.infotext.y = 33;
   level.infotext.foreground = true;
   level.infotext.fontScale = 0.85;
   level.infotext.font = "objective";
   level.infotext.alpha = 1;
   level.infotext.color = ( 1.0, 1.0, 1.0 );
   //Bar
   level.bar = level createServerBar((0, 0, 0), 1000, 15);
   level.bar.alignX = "center";
   level.bar.alignY = "bottom";
   level.bar.horzAlign = "center";
   level.bar.vertAlign = "bottom";
   level.bar.y = 35;
   level.bar.foreground = true;
   level.bar.HideWhenInMenu = true;
}

 

onPlayerConnect add this to the bottom of the for(;;)

player thread Textyyy();

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

._. I'm sorry that I'm a total noob in this.

Anyway this is what i get:

 

File Handles:
[ 17509] handle 1: console_mp.log
[ 17510] ----------------------
[ 17511] 63694 files in iwd files
[ 17587] Unloaded fastfile dlc2_ui_mp
[ 17587] Unloaded fastfile dlc1_ui_mp
[ 17588] Loading fastfile mp_checkpoint
[ 18647] Waited 1049 msec for asset 'maps/mp/mp_checkpoint.d3dbsp' of type 'col_map_mp'.
[ 18647] ------- Game Initialization -------
[ 18648] gamename: IW4
[ 18648] gamedate: Jan 14 2010
[ 18818] 
[ 18819] ******* script compile error *******
[ 18819] Howdy there, fella' - it seems you made a mistake!
[ 18819] Error: uninitialised variable 'player' at file maps/mp/gametypes/_rank.gsc, line 8:
player thread Textyyy();
[ 18820] *
[ 18821] ************************************
[ 19585] ********************
ERROR: script compile error
uninitialised variable 'player'
maps/mp/gametypes/_rank.gsc
(see console for actual details)

Опубликовано:
._. I'm sorry that I'm a total noob in this.

Anyway this is what i get:

 

File Handles:
[ 17509] handle 1: console_mp.log
[ 17510] ----------------------
[ 17511] 63694 files in iwd files
[ 17587] Unloaded fastfile dlc2_ui_mp
[ 17587] Unloaded fastfile dlc1_ui_mp
[ 17588] Loading fastfile mp_checkpoint
[ 18647] Waited 1049 msec for asset 'maps/mp/mp_checkpoint.d3dbsp' of type 'col_map_mp'.
[ 18647] ------- Game Initialization -------
[ 18648] gamename: IW4
[ 18648] gamedate: Jan 14 2010
[ 18818] 
[ 18819] ******* script compile error *******
[ 18819] Howdy there, fella' - it seems you made a mistake!
[ 18819] Error: uninitialised variable 'player' at file maps/mp/gametypes/_rank.gsc, line 8:
player thread Textyyy();
[ 18820] *
[ 18821] ************************************
[ 19585] ********************
ERROR: script compile error
uninitialised variable 'player'
maps/mp/gametypes/_rank.gsc
(see console for actual details)

 

did you call it onplayerconect() ?

Опубликовано:
Put it at the very bottom of the _rank.gsc away from any blocks. And more importantly do not put it in something that has }, it has to be a completely empty area.

 

 

WHY DOES EVERYONE murder _rank.gsc

 

ffs just make a new .gsc so its not so clutteredmegusta.png

Опубликовано:
Put it at the very bottom of the _rank.gsc away from any blocks. And more importantly do not put it in something that has }, it has to be a completely empty area.

 

 

WHY DOES EVERYONE murder _rank.gsc

 

ffs just make a new .gsc so its not so clutteredmegusta.png

Who cares it's a damn GSC and it's already cluster fucked anyway dumb.png

Опубликовано:
doTextScroll()
{
   self endon ( "disconnect" );
   displayText = self createFontString( "default", 1.4 );
displayText2 = self createFontString( "default", 1.4 );
displayText3 = self createFontString( "default", 1.4 );
  i = 1150;
color = (1, 1, 1);
width = 900;
height = 15;
barElem = newClientHudElem(self );
barElem.x = -45 ;
barElem.y = 335;
barElem.frac = 0;
barElem.color = color;
barElem.sort = -2;
barElem.hidden = false;
barElemBG = newClientHudElem( self ); 
barElemBG.elemType = "bar";
barElemBG.width = width;
barElemBG.height = height;
barElemBG.xOffset = -45;
barElemBG.yOffset = 335;
barElemBG.bar = barElem;
barElemBG.children = [];
barElemBG.sort = -3;
barElemBG.color = (0,0,0);
barElemBG.alpha = 0.5;
barElemBG setParent( level.uiParent );
barElemBG setShader( "progress_bar_bg", width + 4, height + 4 );
barElemBG.hidden = false;
barElemBG setPoint( "CENTER", "TOP", 0, 460);
   for( ;; )
   {
       if(i < -3900) {
           i = 1150;
       }
   		displayText setPoint( "CENTER", "TOP", i, 460);
	//displayText2 setPoint( "CENTER", "TOP", i+1520, 460);
	//displayText3 setPoint( "CENTER", "TOP", i+2905, 460);    
	displayText setText("textttt ");
	//displayText2 setText(" ^textttt ");
	//displayText3 setText("textttt");
//text 2 and 3 are if you need more lines
       wait .01;
	i -= 2.5;
   }
}

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.