del fb ban

Forumas skirtas spręsti problemas iškilusias su CS 1.6 serveriais.
Post Reply
User avatar
neris111
Flooderis arba specialistas
Posts: 501
Joined: 2015 Jan 13 15:17
Skype: neris14

del fb ban

Post by neris111 »

Sveiki,tik dabar pastebejau baninant zaideja raso prie radaro Fb: Player [qwer] lenght [1 ML_NOTFOUND: TIME_ELEMENT_YEAR] reason [AimBot] ,kas negerai gali buti txt failai yra?

-- Ant Gru 12, 2017 10:03 pm --

o puslapije kaip ir gerai atvaizduoje bana.

User avatar
popilas
Gana aktyvus vartotojas
Posts: 400
Joined: 2017 Apr 04 11:44
Location: Alytus

Re: del fb ban

Post by popilas »

kokia kalba padaryta?
PATYLĖK!!! Bent protingesnis atrodysi :)

Terror
Senbūvis
Posts: 1086
Joined: 2015 Feb 27 19:29
Location: Alytus

Re: del fb ban

Post by Terror »

Taigi raso jog TIME_ELEMENT_YEARS pasitikrink .txt ar tikrai yra toks.

User avatar
rimtas7
Gana aktyvus vartotojas
Posts: 265
Joined: 2013 Feb 28 20:05

Re: del fb ban

Post by rimtas7 »

Kalbant dėl FB kodėl kai gauna bana ant vieno serverio kitam servery nėra to bano. Kai buvo Amxbans tai gaudavo ant visu bana.
///AMG

User avatar
laimiukas3
Moderatorius
Posts: 4570
Joined: 2012 Aug 03 01:12
Skype: laimiukas3
Location: Vilnius
Contact:

Re: del fb ban

Post by laimiukas3 »

rimtas7 wrote:Kalbant dėl FB kodėl kai gauna bana ant vieno serverio kitam servery nėra to bano. Kai buvo Amxbans tai gaudavo ant visu bana.
patarciaunaudot cs bans 1.4 ten yra konfig kad nustatyti bendrus ban.
Image
Image
Image

User avatar
neris111
Flooderis arba specialistas
Posts: 501
Joined: 2015 Jan 13 15:17
Skype: neris14

Re: del fb ban

Post by neris111 »

Nu kaip tikrinau jai gauni bana vienam uzsideda visuose nors taip pas mane,o dabar reik Laimi pakrutinti kaip sound ideti kaip gauna bana zinau zinai:)))

User avatar
laimiukas3
Moderatorius
Posts: 4570
Joined: 2012 Aug 03 01:12
Skype: laimiukas3
Location: Vilnius
Contact:

Re: del fb ban

Post by laimiukas3 »

Kodas: Select all

#include <amxmodx> forward fbans_player_banned_pre(id, userid) new g_sound[190]new bool:is_mp3_soundnew g_cvar_spk_all public plugin_precache(){       new filepatch[256]   formatex(filepatch, charsmax(filepatch), "addons/amxmodx/configs/fb/ban_sound.ini")    if(file_exists(filepatch))   {      new buffer[190], txtlen      read_file(filepatch,0,buffer,charsmax(buffer),txtlen);      trim(buffer)      formatex(g_sound, charsmax(g_sound), buffer)             if (equal(g_sound[strlen(g_sound)-4], ".mp3"))      {         format(g_sound, charsmax(g_sound), "sound/%s", g_sound)         precache_generic(g_sound)         is_mp3_sound = true      }      else      {         precache_sound(g_sound)         is_mp3_sound = false      }   }} public plugin_init(){   g_cvar_spk_all = register_cvar("fb_sound_ban_spk_all", "1")} public fbans_player_banned_pre(id, userid){   PlayMusic(id)} public PlayMusic(id){   if( get_pcvar_num(g_cvar_spk_all) )   {      if(is_mp3_sound)         client_cmd(0, "mp3 play ^"sound/%s^"", g_sound)      else         client_cmd(0, "spk ^"%s^"", g_sound)   }   else   {      if(is_mp3_sound)         client_cmd(id, "mp3 play ^"sound/%s^"", g_sound)      else         client_cmd(id, "spk ^"%s^"", g_sound)   }}
sukeres
/fb/ban_sound.ini
irasyk ten

ambience/alarm1.wav
Image
Image
Image

User avatar
neris111
Flooderis arba specialistas
Posts: 501
Joined: 2015 Jan 13 15:17
Skype: neris14

Re: del fb ban

Post by neris111 »

Dekingas veikia.

User avatar
laimiukas3
Moderatorius
Posts: 4570
Joined: 2012 Aug 03 01:12
Skype: laimiukas3
Location: Vilnius
Contact:

Re: del fb ban

Post by laimiukas3 »

supaprastinau.

Kodas: Select all

#include <amxmodx>

native rg_send_audio(const index, const sample[], const pitch = PITCH_NORM);
forward fbans_player_banned_pre(id, userid)

public fbans_player_banned_pre(id, userid)
{   
	if(is_user_connected(id))
	rg_send_audio(0, "sound/ambience/alarm1.wav");
}
Image
Image
Image

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests