the most fascinating is your fantastic music choice :) i like it
Printable View
the most fascinating is your fantastic music choice :) i like it
https://www.youtube.com/watch?v=kztAvgm4CNE
Edit: damn, never looked at the clip... fcking hipster :P
Guess im a hipster now...
You can just rename or kick people with the same name. E.g. a loop which is constantly checking for same names (using a []-hashmap and checking if the name/key isDefined() already). Maybe somebody knows such script and can post here. It should track the time of the names, so the new names get kicked and not the old.
Well i'v been working on a way to alert players why they were kicked when having a duplicate name.
I'm trying to create a custom kick message using stock localized strings for language reasons.
I'v managed to do this:
Attachment 787
As you can see - "&&1" is showing. I know how to set/use the "&&1" with iprintln/iprintlnbold but not menus.Code:itemDef
{
name line1
//text "Server Disconnected - Player kicked."
text "@EXE_SERVERDISCONNECTREASON"
//type ITEM_TYPE_MULTI
textfont UI_FONT_NORMAL
textscale .25
style UI_BUTTON_STYLE
textstyle UI_BUTTON_TEXT_STYLE
rect 65 37 100 15
textalign 1
textalignx 51 // center
textaligny 11
decoration
backcolor UI_BUTTON_BACK_COLOR
forecolor UI_BUTTON_TEXT_COLOR
visible 1
dvar "serv_kicked"
//dvarFloatList { "@EXE_PLAYERKICKED" 0 }
}
I'v tried using "dvarFloatList" but it produced:
Attachment 788
Text is no longer centered and "&&1" still shows.Code:itemDef
{
name line1
//text "Server Disconnected - Player kicked."
text "@EXE_SERVERDISCONNECTREASON"
type ITEM_TYPE_MULTI
textfont UI_FONT_NORMAL
textscale .25
style UI_BUTTON_STYLE
textstyle UI_BUTTON_TEXT_STYLE
rect 65 37 100 15
textalign 1
textalignx 51 // center
textaligny 11
decoration
backcolor UI_BUTTON_BACK_COLOR
forecolor UI_BUTTON_TEXT_COLOR
visible 1
dvar "serv_kicked"
dvarFloatList { "@EXE_PLAYERKICKED" 0 }
}
So with menus how can I use localized strings that have "&&1"?
without loc strings:
look into the extreme mod (_ex_security.gsc)
PHP Code:
player setClientCvar( "com_errortitle" , "Kicked!" );
player setClientCvar( "com_errormessage" , "You've been kicked for bla" );
Yeah I know I can do it easily without loc strings but i'm trying to use loc strings so it is translated properly for those who use different languages. Is it not possible?
Also updated previous post with more info
EDIT: Should clarify - I know there are other ways to alert players why they were kicked but i'm hoping this method will work so I can use it for other things.
You should try and use my translation engine for libcod to do that... Translations are stored serverside for easy updating, it supports 16 different languages and 1k items per language, all of which can be upped manually in the sourcecode of libcod.