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 z amx?


  • Zamknięty Temat jest zamknięty
2 odpowiedzi w tym temacie

#1 zenq

    Życzliwy

  • Użytkownik

Reputacja: 0
Nowy

  • Postów:20
Offline

Napisano 29.03.2010 06:09

Witam.
Ściągnąłem sobie paczkę amx AMX MOD X [TeamPlay] by SzafoOos - Nieoficjalny polski support AMX Mod X przerobiłem ją wg. mojego gustu, pododawałem pluginy do plugins.ini, zrobiłem cvary itp. chciałem zobaczyć czy będzie działać więc wkleiłem go do mojego CS-a, gdy po new games i po wybranej mapie idzie ten "pasek" to gdy mam start local game to wywala mi CS-a ( w ogóle się wyłącza ) wcześniej nie miałem takiego problemu ( wcześniej również miałem amx, stary folder addons usunąłem i wkleiłem nowy ).
liblist.gam
game "Counter-Strike 1.6"
url_info "www.counter-strike.net"
version "1.6"
size "184000000"
svonly "0"
secure "0"
type "multiplayer_only"
cldll "1"
hlversion "1111"
nomodels "1"
nohimodel "1"
mpentity "info_player_start"
trainmap "tr_1"
#gamedll "dllsmp.dll"
#gamedll_linux "dlls/cs_i386.so"
gamedll "addons/metamod/dlls/metamod.dll"
gamedll_linux "addons/metamod/dlls/metamod_i386.so"

Metamod plugins.ini
;; Metamod plugins.ini
; AMX Mod X 1.8.0

win32 addons\amxmodx\dlls\amxmodx_mm.dll
; Enable this instead for binary logging
; win32 addons\amxmodx\dlls\amxmodx_bl_mm.dll

Wcześniej "bawiłem się" z ultimate_sounds_pl, podczas compilowania wyskakuje error
//D:\CS\cstrike\addons\amxmodx\scripting\ultimate_sounds_PL.sma (43)  :  error 052
:multi-dimenional arrays must be fully initialized
// D:\CS\cstrike\addons\amxdodx\scripting\ultimate_sounds_PL.sma (332)  :  error 01
7: undefined symbol "precache_sound"
// D:\CS\cstrike\addons\amxmodx\scripting\ultimate_sounds_PL.sma (356)  :  warning
203: symbol is never used: ""
//
// 2 Errors.
// Could not locate output file compiled/ultimate_sounds_PL.amx ( compile failed )
bardzo bym chciał mieć te przerobione... da się coś zrobić ?
log z ultimate_sounds_PL.sma
/* AMXMODX Plugin

Polski KillStreak 1.6 !B! !E! !T! !A!
Wersja polska (polskie dzwieki i napisy) oraz wszelkie modyfikacje by Sn!ff3r
Oryginalnie by Dizzy - [url=http://forums.alliedmods.net/showthread.php?p=67632]Ultimate Sounds (The Original) - AlliedModders[/url]

---

Mini Opis:
Kazdy chyba zna dzwieki HeadShot, MultiKill (Ultimate Sounds) itd? To jest wlasnie taki plugin tylko dzwieki oraz teksty po polsku.
Dodatkowo zmodyfikowany, np. 3 rozne dzwieki na headshot. 

---
*/

#include <amxmodx>

#define KNIFFMESSAGES 4
#define LEVELS 10
#define MESSAGESNOHP 4
#define MESSAGESHP 4

new kills[33] = {0,...};
new deaths[33] = {0,...};
new alone_ann = 0
new levels[10] = {2, 3, 5, 7, 10, 12, 15, 17, 20, 25};

new stksounds[10][] = {
"misc/koks/doublekill",
"misc/koks/multikill",
"misc/koks/rampage",
"misc/koks/ultrakill",
"misc/koks/killing spree",
"misc/koks/monsterkill",
"misc/koks/********.pl"},
"misc/koks/ludicrouskill"},
"misc/koks/unstopable"},
"misc/koks/godlike"};

new stkmessages[10][] = {
"%s: Double kill ! ! !",
"%s: Multikill ! ! !",
"%s: R A M P A G E ! ! !",
"%s: ULTRA KILL ! ! !",
"%s: KILLING SPREE !!!",
"%s: MONSTER KILL ! ! !",
"%s: H O L Y S H I T ! ! !",
"%s: L U D I C R O U S K I L L ! ! !",
"%s: U N S T O P P A B L E ! ! ! ! !",
"%s: G  O  D  L  I  K  E ! ! ! ! !"};


new kniffmessages[KNIFFMESSAGES][] = {
"%s pokroil na plasterki %s!",
"%s odcial jaja %s!",
"%s przetestowal noz na %s!",
"%s dziabnal %s!"}

new messagesnohp[MESSAGESNOHP][] = {
"%i terrorystow vs %i CT^n%s: Wszystko zalezy od Ciebie!",
"%i terrorystow vs %i CT^n%s: Mam nadzieje ze masz apteczke?",
"%i terrorystow vs %i CT^n%s: Zostales sam. Dobrej zabawy!",
"%i terrorystow vs %i CT^n%s: Tylko Ty jestes zywy!"}

new messageshp[MESSAGESHP][] = {
"%i terrorystow vs %i CT^n%s (%i hp): Wszystko zalezy od Ciebie!",
"%i terrorystow vs %i CT^n%s (%i hp): Mam nadzieje ze masz apteczke?",
"%i terrorystow vs %i CT^n%s (%i hp): Zostales sam. Dobrej zabawy!",
"%i terrorystow vs %i CT^n%s (%i hp): Tylko Ty jestes zywy!"}

get_streak()
{
	new streak[3]
	get_cvar_string("streak_mode",streak,2)
	return read_flags(streak)
}

public death_event(id)
{
	new streak = get_streak()

	if ((streak&1) || (streak&2))
	{
    		new killer = read_data(1);
    		new victim = read_data(2);

    		kills[killer] += 1;
    		kills[victim] = 0;
    		deaths[killer] = 0;
    		deaths[victim] += 1;

    		for (new i = 0; i < LEVELS; i++)
		{
        		if (kills[killer] == levels[i])
			{
         	  		 announce(killer, i);
         	  		 return PLUGIN_CONTINUE;
			}
		}
	}
	return PLUGIN_CONTINUE;
}

announce(killer, level)
{
	new streak = get_streak()

	if (streak&1)
	{
    		new name[32];

   		get_user_name(killer, name, 32);
		set_hudmessage(0, 100, 200, 0.05, 0.65, 2, 0.02, 6.0, 0.01, 0.1, 2);
		show_hudmessage(0, stkmessages[level], name);
	}

	if (streak&2){
    		client_cmd(0, "spk %s", stksounds[level]);
	}
}

public reset_hud(id)
{
	new streak = get_streak()

	if (streak&1)
	{

		if (kills[id] > levels[0])
		{
		        client_print(id, print_chat, 
			"* Twoj killstreak wynosi %d zabojstw.", kills[id]);

		}

		else if (deaths[id] > 1)
		{
			client_print(id, print_chat, 
			"* Twoj deathstreak wynosi %d smierci.", deaths[id]);
		}
	}
}

public client_connect(id)
{
	new streak = get_streak()

	if ((streak&1) || (streak&2))
	{
		kills[id] = 0;
		deaths[id] = 0;
	}
}

public knife_kill()
{
	new kniffmode[4] 
	get_cvar_string("kniff_mode",kniffmode,4) 
	new kniffmode_bit = read_flags(kniffmode)

	if (kniffmode_bit & 1)
	{
		new killer_id = read_data(1)
		new victim_id = read_data(2)
		new killer_name[33], victim_name[33]

		get_user_name(killer_id,killer_name,33)
		get_user_name(victim_id,victim_name,33)


		set_hudmessage(200, 100, 0, -1.0, 0.30, 0, 6.0, 6.0, 0.5, 0.15, 1)
		show_hudmessage(0,kniffmessages[ random_num(0,KNIFFMESSAGES-1) ],killer_name,victim_name)
	}

	if (kniffmode_bit & 2)
	{
		client_cmd(0,"spk misc/koks/humiliation")
   	}
}


public roundend_msg(id)

	alone_ann = 0

public death_msg(id)
{

	new lmmode[8] 
	get_cvar_string("lastman_mode",lmmode,8) 
	new lmmode_bit = read_flags(lmmode)

	new players_ct[32], players_t[32], ict, ite, last
	get_players(players_ct,ict,"ae","CT")   
	get_players(players_t,ite,"ae","TERRORIST")   

	if (ict==1&&ite==1)
	{
		new name1[32], name2[32]
		get_user_name(players_ct[0],name1,32)
		get_user_name(players_t[0],name2,32)
		set_hudmessage(200, 100, 0, -1.0, 0.30, 0, 6.0, 6.0, 0.5, 0.15, 1)

		if (lmmode_bit & 1)
		{
			if (lmmode_bit & 2)
			{
				show_hudmessage(0,"%s (%i hp) vs. %s (%i hp)",name1,get_user_health(players_ct[0]),name2,get_user_health(players_t[0]))
			}

			else
			{
				show_hudmessage(0,"%s vs. %s",name1,name2)
			}

			if (lmmode_bit & 4)
			{
				client_cmd(0,"spk misc/koks/maytheforce")
			}
		}
	} 
	else
{   
	if (ict==1&&ite>1&&alone_ann==0&&(lmmode_bit & 4))
	{
		last=players_ct[0]
		client_cmd(last,"spk misc/koks/oneandonly")
	}

	else if (ite==1&&ict>1&&alone_ann==0&&(lmmode_bit & 4))
	{
		last=players_t[0]
		client_cmd(last,"spk misc/koks/oneandonly")
	}

	else
	{
		return PLUGIN_CONTINUE
	}
	alone_ann = last
	new name[32]   
	get_user_name(last,name,32)

	if (lmmode_bit & 1)
	{
		set_hudmessage(200, 100, 0, -1.0, 0.30, 0, 6.0, 6.0, 0.5, 0.15, 1)

		if (lmmode_bit & 2)
		{
			show_hudmessage(0,messageshp[ random_num(0,MESSAGESHP-1) ],ite ,ict ,name,get_user_health(last))
		}

		else
		{
			show_hudmessage(0,messagesnohp[ random_num(0,MESSAGESNOHP-1) ],ite ,ict ,name )
		}
	}

	if (lmmode_bit & 4)
	{
		client_cmd(last,"spk misc/koks/maytheforce")
	}
}
	return PLUGIN_CONTINUE   
}


public hs()
{
new hsmode[4]
get_cvar_string("hs_mode",hsmode,4)
new hsmode_bit = read_flags(hsmode)
new rand = random_num(0,2)

if (hsmode_bit & 1)
{
new killer_id = read_data(1)
new victim_id = read_data(2)
new victim_name[33]
get_user_name(victim_id,victim_name,33)

set_hudmessage(200, 100, 0, -1.0, 0.30, 0, 3.0, 3.0, 0.15, 0.15, 1)

switch(rand)
  {
  case 0: show_hudmessage(killer_id,"A L E U R W A Ł !^n Pwn3d %s !!",victim_name)
  case 1: show_hudmessage(killer_id,"D U P S Z O T !^n Zownowales %s !!",victim_name)
  case 2: show_hudmessage(killer_id,"H E A D S H O T !^n %s poszedl sie pier**lic!!",victim_name)
  }
  
  }
  
if (hsmode_bit & 2)
  {
  
  switch(rand)
  {
  case 0: client_cmd(0,"spk misc/koks/lep")
  case 1: client_cmd(0,"spk misc/koks/dupszot")
  case 2: client_cmd(0,"spk misc/koks/pier**l")
  }
    
  }
}

public plugin_precache()
{
precache_sound("misc/koks/doublekill.wav")
precache_sound("misc/koks/multikill.wav")
precache_sound("misc/koks/rampage.wav")
precache_sound("misc/koks/ultrakill.wav")
precache_sound("misc/koks/killingspree.wav")
precache_sound("misc/koks/monsterkill.wav")
precache_sound("misc/koks/********.pl.wav")
precache_sound("misc/koks/ludicrouskill.wav")
precache_sound("misc/koks/unstoppable.wav")
precache_sound("misc/koks/lep.wav")
precache_sound("misc/koks/godlike.wav")
precache_sound("misc/koks/dupszot.wav")
precache_sound("misc/koks/humiliation.wav")
precache_sound("misc/koks/pier**l.wav")
precache_sound("misc/koks/prepare.wav")
precache_sound("misc/koks/maytheforce.wav")
precahce_sound("misc/koks/oneandonly.wav")

return PLUGIN_CONTINUE
}


public plugin_init()
{
	register_plugin("Polski KillStreak","1.6","Dizzy & Sn!ff3r")
	register_event("DeathMsg","hs","a","3=1")
	register_event("DeathMsg","knife_kill","a","4&kni")
	register_event("ResetHUD", "reset_hud", "b");
	register_event("DeathMsg", "death_event", "a")
	register_event("SendAudio","roundend_msg","a","2=%!MRAD_terwin","2=%!MRAD_ctwin","2=%!MRAD_rounddraw")
	register_event("TextMsg","roundend_msg","a","2&#Game_C","2&#Game_w")
	register_event("DeathMsg","death_msg","a")
	register_cvar("lastman_mode","abc")
	register_cvar("streak_mode","ab")
	register_cvar("kniff_mode","ab")
	register_cvar("hs_mode","ab")
	register_cvar("polish_killstreak", "1.6", FCVAR_SERVER|FCVAR_EXTDLL|FCVAR_SPONLY)

	return PLUGIN_CONTINUE
}
Sorka że tak dużo, no ale nie jestem pewien co mogło być nie tak... a może to nie amx tylko CS ? Proszę o odpowiedź

PS : tam gdzie są te gwiazdki i .pl u mnie jest h o l y s h i t

29 marzec 2010 - 06:32:
Sorka, że post pod postem, ale zauważyłem jeden błąd teraz wyskakuje tylko
// D:\CS\cstrike\addons\amxdodx\scripting\ultimate_sounds_PL.sma (332) : error 017
: undefined symbol "precache_sound"

oczywiście compiled failed :/

29 marzec 2010 - 07:09:
Log z plugins.ini ( pomyślałem że może się przydać :/ ) Chcę tego amx'a sprawdzić u siebie, bo jak kupię serwa to chcę mieć pewność że od razu wszystko będzie działać, dlatego nie wiem czy mam problemy z CS czy z amx i chciałbym to wiedzieć :/
; AMX Mod X [TP] By emblaze

; Admin Base - Always one has to be activated
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
menufront.amxx		; front-end for admin menus
cmdmenu.amxx		; command menu (speech, settings)
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

; pluginy:

ad_manager.amxx                   ; reklamy na serverze edytuj addons/amxmodx/configs
Automaticknifeduel.amxx           ; gracz vs gracz + ocieranie sciany nozem = nożowka <img src='https://amxx.pl/public/style_emoticons/<#EMO_DIR#>/smile.gif' class='bbc_emoticon' alt=':)' />
descriptive_fire_in_the_hole.amxx : napis w say jakiego granatu uzyłes
polski_cs.amxx                    ; polskie napisy typu rozpoczecie gry lu tero wygrali
weaponicon.amxx                   ; ikonka aktualnej broni
;backweapons.amxx                 ; bronie na plecach
Allow_round_finish.amxx           ; dokoncz runde
ptb.amxx                          ; równe teamy
Wynik.amxx                        ; np. Antyteroryści prowadzą 3:2
;hpk.amxx                         ; kickuje graczy z pingiem 95 lub wyzej
amx_ssban.amxx                    ; robi ss graczowi
adminlisten.amxx                  ; admin widzi wszystkie rozmowy na say
admin_freelook.amxx               ; admin widzi z kazdej kamery
afkbomb.amxx		             ; gracz AFK po 20 sec wyrzuca pake
;M_Antirusher_2.6_alfa.amxx       ; anty rasz
bcd_hudtimer.amxx                      ; Pokazuje ile czasu zostało to wybuchu bomby
bulletdamage.amxx
sillyc4.amxx
ewelinka_sounds.amxx
bomba_explode_sound.amxx
acs.V1.4.amxx
mapchooser4.amxx
ruletka3.0.amxx
rules_green.amxx
ultimate_sounds_PL.amxx
alt_end_round_sounds.amxx


atac.amxx                         ; kary za tk/ta
atac_slap.amxx			; Slaps the killer around a bit
atac_slap2one.amxx		; Slaps the killer to 1 HP
atac_slay.amxx			; Slays the killer instantly
atac_spawnslay.amxx		; Slays killer on next respawn
atac_jail.amxx			; Sends the killer into a jailed area on a map
atac_chicken.amxx		; Turns killer into a Chicken, ChickenMod must be installed!
atac_bury.amxx			; Buries killer
atac_glow.amxx			; Killer glows
atac_bomb.amxx			; Turns killer into a bomb oO
atac_blind.amxx			; Blinds killer until death or until round ends
atac_rocket.amxx		; Turns the killer into a human rocket
atac_drop.amxx			; Picks up the killer and drops them
atac_fire.amxx			; Turns the killer into a human fireball
atac_drug.amxx			; Killer's vision becomes obscure
atac_badaim.amxx		; Gives killer bad aiming
atac_hudmsg.amxx		; Displays ATAC Hudmessages
atac_ta.amxx			; Team Attacks Addon
atac_cmds.amxx			; Creates commands for punishments using atac_ prefix
atac_amxbans.amxx		; AMXBans Support

Użytkownik zenq edytował ten post 29.03.2010 05:29

  • +
  • -
  • 0

#2 Abes Mapper

    Repulsion Gel

  • Przyjaciel

Reputacja: 2 017
Godlike

  • Postów:7 356
  • Steam:steam
  • Imię:Sebastian
  • Lokalizacja:Sulejówek
Offline

Napisano 29.03.2010 07:10

Wyłącz wszystkie pluginy i spradz czy pojdzie
  • +
  • -
  • 0

#3 zenq

    Życzliwy

  • Autor tematu
  • Użytkownik

Reputacja: 0
Nowy

  • Postów:20
Offline

Napisano 29.03.2010 14:15

Wyłącz wszystkie pluginy i spradz czy pojdzie

Wyłączyłem all ( dałem średniki wszędzie w plugins.ini ), i znów to samo przy start local server wyłącza CS'a ... Może amx jest ok tylko CS mam zwalony... ale wcześniej mi chodziło... chciałbym żeby mi poszło, bo w końcu bym mógł sprawdzić czy wszystko all right jest :]

29 marzec 2010 - 14:43:
Przed chwilą przeinstalowałem patcha v23 i poszło, ale było bez amx, gdy zmieniłem liblist.gam na ten co był wcześniej, to znów mam ten sam problem... Więc pewnie mam coś nie tak z amx albo źle liblist wpisałem :/

PS : Mam dziwne wrażenie że to metamod, bo wcześniej miałem tam jakoś więcej tych rzeczy xD teraz mam tylko plugins.ini w folderze metamod, i folder dlls w którym jest metamod.dll i metamod_i386.so

29 marzec 2010 - 15:15:
PS : Naprawiłem plugin ultimate_sounds_PL dobrze się z kompilował, więc to nie jego wina... coś musi "siedzieć" w amx... zrobię chyba serwer packa od początku powinno wtedy działać... Tyle że zmarnuję kilka godzin mojej roboty, wydaję mi się że w tym packu coś jest nie tak z metmodem/liblist.gam itp. :/

Użytkownik zenq edytował ten post 29.03.2010 13:46

  • +
  • -
  • 0




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

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