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
 

Zawartość użytkownika Bad Day

Odnotowano 29 pozycji dodanych przez Bad Day (Rezultat wyszukiwania ograniczony do daty: 23.06.2023 )



Sortuj według                Sortuj  

#477163 Problem z bronią na modzie GunGame

Napisano przez Bad Day w 09.11.2012 20:51 w Problemy

Sprawdź, czy w cvarach od GG masz ustawione tak:
gg_turbo 1



#476413 GunGame nie czyta cvarow.

Napisano przez Bad Day w 08.11.2012 11:18 w Problemy

Spróbuj tak.

Ustaw
gg_max_lvl na 0
a w
gg_weapon_order
dopisz do każdej broni, żeby były z 3 zabicia, tak ma to wyglądać:
gg_weapon_order "glock18:3,usp:3,p228:3,deagle:3,
I tak robisz z dalszymi broniami oprócz granata HE i kosy, knife, przy nich nic nie dodajesz.



#473480 Deathbones.amxx - Zamiana graczy w kościotrupy.

Napisano przez Bad Day w 31.10.2012 19:37 w Pluginy AMXX

Plugin już był kiedyś dodany na forum, ale też bez modeli.

http://amxx.pl/topic/225-deathbones/



#467175 Odradzanie się

Napisano przez Bad Day w 13.10.2012 23:05 w Szukam pluginu

Spawnprotection, czyli ochronę przy odrodzeniu ustawiasz w cvar'ach gungame.
Jest tam opcja z wyborem nieśmiertelności przy odrodzeniu.

A co do innych respawn'ów to użyj tego pluginu
http://amxx.pl/topic...wns-editor-v10/
Wł. plug i stwórz nowe respawny na mapie.
Na necie można znaleźć już niektopre respawny, ale możesz samemu je porobić, żeby było oryginalniej.



#459237 [AMXX] GunGame

Napisano przez Bad Day w 18.09.2012 11:36 w Pluginy AMXX

Na pewno coś źle zrobiłęś, a nie kod od Avalanche'a.


A tak poza tym to najnowsza wersja i bodajże ostatnia to 2.13b wydana 21.07.2012.
Additionally, I want to mention again that I am no longer supporting GunGame. Thanks to everyone for all your support and dedication, and for using GunGame! I truly appreciate it, and I'm amazed by the people on the forums still asking and still answering questions--thank you!	 -Jacob

Changelog
[b]07/21/12 :: GunGame AMXX 2.13b Changelog[/b]
    Fixed a bug where the win MOTD did not show up with gg_winner_motd 2. Thanks to viktor6 for discovering this.
    Increased the maximum length of server IP addresses for the SQL tables from 21 to 63. Note that this won't retroactively update your tables, so if you require this functionality, modify the serverip column in all 3 tables from varchar(21) to varchar(63).

[b]12/21/11 :: GunGame AMXX 2.13 Changelog[/b]
    Added optional SQL stats mode. To enable, uncomment "#define SQL" in the SMA file and recompile (or download the "SQL stats" package). The first 4 cvars are self-explanatory: gg_sql_host, gg_sql_user, gg_sql_pass, and gg_sql_db. There are 3 other cvars which just let you set the table names: gg_sql_table (default "gg_stats"), gg_sql_streak_table (default "gg_streaks"), and gg_sql_players_table (default "gg_players"). When compiled in SQL mode, the stats files are ignored and all stats-keeping is done via SQL. Go to the SQL page for more information.
    Added win streaks. It keeps track of your record streak, the all-time server record streak, and your current streak. With it, added the cvar gg_stats_streak_file (default "gungame.streaks") which is the file to use to keep track of them.
    Added gg_stats_split (default 0), which if enabled keeps seperate stats for regular and teamplay mode.
    All of the sound files have been redone so that I am now actually allowed to distribute them legally (and likewise the default values for the sound cvars have been changed). Thanks to SeNz0r for many of them!
    When teamplay is enabled, GunGame now looks for a gungame_teamplay.cfg file and tries to execute it (in addition to the regular gungame.cfg file).
    Added cvar gg_bots_knifeable (default 1): if set to 0, then nothing happens if a human knifes a bot (meaning they can't steal levels or pass the knife level by knifing bots). Suggested by BRIGADIER.
    Added two new modes for gg_knife_pro: Setting it to 2 gives the killer a level steal, but the victim doesn't go down a level. Setting it to 3 gives the killer just one point and the victim does go down a level.
    Added stats tracking by name: set gg_stats_ip to -1 to enable it.
    Added built-in support for Brad's Galileo plugin.
    The gg_teamplay and gg_autovote_mode cvars now optionally take comma-separated sequences as values. So for instance, setting gg_teamplay to "0,2,1" will result in a regular round of GunGame, then a round with random teamplay, and then a round with teamplay definitely enabled. Originally requested for gg_autovote_mode by Arrow.
    Setting gg_triple_on to 2 now enables it even with gg_turbo also enabled.
    Added a cvar gg_top10_ppp (default 8) which controls how many players to display per page on the top 10 list. Optionally, setting this to a URL will open a MOTD window to that page when players type !topX (to be used with SQL stats primarily).
    Added a new command requested by Pamaliska: amx_gungame_score <target> <score> [dont_refill] which works just like amx_gungame_level but instead affects a player's score (kill requirement). Set dont_refill to not refill a player's ammo and armor.
    Added an optional parameter to the amx_gungame_vote command which lets you specify the vote mode (corresponding to the values of gg_autovote_mode).
    The gg_winner_motd now optionally takes a URL, which will be displayed instead (to be used with SQL stats primarily). If using a URL, then the gg_sql_winmotd_table table will be populated with certain information for you to use (see the SQL page). Alternatively, setting gg_winner_motd to 2 will still display the default win MOTD and will also populate the gg_sql_winmotd_table table with the appropriate information.
    Made gg_afk_protection work more reliably. Now it is more lenient in that you can move within 28 units horizontally of your spawn position, and you can look around in the horizontal direction. This makes it work in cases where AFK players would get pushed back by high-powered guns or where sometimes the angles on spawn and angles on death didn't matched up for some inexplicable reason. If you want to use the previous, stricter method, set gg_afk_protection to 2.
    Removed gg_colored_messages and replaced it with gg_messages (default 1). Set gg_messages to 0 to disable all GunGame messages. There are now four flags you can specify: classic (2), which displays the old-school GunGame chat message telling you your level; no color (4), which turns off coloring of GunGame chat messages; hide text (8), which suppresses all GunGame chat messages; and hide HUD (16), which suppresses all GunGame HUD messages. To use the flags, add up the numbers of the flags you want to use, and set gg_messages to that number plus one.
    Added back in the ability to refresh a player's timestamp in the gungame.stats file whenever they connnect (versus whenever they earn points). For SQL stats, it naturally doesn't take very much time at all. Also, for flat-file stats, I rewrote it so that it is pretty fast, so it shouldn't slow your server down. To enable it, uncomment "#define REFRESH_TIMESTAMP_ON_JOIN" in the SMA file and recompile.
    It's now possible to add in the special functions of the "speak" command for the sound cvars. Just make sure to leave off the file extension. For example, gg_sound_leveldown "sound/ambience/xtal_down1(e70)"
    Fixed a bug where players killed by certain custom plugins like Napalm Nades or GasNades wouldn't respawn (thanks addam).
    GunGame is now more compatible with plugins that hide HUD elements (requested by worldspawn).
    For amx_gungame_level, you can now specify @T instead of @TERRORIST for the target if you want to (they function the same).
    Made executing of gungame.cfg slightly more efficient. However, as an indirect result the ";" comments no longer work like they used to, so use "//" comments instead.
    Fixed an issue where autovote settings in map-specific configs would be ignored.
    Fixed a problem where some GunGame messages would still be partially colored even with colored messages disabled.
    Fixed various problems that could occur with a very small value of mp_chattime.
    GunGame now stops (most) sounds before playing the winning sound to make sure that it gets played more reliably and doesn't conflict with any other long sound effects. Thanks cre8or.
    Fixed a bug where the gg_sound_welcome sound would be played as a round win sound. Reported by gokajko.
    Fixed a bug where GunGame would never use random weapon orders when combined with GunGame's autovote feature. Reported by gokajko.
    Updated the default win MOTD's HTML code so that it is more compatible with UTF-8 characters. Reported by 007asha.
    Fixed a bug where upon leveling up, if a player was previously holding their knife, it would switch to their new weapon instead of keeping their knife out as intended. Reported by BbIX. Note that if the player is using the "Automatically switch to picked up weapons (if more powerful)" option then there will be a small delay as they get switched back to their knife from their new weapon.
    Fixed a problem where the "star" sound wasn't playing for gg_triple_on.
    Changed the default value of gg_block_equips from 0 to 2.
    Renamed the gg_teamplay_melee_mod cvar to gg_teamplay_knife_mod.

Download:
http://avalanche.gungame.org/download.php#213b
Najnowsza 2.13b - rekomendowana.



#453992 Zmiana mapy - dłuugo trwa

Napisano przez Bad Day w 31.08.2012 15:51 w Problemy

; AMX Mod X plugins
neobans4.amxx
amxbans_core.amxx
amxbans_main.amxx
; 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)
; 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
;Galileo 1.1.290
galileo.amxx
; 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

__________________________________________________________________________________________________________________
;GunGame - 2.13 Final
gungame.amxx
;BattleFiled2 1.1.0 by MisieQ
bf2rank_colorchat.amxx
;Menu Interpu 0.5 by MisieQ
interp.amxx
;afkkisss
afkkisss.amxx
;HPK 1.2.0 + colorchat
hpk.amxx
;show_ip - pokazuje IP, sid i czy IP jest zmienne, czy stałe
show_ip.amxx debug
Sry, zapomniałem, choć nie wiem, czy w czymś to pomoże.



#453963 Zmiana mapy - dłuugo trwa

Napisano przez Bad Day w 31.08.2012 14:58 w Problemy

Jakaś inna sugestią ?

Bądź, czy jest możliwość, że od hostingu ten problem ?



#453665 Zmiana mapy - dłuugo trwa

Napisano przez Bad Day w 30.08.2012 19:03 w Problemy

Tak, po resecie i wczytaniu server.cfg.
Przesadziłem, że się pogorszyło, bo tylko 1 się tak zdarzyło, ale tak to nic szybciej nie jest :(



#453645 Zmiana mapy - dłuugo trwa

Napisano przez Bad Day w 30.08.2012 18:27 w Problemy

Zmieniłem tę komendę z 3 na 0 i po sprawdzenie przy 2 zmianach map, zauważyłem, że nic się nie poprawiło, a nawet chyba trochę pogorszyło :(



#453316 Zmiana mapy - dłuugo trwa

Napisano przez Bad Day w 29.08.2012 20:31 w Problemy

Witam.

Otóz mam taki problem, że mapy zmieniane przez admina, bądź przez vote trwają b. długo.
Czasami wywala z serwera z info "Time out", a przeważnie wygląda tak jakby na sam koniec mapy był crash.

Jednakże w logach nie ma żadnego info, żeby coś się działo w czasie zmieniania mapy.

Serwer jest z modem GG.
Na początku był plugin od map deaglemanager, czy jakoś tak.
Zmieniłem myśląc, że wina pluginu, zmieniłem na galileo, ale bez zmian.

Serwer jest na tserwery.


Prosiłbym o jakieś porady.
Z góry thx.



#434274 BF2 bu MisieQ - przeróbka Hud by Misieq

Napisano przez Bad Day w 20.07.2012 09:16 w Prośby o modyfikacje modów

Plizz help



#434273 Serwer się zawiesza - bf2_colorchat

Napisano przez Bad Day w 20.07.2012 09:16 w Problemy

F5



#433579 Serwer się zawiesza - bf2_colorchat

Napisano przez Bad Day w 18.07.2012 12:47 w Problemy

bf2_colorchat.sma
//************************************ Compile Settings ************************************//
// Uncomment to use MySQL instead of the default nVault saving
//#define SQL
// Admin flag settings for giving points/badges and server saved data reset
// These can also be set in cmdaccess.ini without need to change here
// (See amxconst.inc for more admin level constants)
#define ADMIN_LEVEL ADMIN_IMMUNITY
#define ADMIN_RESET ADMIN_IMMUNITY
// Aby wlaczyc kolorowy say(colorchat) w grze odkomentuj
#define KOLOROWY_SAY
// Note: Changing any of the above the above requires plugin to be recompiled
//******************************************************************************************//
#include <amxmodx>
#include <amxmisc>
#include <fakemeta>
#include <fakemeta_util>
#include <hamsandwich>
#include <csx>
new const gPluginName[] = "Battlefield 2: Rank Mod";
new const gPluginVersion[] = "1.1.0";
//Message sending variables
#if defined KOLOROWY_SAY
new gmsgStatusText;
new gmsgScreenFade;
new gmsgScreenShake;
#else
new gmsgStatusText;
new gmsgScreenFade;
new gmsgScreenShake;
new gmsgSayText;
#endif
new gHudSyncAimInfo;
new gMaxPlayers;
new bool:gCZBotRegisterHam;
#define MAX_RANKS 17
#define MAX_BADGES 8
//Motd variables
new configsdir[200];
new configfile[200];
//Cvar vars
new gPcvarBF2Active;
new gPcvarBadgesActive;
new gPcvarXpMultiplier;
new gPcvarIconTime;
new gPcvarFlagKills;
new gPcvarHelpUrl;
new gPcvarBadgePowers;
new gPcvarFlagRoundPoints;
new gPcvarFlagMatchPoints;
new gPcvarXpMinPlayers;
new gPcvarHudOptions;
new gPcvarStatusText;
new gPcvarFFA;
new gPcvarSaveType;
new gPcvarRankBots;
new gPcvarBotQuota;
new gPcvarSVLan;
//Cvar vars new
new gPcvarWymus;
//Current players info
new g_PlayerRank[33];
new g_PlayerBadges[33][MAX_BADGES];
new knifekills[33];
new pistolkills[33];
new sniperkills[33];
new parakills[33];
new defuses[33];
new plants[33];
new explosions[33];
new accuracy[33];
new totalkills[33];
new gSaveKey[33][32];
new smgkills[33];
new shotgunkills[33];
new riflekills[33];
new grenadekills[33];
new bronze[33];
new silver[33];
new gold[33];
//Temp storage variables
new numofbadges[33];
new bool:newplayer[33];
new g_lastwpn[33];
new bool:g_imobile[33];
new bool:freezetime;
new highestrank;
new highestrankid;
new gStatsLoaded[33];
new gCurrentFOV[33];
new g_friend[33];
new bool:g_invis[33];
new bool:g_grav[33];
new menuselection[33];
//Server stats
new highestrankserver, highestrankservername[32], mostkills, mostkillsid, mostkillsname[32], mostwins, mostwinsname[32];
new menuselected[33][3];
//0 - Badge/Kills selected 0/1
//1 - Badgenum/Kills
//2 - Badgelevel
//Sound Vars
new gSoundRank[] = "bf2rank/bf2rank_promotion.wav"; //Rank gained sound
new gSoundBadge[] = "bf2rank/bf2rank_award.wav"; //Badges earned sound
//Sprite vars
new gSprite[22];
#if defined SQL
//SQl vars
#include <sqlx>
new Handle:g_SqlTuple;
new g_Cache[512];
new bool:SQLenabled;
new bool:gIntermission;
#else
//nVault
#include <nvault>
new g_Vault;
new gPcvarPruneDays;
#endif
new gPlayerName;
//Bf2 includes
#if defined KOLOROWY_SAY
#include <colorchat>
#endif
#include "bf2/stocks.inl"
#include "bf2/const.inl"
#include "bf2/effect.inl"
#include "bf2/cmds.inl"
#include "bf2/events.inl"
#include "bf2/save.inl"
#include "bf2/forwards.inl"
#include "bf2/check.inl"
#include "bf2/badgepowers.inl"
#include "bf2/menu.inl"
#include "bf2/hud.inl"
#include "bf2/othermods.inl"
#include "bf2/csx.inl"
#include "bf2/ham.inl"
#if defined SQL
#include "bf2/sql.inl"
#endif
public plugin_init()
{
register_plugin(gPluginName, gPluginVersion, "MisieQ"); //Bazuje na Battlefield 2: Rank Mod 1.5.3 by pRED*
//Register all the say commands
//Public
register_clcmd("say /ranks","show_rankhelp",0, "Pokazuje Informacje o Ranku");
register_clcmd("say_team /ranks","show_rankhelp",0, "Pokazuje Informacje o Ranku");
register_clcmd("say /badges1","show_badgehelp",0, "Pokazuje Informacje o Odznakach");
register_clcmd("say_team /badges1","show_badgehelp",0, "Pokazuje Informacje o Odznakach");
register_clcmd("say /odznaki1","show_badgehelp",0, "Pokazuje Informacje o Odznakach");
register_clcmd("say_team /odznaki1","show_badgehelp",0, "Pokazuje Informacje o Odznakach");
register_clcmd("say /badges2","show_badgehelp2",0, "Pokazuje Informacje o Odznakach 2");
register_clcmd("say_team /badges2","show_badgehelp2",0, "Pokazuje Informacje o Odznakach 2");
register_clcmd("say /odznaki2","show_badgehelp2",0, "Pokazuje Informacje o Odznakach 2");
register_clcmd("say_team /odznaki2","show_badgehelp2",0, "Pokazuje Informacje o Odznakach 2");
register_clcmd("say /badges3","show_badgehelp3",0, "Pokazuje Informacje o Odznakach 3");
register_clcmd("say_team /badges3","show_badgehelp3",0, "Pokazuje Informacje o Odznakach 3");
register_clcmd("say /odznaki3","show_badgehelp3",0, "Pokazuje Informacje o Odznakach 3");
register_clcmd("say_team /odznaki3","show_badgehelp3",0, "Pokazuje Informacje o Odznakach 3");
register_clcmd("say", "cmd_say", 0, "<target> ");
register_clcmd("say_team", "cmd_say", 0, "<target> ");
register_clcmd("say /who", "cmd_who", 0, "Wyswietla liste graczy i ich pozimy");
register_clcmd("say_team /who", "cmd_who", 0, "Wyswietla liste graczy i ich pozimy");

register_clcmd("say /gracze", "cmd_who", 0, "Wyswietla liste graczy i ich pozimy");
register_clcmd("say_team /gracze", "cmd_who", 0, "Wyswietla liste graczy i ich pozimy");
register_clcmd("say /help", "cmd_help", 0, "Pokaz pomoc BF2Mod");
register_clcmd("say_team /help", "cmd_help", 0, "Pokaz pomoc BF2Mod");
register_clcmd("say /bf2menu", "Bf2menu", 0, "Pokazuje Menu");
register_clcmd("say_team /bf2menu", "Bf2menu", 0, "Pokazuje Menu");
register_clcmd("say bf2menu", "Bf2menu", 0, "Pokazuje Menu");
register_clcmd("say_team bf2menu", "Bf2menu", 0, "Pokazuje Menu");
register_clcmd("say /bf2", "Bf2menu", 0, "Pokazuje Menu");
register_clcmd("say_team /bf2", "Bf2menu", 0, "Pokazuje Menu");
register_clcmd("say bf2", "Bf2menu", 0, "Pokazuje Menu");
register_clcmd("say_team bf2", "Bf2menu", 0, "Pokazuje Menu");
register_clcmd("say /menu", "Bf2menu", 0, "Pokazuje Menu");
register_clcmd("say_team /menu", "Bf2menu", 0, "Pokazuje Menu");
register_clcmd("say menu", "Bf2menu", 0, "Pokazuje Menu");
register_clcmd("say_team menu", "Bf2menu", 0, "Pokazuje Menu");
register_clcmd("say /help", "Bf2menu", 0, "Pokazuje Menu");
register_clcmd("say_team /help", "Bf2menu", 0, "Pokazuje Menu");
register_clcmd("say help", "Bf2menu", 0, "Pokazuje Menu");
register_clcmd("say_team help", "Bf2menu", 0, "Pokazuje Menu");
register_clcmd("say /bf2helpmenu", "helpmenu", 0, "Pokazuje Menu Pomocy");
register_clcmd("say_team /bf2helpmenu", "helpmenu", 0, "Pokazuje Menu Pomocy");
register_clcmd("say /bf2statsmenu", "helpmenu", 0, "Pokazuje Menu Statystyk");
register_clcmd("say_team /bf2statsmenu", "helpmenu", 0, "Pokazuje Menu Statystyk");
register_clcmd("say /bf2adminmenu", "adminmenu", 0, "Pokazuje Menu Admina");
register_clcmd("say_team /bf2adminmenu", "adminmenu", 0, "Pokazuje Menu Admina");
register_clcmd("say /bf2stats", "show_stats", 0, "Pokazuje twoje aktualne statystyki");
register_clcmd("say_team /bf2stats", "show_stats", 0, "Pokazuje twoje aktualne statystyki");
register_clcmd("say /serverstats", "show_server_stats", 0, "Pokazuje aktualne statystyki serwera");
register_clcmd("say_team /serverstats", "show_server_stats", 0, "Pokazuje aktualne statystyki serwera");
register_clcmd("say /bf2save", "save_badges", 0, "Zapisuje Aktualne Statystyki");
register_clcmd("say_team /bf2save", "save_badges", 0, "Zapisuje Aktualne Statystyki");
register_clcmd("bf2_resetstats", "reset_stats", 0, "Resetuje twoje statystyki");
//Admin
register_clcmd("bf2_addbadge", "add_badge", ADMIN_LEVEL, "<player> <badge#> <level#>");
register_clcmd("bf2_addkills", "add_kills", ADMIN_LEVEL, "<player> <kills#>");
register_clcmd("bf2_resetserverstats", "reset_all_stats", ADMIN_RESET, "Resetuje statystyki serwera");
//Cvars
//FCVAR_SERVER cvar for game monitor.
register_cvar("bf2_version", gPluginVersion, FCVAR_SERVER);
// Set cvar to update version in case new version loaded while server still running
set_cvar_string("bf2_version", gPluginVersion);
gPcvarBF2Active = register_cvar("bf2_active", "1");
gPcvarBadgesActive = register_cvar("bf2_badges", "1");
gPcvarXpMultiplier = register_cvar("bf2_xpmultiplier", "0.1");
gPcvarXpMinPlayers = register_cvar("bf2_xpminplayers", "2");
gPcvarIconTime = register_cvar("bf2_icon_time", "1.5");
gPcvarHelpUrl = register_cvar("bf2_help_url", "http://misieq.sileman.net.pl/bf2webdocs");
gPcvarBadgePowers = register_cvar("bf2_badgepowers", "0");
gPcvarHudOptions = register_cvar("bf2_hud_options", "abcde");
gPcvarStatusText = register_cvar("bf2_statustext", "1");
#if !defined SQL
gPcvarPruneDays = register_cvar("bf2_reset_days", "21");
#endif
gPcvarFFA = register_cvar("bf2_ffa", "0");
gPcvarWymus = register_cvar("bf2_wymus", "0");
gPcvarFlagKills = register_cvar("bf2_flag_kills", "2");
gPcvarFlagRoundPoints = register_cvar("bf2_flag_round_kills", "0");
gPcvarFlagMatchPoints = register_cvar("bf2_flag_match_kills", "0");
gPcvarSaveType = get_cvar_pointer("csstats_rank");
gPcvarRankBots = get_cvar_pointer("csstats_rankbots");
gPcvarBotQuota = get_cvar_pointer("bot_quota");
gPcvarSVLan = get_cvar_pointer("sv_lan");
//Message sending.
#if defined KOLOROWY_SAY
gmsgStatusText = get_user_msgid("StatusText");
gmsgScreenFade = get_user_msgid("ScreenFade");
gmsgScreenShake = get_user_msgid("ScreenShake");
#else
gmsgStatusText = get_user_msgid("StatusText");
gmsgScreenFade = get_user_msgid("ScreenFade");
gmsgScreenShake = get_user_msgid("ScreenShake");
gmsgSayText = get_user_msgid("SayText");
#endif
//Register events, logs and forwards to be captured
register_event("HLTV", "Event_HLTV", "a", "1=0", "2=0"); //add freeztime start code
register_event("CurWeapon", "Event_CurWeapon", "be", "1=1");
register_event("SetFOV", "Event_SetFOV", "be");
register_event("DeathMsg", "Event_DeathMsg", "a");
register_logevent("LogEvent_Round_Start", 2, "0=World triggered", "1=Round_Start"); //freezetime end code
register_logevent("LogEvent_Round_End", 2, "1=Round_End");
register_message(SVC_INTERMISSION, "Message_Intermission");
register_message(get_user_msgid("StatusValue"), "Message_StatusValue");
register_event("StatusValue", "setTeam", "be", "1=1");
register_event("StatusValue", "on_ShowStatus", "be", "1=2", "2!0");
register_event("StatusValue", "on_HideStatus", "be", "1=1", "2=0");
// Must use post or else is_user_alive will return false when dead player respawns
RegisterHam(Ham_Spawn, "player", "Ham_Spawn_Post", 1); // cz bots won't hook here must RegisterHamFromEntity
RegisterHam(Ham_TakeDamage, "player", "Ham_TakeDamage_Pre");
gHudSyncAimInfo = CreateHudSyncObj();
gMaxPlayers = get_maxplayers();
gPlayerName = get_xvar_id("PlayerName");

register_forward(FM_PlayerPreThink, "Bug_Ciche_Chodzenie")

#if defined SQL
/* SQL */
register_cvar("bf2rank_db_host", "localhost");
register_cvar("bf2rank_db_user", "root");
register_cvar("bf2rank_db_pass", "root");
register_cvar("bf2rank_db_database", "bf2rank");
#endif
}
public Bug_Ciche_Chodzenie(id)
{
	    if(is_user_alive(id))
	    {
			    new Float:fVector[3];
			    pev(id, pev_velocity, fVector)
			    new Float: fSpeed = floatsqroot(fVector[0]*fVector[0]+fVector[1]*fVector[1]+fVector[2]*fVector[2])
			    if((fm_get_user_maxspeed(id) * 5) > (fSpeed*9))
					    set_pev(id, pev_flTimeStepSound, 300)
	    }
}



#433541 Serwer się zawiesza - bf2_colorchat

Napisano przez Bad Day w 18.07.2012 11:04 w Problemy

Witam.
Serwer czasami się zawiesza.
W senise, że serwer jest wł., ale jak się wchodzi to nie można dośc do drużyny, nic, trzeba reset serweru trzeba zrobić.

Taki wyciąg z loga
L 07/18/2012 - 11:34:10: Start of error session.
L 07/18/2012 - 11:34:10: Info (map "gg_italiest") (file "addons/amxmodx/logs/error_20120718.log")
L 07/18/2012 - 11:34:10: [nVault] Invalid vault id: 0
L 07/18/2012 - 11:34:10: [AMXX] Displaying debug trace (plugin "bf2rank_colorchat.amxx")
L 07/18/2012 - 11:34:10: [AMXX] Run time error 10: native error (native "nvault_set")
L 07/18/2012 - 11:34:10: [AMXX]    [0] save.inl::vault_server_save (line 290)
L 07/18/2012 - 11:34:10: [AMXX]    [1] save.inl::server_save (line 144)
L 07/18/2012 - 11:34:10: [AMXX]    [2] forwards.inl::plugin_end (line 117)
Czyżbym miał coś źle ustawione ?



#433539 BF2 bu MisieQ - przeróbka Hud by Misieq

Napisano przez Bad Day w 18.07.2012 11:00 w Prośby o modyfikacje modów

F5



#432952 BF2 bu MisieQ - przeróbka Hud by Misieq

Napisano przez Bad Day w 16.07.2012 20:00 w Prośby o modyfikacje modów

Refresh



#432361 BF2 bu MisieQ - przeróbka Hud by Misieq

Napisano przez Bad Day w 15.07.2012 13:22 w Prośby o modyfikacje modów

Może nie trudny ang., ale że nie piszę pluginów, to nie widzę oczywistych rzeczy widocznych dla większości :(

Jednakże dużo nie zmieniła ta zmiena [jednakże dziękuję za pomoc] i nadal
//// bf2rank_colorchat.sma
// bf2/hud.inl(24) : error 017: undefined symbol "TASK_HUD"
// bf2/hud.inl(33) : error 017: undefined symbol "TASK_HUD"
// bf2/hud.inl(40) : error 017: undefined symbol "gHUD"
// bf2/hud.inl(40) : warning 215: expression has no effect
// bf2/hud.inl(40) : warning 215: expression has no effect
// bf2/hud.inl(40) : error 001: expected token: ";", but found ")"
// bf2/hud.inl(40) : error 029: invalid expression, assumed zero
// bf2/hud.inl(40) : fatal error 107: too many error messages on one line
//
// Compilation aborted.
// 6 Errors.
// Could not locate output file compiled\bf2rank_colorchat.amx (compile failed).

Wycinek z pliku hud.inl
//Displays the HUD to the user
public DisplayHUD(id)
{
    id -= TASK_HUD;  -  [b]24[/b]
	   
    if ( !get_pcvar_num(gPcvarBF2Active) || !get_pcvar_num(gPcvarStatusText) )
		    return;
    if ( !is_user_alive(id) || is_user_bot(id) )
		    return;
	   
    if(!is_user_connected(id))
    {
		    remove_task(id+TASK_HUD); - [b]33[/b]
		    return;
    }
    set_hudmessage(227, 96, 8, 0.05, 0.15, 0, 0.0, 0.3, 0.0, 0.0, 3)
    if ( !gStatsLoaded[id] )
    {
		    ShowSyncHudMsg(id, gHUD,"[%s] Wczytuje Dane...", gPluginName) - [b]40[/b]
    }
    else
    {
		    new rank = g_PlayerRank[id];
		    new nextrank;
		    switch(rank)
		    {
				    case 16, 19, 20, 21: nextrank = 15;
				    case 17: nextrank = 7;
				    case 18: nextrank = 8;
				    default: nextrank = rank;
		    }
		    ++nextrank;
		    new nextrankxp = floatround(gRankXP[nextrank] * get_pcvar_float(gPcvarXpMultiplier));
		    if ( !get_pcvar_num(gPcvarBadgesActive) )
		    {
				    ShowSyncHudMsg(id, gHUD,"[%s]^nRanga: %s^nZabicia: %d/%d", gPluginName, gRankName[rank], totalkills[id], nextrankxp)
		    }
		    else
		    {
				    ShowSyncHudMsg(id, gHUD,"[%s]^nRanga: %s^nIlosc Odznak: %d^nZabicia: %d/%d", gPluginName, gRankName[rank], numofbadges[id], totalkills[id], nextrankxp)
		    }
    }
}



#432276 BF2 bu MisieQ - przeróbka Hud by Misieq

Napisano przez Bad Day w 15.07.2012 09:38 w Prośby o modyfikacje modów

Refresh, plizz help.



#431751 BF2 bu MisieQ - przeróbka Hud by Misieq

Napisano przez Bad Day w 13.07.2012 21:00 w Prośby o modyfikacje modów

Witam znowu :P
Jako słaby w tych rzeczach, kożystający b. dobrze z poradników, to ów języka nadal nie mogę zrozumieć :(

Pliki z moda przerobionego przez MisieQ, jak na razie dodane grawitacja zamiast scouta [dzięluję MisieQ za pomoc] + prefix danej rangi [bez problemowo].

Jednakże tutaj się pojawił :(
Prosiłbym znowu o pomoc.

// ----------------------------------------
//// bf2rank.sma
// bf2/forwards.inl(81) : error 017: undefined symbol "et_task"
// bf2/ham.inl(84) : warning 217: loose indentation
// D:\scripting\bf2rank.sma(307) : warning 217: loose indentation
// D:\scripting\bf2rank.sma(311) : warning 217: loose indentation
// D:\scripting\bf2rank.sma(338) : warning 204: symbol is assigned a value that
is never used: "gPcvarFreeAwp"
//
// 1 Error.
// Could not locate output file compiled\bf2rank.amx (compile failed).
//
// Compilation Time: 0,8 sec
// ----------------------------------------
//// bf2rank_colorchat.sma
// bf2/forwards.inl(81) : error 017: undefined symbol "et_task"
// bf2/hud.inl(24) : error 017: undefined symbol "TASK_HUD"
// bf2/hud.inl(33) : error 017: undefined symbol "TASK_HUD"
// bf2/hud.inl(40) : error 017: undefined symbol "gHUD"
// bf2/hud.inl(40) : warning 215: expression has no effect
// bf2/hud.inl(40) : warning 215: expression has no effect
// bf2/hud.inl(40) : error 001: expected token: ";", but found ")"
// bf2/hud.inl(40) : error 029: invalid expression, assumed zero
// bf2/hud.inl(40) : fatal error 107: too many error messages on one line
//
// Compilation aborted.
// 7 Errors.
// Could not locate output file compiled\bf2rank_colorchat.amx (compile failed).

Na wszelki wypadek podaję pliki od BF2 by MisieQ [z dodanym [prefix] w say i ulepszonym hud [co daje te errory]].


Z góry thx.

Załączone pliki




#430600 [ROZWIĄZANE] Przeróbka grawitacji na BF2

Napisano przez Bad Day w 10.07.2012 18:37 w Prośby o modyfikacje modów

Dziękować.

Działa, zmianiłem kilka razy wartości i działa, kompiluje się dobrze.

Dziękuję.



#430599 Deagles' Map Management 3.24 - NOWA WERSJA! [29-01-2012]

Napisano przez Bad Day w 10.07.2012 18:36 w Pluginy AMXX

Cvary
    dmap_strict 0/1 - (Domyślnie 0) Jeżeli ustawimy na 1 jedynie mapy z mapcycle mogą być nominowane.
    enforce_timelimit 0/1 - (Domyślnie 0) zmiana mapy tylko i wyłącznie po upływie czasu
    timelimit czyli czasu mapy, kiedy jest ustawione na 1.
    emptymap_allowed 0/1 - (Domyślnie 0) Aby włączyć / wyłączyć tę funkcję
    amx_emptymap 0/1 - (Domyślnie "" albo 0 ) Chcesz aby serwer zmieniał na jakąkolwiek mape
    amx_staytime <sec> - (Domyślnie 0) po ilu sekundach można nominować następną mape
    amx_idletime <godz> - (Domyślnie 0) Ile godzin gracz nie możę zostać połączony z serwerm
    nominations_allowed 1/0 - umożliwia godzenie się z nominacjami
    weapon_delay - Na mapach fy_ itp umożliwia czekanie zanim wezmiesz broń
To nie są wszytkie cvary.

W oryginalnym temacie pluginu jest kilka więcej, te co pogrubione [mp_timelimit chyba był, tylko że bez początku mp_].
    amx_emptymap (Default: "de_dust2") The map the server will switch to when nobody is on after the number of seconds specified by the amx_staytime cvar (CVAR loaded when needed)
    [b]amx_extendmap_max (Default: 90) Maksymalny czas grania mapy z przedłużeniem jej.[/b]
   [b] amx_extendmap_step (Default: 15) Ile będzie trwać przedłużenie mapy.[/b]
    amx_idletime (Default: 5) (in hours) How many hours a player can be connected to the server before being considered idle. (CVAR loaded once per map)
   [b] amx_show_activity (Default: 2) ??? (CVAR loaded when needed)[/b]
    amx_staytime (Default: 300) (in seconds) How long before the plugin changes the map to amx_emptymap if the server is empty. (CVAR loaded once per map)
    dmap_strict (Default: 0) If this is set to 1, only maps in the mapcycle can be nominated for the vote (CVAR loaded when needed)
    emptymap_allowed (Default: 0) Enable(1)/disable(0) using a specific map when the server is empty (CVAR loaded when needed)
    enforce_timelimit (Default: 0) Changes map STRICTLY on timelimit, when this is set to 1. (CVAR loaded when needed)
   [b] mp_timelimit (No default set by plugin) (CVAR loaded when needed)[/b]
    nominations_allowed (Default: 1) Enable/Disable Accepting nominations (CVAR loaded when needed)
    weapon_delay <0|1> (Default: 1) On aim maps and small maps, you can enable/disable "Waiting for vote to allow buying of weapons" (CVAR loaded when needed)

Ale nadal nie wiem do czego jest amx_show_activity :(

I pyt. odnośnie innych komend/cvar'ów.
Commands: dmap_banlastmaps <n>; dmap_cyclemode; dmap_default; dmap_freeze <ON|OFF>; dmap_mapsnum <n>;
Commands: dmap_mapsurl <url>; dmap_maxcustom <n>; dmap_messages <n(minutes)>; dmap_nominate <map>;
Commands: dmap_nominations <n>; dmap_quietmode <OFF|NOSOUND|SILENT>; dmap_rockthevote; dmap_rtvpercent <n>;
Commands: dmap_rtvplayers <n>; dmap_rtvtoggle; dmap_rtvwait <n>; dmap_status; dmap_votemode;
Cvars:    amx_emptymap <map>; amx_idletime <n>; amx_staytime <n>; dmap_strict <0|1>;
Cvars:    emptymap_allowed <0|1>; enforce_timelimit <0|1>; amx_extendmap_max <n>; amx_extendmap_step <n>;
Cvars:    nominations_allowed <0|1>; weapon_dela
Te komendy można dodawać normalnie jako cvary, bo dlaczego nie są normalnie w temacie dodane ?



#429837 [ROZWIĄZANE] Przeróbka grawitacji na BF2

Napisano przez Bad Day w 08.07.2012 12:54 w Prośby o modyfikacje modów

Yyy, właśnie zrobiłem to co podał Misieq i takie warningi mi wyskakują.



#429714 [ROZWIĄZANE] Przeróbka grawitacji na BF2

Napisano przez Bad Day w 07.07.2012 21:18 w Prośby o modyfikacje modów

//// bf2rank.sma
// bf2/ham.inl(47) : error 017: undefined symbol "set_grav"
// D:\scripting\bf2rank.sma(331) : warning 204: symbol is assigned a value that
is never used: "gPcvarFreeAwp"
//
// 1 Error.
// Could not locate output file compiled\bf2rank.amx (compile failed).
//
// Compilation Time: 0,84 sec
// ----------------------------------------
//// bf2rank_colorchat.sma
// bf2/badgepowers.inl(123) : error 017: undefined symbol "g_grav"
// bf2/badgepowers.inl(123) : warning 215: expression has no effect
// bf2/badgepowers.inl(123) : error 001: expected token: ";", but found "]"
// bf2/badgepowers.inl(123) : error 029: invalid expression, assumed zero
// bf2/badgepowers.inl(123) : fatal error 107: too many error messages on one li
ne
//
// Compilation aborted.
// 4 Errors.
// Could not locate output file compiled\bf2rank_colorchat.amx (compile failed).

Wyskakują mi takie warning'i.
Czyżbym coś źle robił :(

A i przy okazji dzięki za opis jak się oblicza wartości dla grawitacji, bo nie wiedziałem :P

___
A i sry za zły dział na początku.



#429652 [ROZWIĄZANE] Przeróbka grawitacji na BF2

Napisano przez Bad Day w 07.07.2012 18:16 w Prośby o modyfikacje modów

Kiedyś poprosiłem o pomoc w sprawie przerobienia w modzie BF2 by Misieq.
Chodziło o zmianę zdobycia scouta na grawitację i dostałem pomoc
http://amxx.pl/topic...kowanie-scouta/

Spr. i dizałało, ale nie zmieniałem wartości.
Po długim czasie zrobiłem serwer i spr. znowu ów kod, nadal działa, ale ...
Nie ważne jakie wartości wpisuje w pliku badgepowers.inl i kompiluje na nowo, to grawitacja się nie zmienia.

Czy można o jaką pomoc lub wskazówkę ?



#422182 GabenMod

Napisano przez Bad Day w 19.06.2012 19:30 w Pluginy AMXX

Dołączona grafika
Dołączona grafika
Dołączona grafika
Dołączona grafika