Skocz do zawartości

Witamy w Nieoficjalnym polskim support'cie AMX Mod X

Witamy w Nieoficjalnym polskim support'cie AMX Mod X, jak w większości społeczności internetowych musisz się zarejestrować aby móc odpowiadać lub zakładać nowe tematy, ale nie bój się to jest prosty proces w którym wymagamy minimalnych informacji.
  • Rozpoczynaj nowe tematy i odpowiedaj na inne
  • Zapisz się do tematów i for, aby otrzymywać automatyczne uaktualnienia
  • Dodawaj wydarzenia do kalendarza społecznościowego
  • Stwórz swój własny profil i zdobywaj nowych znajomych
  • Zdobywaj nowe doświadczenia

Dołączona grafika Dołączona grafika

Guest Message by DevFuse
 

Zdjęcie

Problem HLTV wywalanie


  • Nie możesz napisać tematu
  • Zaloguj się, aby dodać odpowiedź
7 odpowiedzi w tym temacie

#1 SmokeW33D

    Życzliwy

  • Użytkownik

Reputacja: 3
Nowy

  • Postów:27
  • Imię:Damian
  • Lokalizacja:Przemyśl
Offline

Napisano 27.12.2013 09:28

Witam mam problem z hltv przez plugin c4.amxx .

Modyfikowany przez'e mnie.Jest przerobiony na licznik dhud.

SMA:

#include <dhudmessage>
#include <amxmodx>
#include <csx>
 
#define PLUGIN "Bomb Countdown HUD Timer"
#define VERSION "0.2"
#define AUTHOR "SAMURAI edited by [Veritas de Santare]" 
 
new g_c4timer, pointnum;
new bool:b_planted = false;

 
 
public plugin_init()
{
	register_plugin(PLUGIN,VERSION,AUTHOR);
 
	pointnum = get_cvar_pointer("mp_c4timer");
 
	register_logevent("newRound", 2, "1=Round_Start");
	register_logevent("endRound", 2, "1=Round_End");
	register_logevent("endRound", 2, "1&Restart_Round_");

	
}
 
public newRound()
{
	g_c4timer = -1;
	remove_task(652450);
	b_planted = false;
}
 
public endRound()
{
	g_c4timer = -1;
	remove_task(652450);
}
 
public bomb_planted()
{
	b_planted = true;
	g_c4timer = get_pcvar_num(pointnum);
	dispTime()
	set_task(1.0, "dispTime", 652450, "", 0, "b");
}
 
public bomb_defused()
{
	if(b_planted)
	{
		remove_task(652450);
		b_planted = false;
	}
    
}
 
public bomb_explode()
{
	if(b_planted)
	{
		remove_task(652450);
		b_planted = false;
	}
	
}
 
public dispTime()
{   
	if(!b_planted)
	{
		remove_task(652450);
		return;
	}
        
 
	if(g_c4timer >= 0)
	{

		set_dhudmessage(150, 0, 0, 0.04, 0.17, 1, 1.0, 1.0, 0.01, 0.01, true);
 
		show_dhudmessage(0, "C4: %d", g_c4timer);
 
		--g_c4timer;
	}
  
} 
/* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE
*{\\ rtf1\\ ansi\\ deff0{\\ fonttbl{\\ f0\\ fnil Tahoma;}}\n\\ viewkind4\\ uc1\\ pard\\ lang1033\\ f0\\ fs16 \n\\ par }
*/

Wg. mnie brakuje czegoś takiego : 

 
if(!is_user_connected(i) || is_user_bot(i) || is_user_hltv(i)) continue; tylko ze nie wiem jak to zapisać ;D
 
Proszę o pomoc

Użytkownik SmokeW33D edytował ten post 27.12.2013 09:29

  • +
  • -
  • 0

#2 swirek92

    Początkujący

  • Użytkownik

Reputacja: 0
Nowy

  • Postów:11
  • Lokalizacja:Katowice
Offline

Napisano 27.12.2013 15:45

#include <amxmodx>
#include <csx>

#define PLUGIN "c4"
#define VERSION "0.2"
#define AUTHOR "SAMURAI"

new g_c4timer, pointnum;
new bool:b_planted = false;

new g_msgsync;


public plugin_init()
{
register_plugin(PLUGIN,VERSION,AUTHOR);

pointnum = get_cvar_pointer("mp_c4timer");

register_logevent("newRound", 2, "1=Round_Start");
register_logevent("endRound", 2, "1=Round_End");
register_logevent("endRound", 2, "1&Restart_Round_");

g_msgsync = CreateHudSyncObj();
}

public newRound()
{
g_c4timer = -1;
remove_task(652450);
b_planted = false;
}

public endRound()
{
g_c4timer = -1;
remove_task(652450);
}

public bomb_planted()
{
b_planted = true;
g_c4timer = get_pcvar_num(pointnum);
dispTime()
set_task(1.0, "dispTime", 652450, "", 0, "b");
}

public bomb_defused()
{
if(b_planted)
{
remove_task(652450);
b_planted = false;
}

}

public bomb_explode()
{
if(b_planted)
{
remove_task(652450);
b_planted = false;
}

}

public dispTime()
{
if(!b_planted)
{
remove_task(652450);
return;
}


if(g_c4timer >= 0)
{
if(g_c4timer > 37) set_hudmessage(28, 134, 238, -1.0, 0.60, 0, 1.0, 1.0, 0.01, 0.01, -1);
else if(g_c4timer > 34) set_hudmessage(0, 238, 0, -1.0, 0.60, 0, 1.0, 1.0, 0.01, 0.01, -1);
else if(g_c4timer > 31) set_hudmessage(238, 154, 0, -1.0, 0.60, 0, 1.0, 1.0, 0.01, 0.01, -1);
else if(g_c4timer > 28) set_hudmessage(28, 134, 238, -1.0, 0.60, 0, 1.0, 1.0, 0.01, 0.01, -1);
else if(g_c4timer > 25) set_hudmessage(0, 238, 0, -1.0, 0.60, 0, 1.0, 1.0, 0.01, 0.01, -1);
else if(g_c4timer > 22) set_hudmessage(238, 154, 0, -1.0, 0.60, 0, 1.0, 1.0, 0.01, 0.01, -1);
else if(g_c4timer > 19) set_hudmessage(28, 134, 238, -1.0, 0.60, 0, 1.0, 1.0, 0.01, 0.01, -1);
else if(g_c4timer > 17) set_hudmessage(0, 238, 0, -1.0, 0.60, 0, 1.0, 1.0, 0.01, 0.01, -1);
else if(g_c4timer > 14) set_hudmessage(238, 154, 0, -1.0, 0.60, 0, 1.0, 1.0, 0.01, 0.01, -1);
else if(g_c4timer > 11) set_hudmessage(28, 134, 238, -1.0, 0.60, 0, 1.0, 1.0, 0.01, 0.01, -1);
else if(g_c4timer > 9) set_hudmessage(0, 238, 0, -1.0, 0.60, 0, 1.0, 1.0, 0.01, 0.01, -1);
else if(g_c4timer > 7) set_hudmessage(238, 154, 0, -1.0, 0.60, 0, 1.0, 1.0, 0.01, 0.01, -1);
else if(g_c4timer > 4) set_hudmessage(28, 134, 238, -1.0, 0.60, 0, 1.0, 1.0, 0.01, 0.01, -1);
else set_hudmessage(255, 0, 0, -1.0, 0.60, 0, 1.0, 1.0, 0.01, 0.01, -1);

ShowSyncHudMsg(0, g_msgsync, "|=================|^n| C4 wy***ie Za: %d |^n|=================|", g_c4timer);

--g_c4timer;
}

}
/* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE
*{\\ rtf1\\ ansi\\ deff0{\\ fonttbl{\\ f0\\ fnil Tahoma;}}\n\\ viewkind4\\ uc1\\ pard\\ lang1033\\ f0\\ fs16 \n\\ par }
*/

daj to, powinno pomoc ;)


Użytkownik swirek92 edytował ten post 27.12.2013 15:46

  • +
  • -
  • 0

#3 0-0-0

    ● 600 punktów ostrzeżeń

  • Power User

Reputacja: 222
Profesjonalista

  • Postów:599
  • Imię:___
  • Lokalizacja:___
Offline

Napisano 27.12.2013 15:49

Sprawdź:

#include <dhudmessage>
#include <amxmodx>
#include <csx>
 
#define PLUGIN "Bomb Countdown HUD Timer"
#define VERSION "0.2"
#define AUTHOR "SAMURAI edited by [Veritas de Santare]" 
 
new g_c4timer, pointnum;
new bool:b_planted = false;
 
 
 
public plugin_init()
{
register_plugin(PLUGIN,VERSION,AUTHOR);
 
pointnum = get_cvar_pointer("mp_c4timer");
 
register_logevent("newRound", 2, "1=Round_Start");
register_logevent("endRound", 2, "1=Round_End");
register_logevent("endRound", 2, "1&Restart_Round_");
 
 
}
 
public newRound()
{
g_c4timer = -1;
remove_task(652450);
b_planted = false;
}
 
public endRound()
{
g_c4timer = -1;
remove_task(652450);
}
 
public bomb_planted()
{
for(new i=1; i<=MAX; i++)
{
if(is_user_bot(i) || is_user_hltv(i))
return PLUGIN_HANDLED
}
b_planted = true;
g_c4timer = get_pcvar_num(pointnum);
dispTime()
set_task(1.0, "dispTime", 652450, "", 0, "b");
}
 
public bomb_defused()
{
if(b_planted)
{
remove_task(652450);
b_planted = false;
}
    
}
 
public bomb_explode()
{
if(b_planted)
{
remove_task(652450);
b_planted = false;
}
 
}
 
public dispTime()
{   
if(!b_planted)
{
remove_task(652450);
return;
}
        
 
if(g_c4timer >= 0)
{
 
set_dhudmessage(150, 0, 0, 0.04, 0.17, 1, 1.0, 1.0, 0.01, 0.01, true);
 
show_dhudmessage(0, "C4: %d", g_c4timer);
 
--g_c4timer;
}
  
}

  • +
  • -
  • 0
b_350_20_692108_381007_FFFFFF_000000.png - CS:GO [4FUN][Ruletka]
b_350_20_692108_381007_FFFFFF_000000.png - CS:GO [DM]
b_350_20_692108_381007_FFFFFF_000000.png - CS:GO [FFA]
b_350_20_692108_381007_FFFFFF_000000.png - CS:GO [Only Dust2]
b_350_20_692108_381007_FFFFFF_000000.png - CS:GO [Call of Duty]

#4 SmokeW33D

    Życzliwy

  • Autor tematu
  • Użytkownik

Reputacja: 3
Nowy

  • Postów:27
  • Imię:Damian
  • Lokalizacja:Przemyśl
Offline

Napisano 27.12.2013 15:53

Nadal to samo. Wyłączyłem ten plugin i nadal to samo, już nie wiem co jest nie tak ...

amxbans_core.amxx ; amxbans
amxbans_main.amxx debug ; amxbans
; AMX Mod X plugins

; Admin Base - Always one has to be activated
amxbans_core.amxx
amxbans_main.amxx 
;admin.amxx		; admin base (required for any admin-related)
;admin_sql.amxx		; admin base - SQL version (comment admin.amxx)

; Basic
admincmd.amxx		; basic admin console commands
adminhelp.amxx		; help command for admin console commands
adminslots.amxx		; slot reservation
multilingual.amxx		; Multi-Lingual management

; Menus
resetscore.amxx		; rs
menufront.amxx		; front-end for admin menus
cmdmenu.amxx		; command menu (speech, settings)
ReasonKicker.amxx	; KICK Z POWODEM 
plmenu.amxx		; players menu (kick, ban, client cmds.)
;telemenu.amxx		; teleport menu (Fun Module required!)
mapsmenu.amxx		; maps menu (vote, changelevel)
pluginmenu.amxx		; Menus for commands/cvars organized by plugin

; Chat / Messages
adminchat.amxx		; console chat commands
antiflood.amxx		; prevent clients from chat-flooding the server
scrollmsg.amxx		; displays a scrolling message
imessage.amxx		; displays information messages
adminvote.amxx		; vote commands

; Map related
nextmap.amxx		; displays next map in mapcycle
;mapchooser.amxx		; allows to vote for next map
timeleft.amxx		; displays time left on map

; Configuration
pausecfg.amxx		; allows to pause and unpause some plugins
statscfg.amxx		; allows to manage stats plugins via menu and commands

; Counter-Strike
restmenu.amxx		; restrict weapons menu
statsx.amxx		; stats on death or round end (CSX Module required!)
miscstats.amxx		; bunch of events announcement for Counter-Strike
;stats_logging.amxx		; weapons stats logging (CSX Module required!)

; Enable to use AMX Mod plugins
amxmod_compat.amxx	; AMX Mod backwards compatibility layer

; Custom - Add 3rd party plugins here
;Paczka Only DD2/Inferno/Kabul by Untouchable

|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
-Pluginy dodatkowe
death_sprite_sound.amxx	; killstreak 
adminlisten.amxx	; admin widzi wszystko
Allow_round_finish.amxx	; dokonczenie rundy
in_game_ads.amxx	; reklamy na scianach
;vip2.amxx		; darmowy vip (Jezeli usuwasz ; postaw go przy vipt ! )
vipa.amxx		; vip dla adminow
vipt.amxx		; vip dla graczy flaga t
spadochron5.amxx	; spadochron
bcd_hudtimer.amxx	; licznik
colored_flashbangs.amxx	; Kolorowe Flashbangi
realnadedrops.amxx	; Wszystkie bronie i granaty wypadają
alt_end_round_sounds.amxx	; Muzyka na koniec rundy
;spree.amxx		; Pokazuje najlepszego gracza rundy
score.amxx		; dhud
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
- Dla Admina
ghw_weapon_replacement.amxx	
esp_spec.amxx		; Specjalny spectator
amx_ss.amxx		; Ultimate ss
admin_alltalk.amxx	; Admin widzi wszystkie rozmowy
admin_freelook.amxx	; Admin widzi wszystko
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
-Ogólne
deathinfo.amxx		; Info 
mutemenu.amxx		; Można zmutować graczy poprzez /mute 
ad_manager.amxx		; Informacje w say
;godzina.amxx		; Godzina na serwie
weaponicon.amxx		; Ikony broni
afkbombtransfer.amxx	; Przenosi C4 do innego gracza gdy dany gracz jest AFK
raty.amxx		; Wymusza interp 0.01 i rate 25000
ptb.amxx		; Wyrownywanie Druzyn
konkurs.amxx		; /konkurs
;antyreklama.amxx        ; blokuje ip/strone w nicku i na czacie
timeleft_w_nazwie.amxx  ; dodaje czas mapy w nazwie serwera
block_team_flash.amxx   ; nie oślepia teamu
;luciaHallucination.amxx ; Plugin pomaga w wykrywaniu wallhacka u graczy. Tworzy postac w scianie, widzialna jest tylko i wylacznie dla admina i osoby ktora uzywa wh.
bind "klawisz" "luciaToggle"
;server_connect_message.amxx ;pokazuje wiadomosc powitalna w laczeniu ze serwerem
;kill_assist.amxx	; asysta
winter_environment.amxx	; losowa paka naprawiona
bs_limiter.amxx      ; ograniczeniu bsa gdy malo graczy
santahat.amxx		; czapki
extreme_bancfg2.amxx    ; ban na cfg gracza
abd.amxx		; abd

Moje plugins.ini

 

Dodam iż licznik c4 ktory tam jest i score.amxx są na dhudzie i wszędzie mam warunek is_user_hltv.


  • +
  • -
  • 0

#5 0-0-0

    ● 600 punktów ostrzeżeń

  • Power User

Reputacja: 222
Profesjonalista

  • Postów:599
  • Imię:___
  • Lokalizacja:___
Offline

Napisano 27.12.2013 15:55

A po wyłączeniu ich hltv nie wywala?


  • +
  • -
  • 1
b_350_20_692108_381007_FFFFFF_000000.png - CS:GO [4FUN][Ruletka]
b_350_20_692108_381007_FFFFFF_000000.png - CS:GO [DM]
b_350_20_692108_381007_FFFFFF_000000.png - CS:GO [FFA]
b_350_20_692108_381007_FFFFFF_000000.png - CS:GO [Only Dust2]
b_350_20_692108_381007_FFFFFF_000000.png - CS:GO [Call of Duty]

#6 SmokeW33D

    Życzliwy

  • Autor tematu
  • Użytkownik

Reputacja: 3
Nowy

  • Postów:27
  • Imię:Damian
  • Lokalizacja:Przemyśl
Offline

Napisano 27.12.2013 15:56

Wywala


  • +
  • -
  • 1

#7 EferenTM

    Zaawansowany

  • Użytkownik

Reputacja: 47
Pomocny

  • Postów:117
  • Imię:Michał
  • Lokalizacja:Olkusz
Offline

Napisano 27.12.2013 16:37

to masz pewnie afkkiss :) albo coś stylu afk kickera :)


  • +
  • -
  • 0

-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

Pomogłem? Daj +, Ciebie to nic nie kosztuje, a mnie motywuje!

-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

CS-FragMania.pl - Twoja sieć serwerów, zapraszam!

-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

#8 SmokeW33D

    Życzliwy

  • Autor tematu
  • Użytkownik

Reputacja: 3
Nowy

  • Postów:27
  • Imię:Damian
  • Lokalizacja:Przemyśl
Offline

Napisano 27.12.2013 18:22

EferenG mam, ale nawet nie jest wpisane w plugins.ini.


  • +
  • -
  • 0




Użytkownicy przeglądający ten temat: 0

0 użytkowników, 0 gości, 0 anonimowych