Код за потвърждение: Избери целия код
new wavAllCvar[MAX_TXT_LEN] = "misc/headshot"
new wavVicCvar[MAX_TXT_LEN] = "misc/ow"
Код за потвърждение: Избери целия код
new wavKilCvar[MAX_TXT_LEN] = "barney/ba_gotone"
/* Sizes of random sounds lists */
#define VIC_MAX 12
#define KIL_MAX 17
/* To Store last Random message */
/* and avoid to send twice a sound */
new lastMsgKil = -1
new lastMsgVic = -1
/* Random sounds for FUN version */
new listKilWav[KIL_MAX][] = {
"barney/ba_another",
"barney/ba_buttugly",
"barney/ba_close",
"barney/ba_endline",
"barney/ba_firepl",
"barney/ba_iwish",
"barney/ba_later",
"barney/ba_seethat",
"barney/beertopside",
"barney/c1a4_ba_octo1",
"barney/checkwounds",
"barney/diebloodsucker",
"barney/realbadwound",
"barney/somethingdied",
"barney/somethingstinky",
"barney/stench",
"scientist/perfectday"
}
new listVicWav[VIC_MAX][] = {
"barney/ba_dotoyou",
"barney/ba_uwish",
"barney/bigmess",
"barney/c1a2_ba_4zomb",
"barney/cantfigure",
"barney/dontbuyit",
"barney/guyresponsible",
"barney/hitbad",
"barney/imdead",
"barney/iwaithere",
"fvox/flatline",
"scientist/recalculate"
}
Код за потвърждение: Избери целия код
public set_french () {
langVersion = 1
copy ( titleMotd ,29 ," HEADSHOT : Classement" )
copy ( textSup50 ,24 ,"Incroyable !!!" )
copy ( textSup20 ,24 ,"Bravo !!!" )
copy ( textSup10 ,24 ,"Bien Joue !!!" )
copy ( textSup1 ,24 ,"" )
copy ( textFirst ,24 ,"Premier Headshot" )
copy ( textHS ,24 ,"Headshots" )
copy ( textRank ,24 ,"Classement :" )
copy ( textFrags ,24 ,"Frags" )
copy ( noHeadshot,49 ,"Pas de Headshot, essayer plus tard" )
return PLUGIN_CONTINUE
}
public set_espagnol () {
langVersion = 2
copy ( titleMotd ,29 ," HEADSHOT : Clasificacion" )
copy ( textSup50 ,24 ,"increible !!!" )
copy ( textSup20 ,24 ,"Bravo !!!" )
copy ( textSup10 ,24 ,"Bien jugado !!!" )
copy ( textSup1 ,24 ,"" )
copy ( textFirst ,24 ,"Tu primero Headshot" )
copy ( textHS ,24 ,"Headshots" )
copy ( textRank ,24 ,"clasificacion :" )
copy ( textFrags ,24 ,"Frags" )
copy ( noHeadshot,49 ,"No hay Headshot, intentar mas tarde" )
return PLUGIN_CONTINUE
}
public set_portugues () {
langVersion = 3
copy ( titleMotd ,29 ," HEADSHOT : Classificaзao" )
copy ( textSup50 ,24 ,"So visto !!!" )
copy ( textSup20 ,24 ,"Bravo !!!" )
copy ( textSup10 ,24 ,"Boa !!!" )
copy ( textSup1 ,24 ,"" )
copy ( textFirst ,24 ,"O teu primeiro Headshot" )
copy ( textHS ,24 ,"Headshots" )
copy ( textRank ,24 ,"classificacao :" )
copy ( textFrags ,24 ,"Frags" )
copy ( noHeadshot,49 ,"Nao houve Headshot, tentar mais tarde" )
return PLUGIN_CONTINUE
}
public set_german () {
langVersion = 4
copy ( titleMotd ,29 ," HEADSHOT : Rangliste" )
copy ( textSup50 ,24 ,"Unglaublich !!!" )
copy ( textSup20 ,24 ,"Klasse !!!" )
copy ( textSup10 ,24 ,"Gute Arbeit !!!" )
copy ( textSup1 ,24 ,"" )
copy ( textFirst ,24 ,"Dein erster Headshot" )
copy ( textHS ,24 ,"Headshots" )
copy ( textRank ,24 ,"Rang :" )
copy ( textFrags ,24 ,"Frags" )
copy ( noHeadshot,49 ,"Kein Headshot, versuchs spater" )
return PLUGIN_CONTINUE
}
Код за потвърждение: Избери целия код
else if ( containi ( param , "eng" ) > -1 ) {
set_english ()
client_print(id,print_chat,"* Activation Headshot DeluXe ENG" )
public show_lang ( id ) {
new text[MAX_TXT_LEN]
if ( langVersion == 0 )
copy ( text , MAX_TXT_LEN_1 , "* This server is using AMXmodX plugin : Headshot DeluXe" )
else
copy ( text , MAX_TXT_LEN_1 , "* This server is using AMXmodX plugin : Headshot DeluXe" )
if ( funVersion == 1 )
add ( text , MAX_TXT_LEN_1 , " (FUN)" )
Код за потвърждение: Избери целия код
public set_language ( id , level, cid ) {
if (!cmd_access(id,level,cid,2))
return PLUGIN_HANDLED
new param[10]
read_argv(1,param,9)
if ( containi ( param , "fr" ) > -1 ) {
set_french ()
client_print(id,print_chat,"* Activation Headshot DeluXe FR" )
}
}
else if ( containi ( param , "esp" ) > -1 ) {
set_espagnol ()
client_print(id,print_chat,"* Activacion Headshot DeluXe ESP" )
}
else if ( containi ( param , "port" ) > -1 ) {
set_portugues ()
client_print(id,print_chat,"* Activacao Headshot DeluXe PORT" )
}
else if ( containi ( param , "ger" ) > -1 ) {
set_german ()
client_print(id,print_chat,"* Aktivierung Headshot DeluXe GER" )
}
else {
set_english ()
client_print(id,print_chat,"* Activation Headshot DeluXe ENG ( Default )" )
}
return PLUGIN_HANDLED_MAIN
}
public show_lang ( id ) {
new text[MAX_TXT_LEN]
if ( langVersion == 0 )
copy ( text , MAX_TXT_LEN_1 , "* This server is using AMXmodX plugin : Headshot DeluXe" )
else if ( langVersion == 1 )
copy ( text , MAX_TXT_LEN_1 , "* Ce serveur utilise le plugin AMXmodX : Headshot DeluXe" )
else if ( langVersion == 2 )
copy ( text , MAX_TXT_LEN_1 , "* Este servidor utiliza el plugin AMXmodX : Headshot DeluXe" )
else if ( langVersion == 3 )
copy ( text , MAX_TXT_LEN_1 , "* Este servidor utiliza o plugin AMXmodX : Headshot DeluXe" )
else if ( langVersion == 4 )
copy ( text , MAX_TXT_LEN_1 , "* Dieser server benutzt das plugin AMXmodX : Headshot DeluXe" )