Raised This Month: $32 Target: $400
 8% 

Help me to add text here


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
da1000
Junior Member
Join Date: Apr 2020
Old 04-16-2020 , 12:55   Help me to add text here
Reply With Quote #1

Hi Guys
i have server cs 1.6
but i want add text here
see the pic

https://i.ibb.co/3MR5jSV/test.png

this data/lang/mod.txt
[en]
JBE_HUD_DAY_0 = Best JailBreak SV Welcome <3
JBE_HUD_DAY = Day %d,
JBE_HUD_DAY_WEEK_0 = Start the game
JBE_HUD_DAY_WEEK_1 = Monday
JBE_HUD_DAY_WEEK_2 = Tuesday
JBE_HUD_DAY_WEEK_3 = Wednesday
JBE_HUD_DAY_WEEK_4 = Thursday
JBE_HUD_DAY_WEEK_5 = Friday
JBE_HUD_DAY_WEEK_6 = Saturday
JBE_HUD_DAY_WEEK_7 = Sunday

JBE_HUD_GAME_MODE = Mode: %L %s
JBE_HUD_GAME_MODE_0 = Restart the game
JBE_HUD_GAME_MODE_1 = A typical day
JBE_HUD_GAME_MODE_2 = Free day
JBE_HUD_GAME_MODE_3 = Game day

JBE_HUD_CHIEF = Simon: %L%s
JBE_HUD_CHIEF_NOT = Not Assigned
JBE_HUD_CHIEF_ALIVE =
JBE_HUD_CHIEF_DEAD = Dead
JBE_HUD_CHIEF_DISCONNECT = Dead
JBE_HUD_CHIEF_FREE = Released

JBE_HUD_PRISONERS = [MaGic' LiFe]Prisoners: %d|%d
JBE_HUD_GUARD = [MaGic' LiFe]Guards : %d|%d

JBE_HUD_NOT_FREE =
JBE_HUD_HAS_FREE = ^n^nFree-Day:
JBE_HUD_NOT_WANTED =
JBE_HUD_HAS_WANTED = ^n^nWanted:


JBE_MENU_TEAM_TITLE = Team selection^n\dbalance: %d prisoners, 1 security guard
JBE_MENU_TEAM_PRISONERS = [MaGic' LiFe]Prisoners
JBE_MENU_TEAM_GUARDS = [MaGic' LiFe]Guards
JBE_MENU_TEAM_RANDOM = Random selection
JBE_MENU_TEAM_SPECTATOR = Spectator

------------------------
PLS help i want add text like in the picture

Last edited by da1000; 04-16-2020 at 13:02.
da1000 is offline
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 04-16-2020 , 14:07   Re: Help me to add text here
Reply With Quote #2

You need to edit the .sma file.
__________________
OciXCrom is offline
Send a message via Skype™ to OciXCrom
da1000
Junior Member
Join Date: Apr 2020
Old 04-16-2020 , 14:43   Re: Help me to add text here
Reply With Quote #3

how ?
da1000 is offline
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 04-16-2020 , 15:39   Re: Help me to add text here
Reply With Quote #4

Search for the "JBE_HUD_DAY" message in the code and add the text before it. Use ^n to move the text on a new line.
If you don't know how exactly - post the .sma file or the line that shows this message.
__________________

Last edited by OciXCrom; 04-16-2020 at 15:40.
OciXCrom is offline
Send a message via Skype™ to OciXCrom
da1000
Junior Member
Join Date: Apr 2020
Old 04-16-2020 , 17:57   Re: Help me to add text here
Reply With Quote #5

/* -> Переменные и массивы для дней и дней недели -> */
new g_iDay, g_iDayWeek;
new const g_szDaysWeek[][] =
{
"JBE_HUD_DAY_WEEK_0",
"JBE_HUD_DAY_WEEK_1",
"JBE_HUD_DAY_WEEK_2",
"JBE_HUD_DAY_WEEK_3",
"JBE_HUD_DAY_WEEK_4",
"JBE_HUD_DAY_WEEK_5",
"JBE_HUD_DAY_WEEK_6",
"JBE_HUD_DAY_WEEK_7"
};
da1000 is offline
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 04-16-2020 , 18:22   Re: Help me to add text here
Reply With Quote #6

That's not what I asked for. The language key is "JBE_HUD_DAY", not any of those. Find the correct line.

JBE_HUD_DAY = Day %d
__________________

Last edited by OciXCrom; 04-16-2020 at 18:25.
OciXCrom is offline
Send a message via Skype™ to OciXCrom
da1000
Junior Member
Join Date: Apr 2020
Old 04-17-2020 , 06:51   Re: Help me to add text here
Reply With Quote #7

in the sma i found only this ( JBE_HUD_DAY )
Quote:
public jbe_main_informer(pPlayer)
{
pPlayer -= TASK_SHOW_INFORMER;
set_hudmessage(255, 0, 0, g_fMainInformerPosX[pPlayer], g_fMainInformerPosY[pPlayer], 0, 0.0, 0.8, 0.2, 0.2, -1);
ShowSyncHudMsg(pPlayer, g_iSyncMainInformer, "%L %L^n%L^n%L^n%L^n%L%L%s%L%s", pPlayer, "JBE_HUD_DAY",
g_iDay, pPlayer, g_szDaysWeek[g_iDayWeek], pPlayer, "JBE_HUD_GAME_MODE", pPlayer, g_szDayMode, g_szDayModeTimer, pPlayer, "JBE_HUD_CHIEF",
pPlayer, g_szChiefStatus[g_iChiefStatus], g_szChiefName, pPlayer, "JBE_HUD_PRISONERS", g_iAlivePlayersNum[1], g_iPlayersNum[1],
pPlayer, "JBE_HUD_GUARD", g_iAlivePlayersNum[2], g_iPlayersNum[2], pPlayer, g_szFreeLang[g_iFreeLang], g_szFreeNames, pPlayer,
g_szWantedLang[g_iWantedLang], g_szWantedNames);
}
can you help me with this ?
da1000 is offline
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 04-17-2020 , 07:09   Re: Help me to add text here
Reply With Quote #8

I assume JBE_HUD_DAY_0 is the text you want to add.

Code:
public jbe_main_informer(pPlayer) {     pPlayer -= TASK_SHOW_INFORMER;     set_hudmessage(255, 0, 0, g_fMainInformerPosX[pPlayer], g_fMainInformerPosY[pPlayer], 0, 0.0, 0.8, 0.2, 0.2, -1);     ShowSyncHudMsg(pPlayer, g_iSyncMainInformer, "%L^n^n%L %L^n%L^n%L^n%L^n%L%L%s%L%s", pPlayer, "JBE_HUD_DAY_0", pPlayer, "JBE_HUD_DAY",     g_iDay, pPlayer, g_szDaysWeek[g_iDayWeek], pPlayer, "JBE_HUD_GAME_MODE", pPlayer, g_szDayMode, g_szDayModeTimer, pPlayer, "JBE_HUD_CHIEF",     pPlayer, g_szChiefStatus[g_iChiefStatus], g_szChiefName, pPlayer, "JBE_HUD_PRISONERS", g_iAlivePlayersNum[1], g_iPlayersNum[1],     pPlayer, "JBE_HUD_GUARD", g_iAlivePlayersNum[2], g_iPlayersNum[2], pPlayer, g_szFreeLang[g_iFreeLang], g_szFreeNames, pPlayer,     g_szWantedLang[g_iWantedLang], g_szWantedNames); }
__________________

Last edited by OciXCrom; 04-17-2020 at 07:09.
OciXCrom is offline
Send a message via Skype™ to OciXCrom
da1000
Junior Member
Join Date: Apr 2020
Old 04-17-2020 , 13:48   Re: Help me to add text here
Reply With Quote #9

thanks work 100%
but can make text down line
https://i.ibb.co/vzvw5nC/Sans-titrea.png
da1000 is offline
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 04-17-2020 , 13:56   Re: Help me to add text here
Reply With Quote #10

That's what you showed in the first picture. Simply remove one of the ^n symbols in the beginning.
__________________

Last edited by OciXCrom; 04-17-2020 at 13:56.
OciXCrom is offline
Send a message via Skype™ to OciXCrom
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 07:54.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode