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
 

Kserokopie - zdjęcie

Kserokopie

Rejestracja: 31.01.2011
Aktualnie: Nieaktywny
Poza forum Ostatnio: 07.07.2012 14:09
*****

Moje tematy

Prośba o modyfikacje amxbans_ssban

29.01.2012 13:00

Witam
Próbowałem zmodyfikować amxbans_ssban jednakże z niepowodzeniem.
Chciałem by amxbans_ssban banował non steamy przez neobans 3.1.
Oto co udało mi się zrobić:
#include <amxmodx>
#include <amxmisc>
#include <fakemeta>
#include <colorchat>
#define PLUGIN "AMXBans: Screens"
#define VERSION "Gm 1.6"
#define AUTHOR "Larte Team"
#define PREFIX "!y[!tAMXBans!y]"
new victim
new CvarMaxss
new CvarInterval
new CvarTimestamptype
new CvarHUDText
new CvarBanTime
new CvarBanReason
new CountMenu
new CvarCountScreens
new g_max_players
new g_user_ids[33]
new g_player[33]
public plugin_init ()
{
register_plugin(PLUGIN, VERSION, AUTHOR)

register_dictionary("amxbans_ssban.txt")

register_clcmd("amx_ssban", "cmdScreen", ADMIN_BAN, "<authid, nick or #userid> <count of screens>")
register_clcmd("amx_banss", "cmdScreen", ADMIN_BAN, "<authid, nick or #userid> <count of screens>")
register_clcmd("amx_ss", "cmdScreen", ADMIN_BAN, "<authid, nick or #userid> <count of screens>")
register_clcmd("amx_screen", "cmdScreen", ADMIN_BAN, "<authid, nick or #userid> <count of screens>")

register_clcmd("amx_ssbanmenu", "cmdScreenMenu", ADMIN_BAN, " - display screens menu")

CvarMaxss = register_cvar("amx_maxscreens", "10")
CvarInterval = register_cvar("amx_interval", "1.0")
CvarTimestamptype = register_cvar("amx_stamptype", "3")
CvarHUDText = register_cvar("amx_hudtext", "Cheese! :)")
CvarCountScreens = register_cvar("amx_screenscount", "1 2 3 4 5 6 7 8 9")

CvarBanTime = register_cvar("amx_ssbantime", "0")
CvarBanReason = register_cvar("amx_ssbanreason", "Screens, go gm-community.net")

register_cvar("amxbans_ssversion", VERSION, FCVAR_SERVER | FCVAR_SPONLY)
g_max_players = get_maxplayers()

new configsDir[64]
get_configsdir(configsDir, 63)

return server_cmd("exec %s/amxbans-ssban.cfg", configsDir)
}
public plugin_cfg()
{
new line[128], token[10]
get_pcvar_string(CvarCountScreens, line, 127)

new stemp[128]
formatex(stemp, 127, "%L", LANG_SERVER, "SS_MENU_COUNT_HEADER")

CountMenu = menu_create(stemp, "CountScreensMenu")
while(contain (line, " ") != -1)
{
strbreak(line, token, 9, line, 127)
formatex(stemp, 127, "%L", LANG_SERVER, "SS_MAKE_X_SCREENS", token)
menu_additem(CountMenu, stemp, token)
}

formatex(stemp, 127, "%L", LANG_SERVER, "SS_MORE")
menu_setprop(CountMenu, MPROP_NEXTNAME, stemp)

formatex(stemp, 127, "%L", LANG_SERVER, "SS_BACK")
menu_setprop(CountMenu, MPROP_BACKNAME, stemp)

formatex(stemp, 127, "%L", LANG_SERVER, "SS_EXIT")
menu_setprop(CountMenu, MPROP_EXITNAME, stemp)

return set_task(5.0, "add_menu")
}
public add_menu()
{
new stemp[128]
formatex(stemp, 127, "%L", LANG_SERVER, "SS_MENU_NAME")

AddMenuItem(stemp, "amx_ssbanmenu", ADMIN_BAN, "AMXBans: Screens")

return PLUGIN_CONTINUE
}
public cmdScreenMenu(id, level, cid)
{
if(!cmd_access(id, level, cid, 1))
{
return PLUGIN_HANDLED
}

new stemp[128]
formatex(stemp, 127, "%L", LANG_SERVER, "SS_MENU_PLAYER_HEADER")

new menu = menu_create(stemp, "PlayersMenu")

new i, name[32], tempid[10]

for(i = 1; i <= g_max_players; i++)
{
if(is_user_connected(i))
{
get_user_name(i, name, 31)
num_to_str(i, tempid, 9)
g_user_ids[i] = get_user_userid(i)
menu_additem(menu, name, tempid, 0)
}
}

formatex(stemp, 127, "%L", LANG_SERVER, "SS_MORE")
menu_setprop(menu, MPROP_NEXTNAME, stemp)

formatex(stemp, 127, "%L", LANG_SERVER, "SS_BACK")
menu_setprop(menu, MPROP_BACKNAME, stemp)

formatex(stemp, 127, "%L", LANG_SERVER, "SS_EXIT")
menu_setprop(menu, MPROP_EXITNAME, stemp)

return menu_display (id, menu, 0)
}
public PlayersMenu(id, menu, item)
{
if(item == MENU_EXIT)
{
return PLUGIN_HANDLED
}

new data[6], iName[64]
new access, callback
menu_item_getinfo(menu, item, access, data, 5, iName, 63, callback)

g_player[id] = str_to_num (data)
menu_display(id, CountMenu, 0)

return PLUGIN_HANDLED
}
public CountScreensMenu(id, menu, item)
{
if(item == MENU_EXIT)
{
return PLUGIN_HANDLED
}

new data[6], iName[64]
new access, callback
new player = g_player[id]

menu_item_getinfo(menu, item, access, data, 5, iName, 63, callback)

if(g_user_ids[player] == get_user_userid(player))
{
client_cmd(id, "amx_ssban #%d %s", g_user_ids[player], data)
}

return PLUGIN_HANDLED
}
public cmdScreen(id, level, cid)
{
if(!cmd_access(id, level, cid, 3))
{
return PLUGIN_HANDLED
}

new arg1[24], arg2[4]

read_argv(1, arg1, 23)
read_argv(2, arg2, 3)

new screens = str_to_num(arg2)
victim = cmd_target(id, arg1, 1)

if(!victim)
{
return PLUGIN_HANDLED
}

if(screens > get_pcvar_num(CvarMaxss))
{
console_print(id, "%L", id, "SS_COUNT_NO")

return PLUGIN_HANDLED
}

new Float:interval = get_pcvar_float(CvarInterval)
new array[2]

array[0] = id
array[1] = victim

set_task(interval, "takeScreen", 0, array, 2, "a", screens)
set_task(interval * float(screens) + 1.0, "victimBan", _, array, 2)

return PLUGIN_HANDLED
}
public takeScreen(array[2])
{
new victim = array[1]
new id = array[0]
new ip[16]
new SteamID[33]

new timestamp[32], HUDText[32], name[32], adminname[32]
get_time("%d.%m.%Y - %H:%M:%S", timestamp, 31)
get_user_name(victim, name, 31)
get_user_ip(victim, ip, 63, 1)
get_user_authid(victim, SteamID, 63)
get_user_name(id, adminname, 31)
get_pcvar_string(CvarHUDText, HUDText, 31)

switch(get_pcvar_num(CvarTimestamptype))
{
case 0:
{
ColorChat(0, RED, "AMXBans#^x01 Screenshot zrobiony graczowi ^x03%s^x01 przez admina ^x04%s^x01 (Data : %s)", name, adminname, timestamp);
client_cmd(victim, "snapshot")
client_cmd(id, "snapshot")
log_to_file("screenlog.txt"," Name: ^"%s^" | IP: ^"%s^" | SteamID: %s | Admin: ^"%s^" ^n",name,ip, SteamID, adminname)
}

case 1:
{
ColorChat(0, RED, "AMXBans#^x01 Screenshot zrobiony graczowi ^x03%s^x01 przez admina ^x04%s^x01 (Data : %s)", name, adminname, timestamp);
client_cmd(victim, "snapshot")
client_cmd(id, "snapshot")
log_to_file("screenlog.txt"," Name: ^"%s^" | IP: ^"%s^" | STEAMID: %s | Admin: ^"%s^" ^n",name,ip, SteamID, adminname)
}

case 2:
{
set_hudmessage(0, 225, 0, 0.02, 0.90, 0, 1.0, 2.0);
show_hudmessage (victim, "%s", HUDText);
client_cmd(victim, "snapshot")
client_cmd(id, "snapshot")
log_to_file("screenlog.txt"," Name: ^"%s^" | IP: ^"%s^" | STEAMID: %s | Admin: ^"%s^" ^n",name,ip, SteamID, adminname)
}

case 3:
{
set_hudmessage(0, 225, 0, 0.02, 0.90, 0, 1.0, 2.0);
show_hudmessage (victim, "%s", HUDText);
ColorChat (0, RED, "AMXBans#^x01 Screenshot zrobiony graczowi ^x03%s^x01 przez admina ^x04%s^x01 (Data : %s)", name, adminname, timestamp);
client_cmd(victim, "snapshot")
client_cmd(id, "snapshot")
log_to_file("screenlog.txt"," Name: ^"%s^" | IP: ^"%s^" | STEAMID: %s | Admin: ^"%s^" ^n",name,ip, SteamID, adminname)
}
}

return PLUGIN_CONTINUE
}
public victimBan(array[2])
{
new Reason[50]

new victimId = get_user_userid(array[1])
get_pcvar_string(CvarBanReason, Reason, 49)

static authid[32];
get_user_authid(id, authid, charsmax(authid));

if(!equali(authid, "STEAM_ID_VALVE" , 7))
if(!equali(authid, "STEAM_ID_LAN", 7))
{
return client_cmd(array[0], "amx_nb_ban #%d 10000 %s", victimId, Reason)
}
else
{
return client_cmd(array[0], "amx_ban %d #%d %s", get_pcvar_num(CvarBanTime), victimId, Reason)
}
}

Modyfikowałem ostatnie 13 linijek.
Wersja działająca Załączony plik  amxbans_ssban.sma   7,09 KB  71 Ilość pobrań
  amxbans_ssban.amxx
Proszę o zmodyfikowanie tego pluginu i z góry dziękuje za wszelkie starania.

Blackout ACTA

25.01.2012 18:05

Przykładowy screen:
Dołączona grafika


<style type="text/css">
#blackclose a, #blackclose a:visited { 
text-decoration: none; 
font-family: "Arial",Helvetica,sans-serif
}

#overlayblack {
    background: -moz-radial-gradient(center center 45deg, circle closest-side, transparent 0pt, black 350px) repeat scroll 0 0 transparent;
    background: -webkit-gradient(radial, center center, 0, center center, 350, from(transparent), to(rgba(0, 0, 0, 1)));
background: -o-radial-gradient(center, circle cover, rgba(0,0,0,0) 0%,rgba(0,0,0,0.74) 10%,rgba(0,0,0,1) 19%,rgba(0,0,0,1) 100%); /* Opera 12+ */ 
background: -ms-radial-gradient(center, circle cover, rgba(0,0,0,0) 0%,rgba(0,0,0,0.74) 10%,rgba(0,0,0,1) 19%,rgba(0,0,0,1) 100%); /* IE10+ */ 
background: radial-gradient(center, circle cover, rgba(0,0,0,0) 0%,rgba(0,0,0,0.74) 10%,rgba(0,0,0,1) 19%,rgba(0,0,0,1) 100%); /* W3C */ 
   height: 100%;
   left: 0;
   pointer-events: none;
   position: absolute;
   top: 0;
   width: 200%;
   bottom: 0;
   top: 0;
   right: 0;
   left: 0;
   z-index: 2000;

}

#blackclose {
   text-align: center;
   height: 40px;
   width: 100%;
   left: 0;
   position: fixed;
   top: 0;
   z-index: 2001;
   background: #000;
}

#blackclose a{font-size: 12px; margin-right: 10px; color: #fff; margin-top: 10px;}
#blackclose p {padding: 0px; margin: 0px;}
#blackclose p a{color: #fff; font-size: 30px; padding-top: 20px;}
#blackclose .fright{ float:right; }
</style>

<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"> </script>

<script type="text/javascript">
jQuery(document).ready(function()
{
       function getBlackdownCookie()
       {
               var i, name, value, cookies = document.cookie.split(";");
               for (i = 0; i < cookies.length; i++)
               {
                       name =cookies[i].substr(0, cookies[i].indexOf("="));
                       value = cookies[i].substr(cookies[i].indexOf("=") + 1);
                       name = name.replace(/^\s+|\s+$/g,"");
                       if (name == "blackdownCookie")
                       {
                               return unescape(name);
                       }
               }
       }

       function setBlackdownCookie()
       {
               var exdate = new Date();
               exdate.setDate(exdate.getDate() + 500);
               document.cookie = "blackdownCookie" + "=" + ("1; expires=" + exdate.toUTCString());
       }

       function checkBlackdownCookie()
       {
               var username = getBlackdownCookie("blackdownCookie");
               return (username != null && username != "");
       }

       if (!checkBlackdownCookie())
       {
               jQuery('body').append('<div id="overlayblack"></div>');
               jQuery('body').css('overflow-x','hidden');

               var siteheight = jQuery('body').outerHeight();
               var sitewidth = jQuery('body').outerWidth();

               jQuery('#overlayblack').css('height', siteheight + 400);
               var mouseX = 0;
               var mouseY = 0;
                       jQuery(document).mousemove( function(e) {
                               mouseX = e.pageX - (sitewidth / .2);
                               mouseY = e.pageY - ((siteheight + 400)/2);

                               jQuery('#overlayblack').css({backgroundPosition: mouseX + 'px' + ' ' + mouseY + 'px' });
                       });

               jQuery('body').append('<div id="blackclose"><a href="#" class="fright">zamknij</a><p><a href="http://www.facebook.com/Actazablokowalowiadomosc">niebawem tak może wygl&#261;dać internet - NIE dla ACTA!</a></p></div>');

               jQuery('#blackclose a').click(function(){
                       jQuery('#overlayblack').remove();
                       jQuery('#blackclose').remove();
                       setBlackdownCookie();
               });
       }
});
</script>
Skrypt kopiujemy przed znacznik
</body>
w odpowiednim pliku (w phpbb by przemo templates/#styl#/overall_footer.tpl )

Hostvision vs Niceshoot pod różne serwery.

02.12.2011 20:06

Witam.

Mam do was pytanie. Który według was hosting gier do CS 1.6 (z podanych w tytule tematu) lepszy pod różne mody serwerów ?

Zależy mi najbardziej o jak najmniejsze problemy (małą ilość możliwych crashy) i wygodną grę.
Oczywiście chodzi mi o serwery warszawskie.

W tej chwili posiadam serwer bf2 i 4fun na zabijace i muszę powiedzieć że bardzo często mam crashe i od niedawna dość często występują przerwy techniczne. I planuje właśnie zmianę hostingu.

TP by Kserokopie (mm + server.cfg + liblist.gam)

23.08.2011 21:45

Witam
Przedstawiam wam paczkę team play pod serwer linuxa która zawiera:
-gotowy server.cfg (należy zmienić nazwę serwera cvarem hostname i restartować serwer)
-gotowy liblist.gam
-metamoda v1.19
-AMXMODXa 1.8.1
-pluginy


Lista pluginów:

; AMX Mod X plugins

; 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

; Custom - Add 3rd party plugins here

afkPL.amxx				  ; Wyrzuca afkerow (konfiguracja w amxx.cfg)
hpk_pl.amxx				 ; Wyrzuca graczy ze zbyt wielkim pingiem (konfiguracja w amxx.cfg)
antiflashbug.amxx		   ; Blokuje Bledy mapy - granaty
ad_manager.amxx			 ; Reklamy,ogloszenia, automatyczna odpowiedz
dontsayips.amxx			 ; zakaz reklamy innego serwera
anti_sayEN.amxx			 ; autoreklama cheata = ban
admin_freelook.amxx		 ; admin widzi ze wszystkich kamer
admin_spec_esp.amxx		 ; symuluje WH u admina
adminlisten.amxx			; admin widzi wszystkie rozmowy na say, teamsay, dead
rate.amxx				   ; ustawia interp i rate graczy
logs.amxx				   ; zapisuje nick i IP gracza do pliku IPLog w folderze logs
reconnect_features.amxx	 ; przywraca graczą statystyki i pieniądze po reconnect-cie
c4timer.amxx				; Czas do wybuchu bomby
Admin_Screen3v15.amxx	   ; Robienie SS graczą
deagsmapmanager.amxx		; Plugin do zmiany mapy
32bit_test.amxx			 ; Test na 32 bity
filescheck.amxx			 ; Sprawdza poprawność modeli, dzwięk&#243;w i innych
ptb.amxx					; Wyr&#243;wnuje drużyny
inf_smierc.amxx			 ; Plugin pozwala po zginięciu dać info swojemu Teamowi (cvar ustawiony na 10 sekund)

//////////////////////////////////////////////////////////////////
////////////////////////////Opcjonalne////////////////////////////
//////////////////////////////////////////////////////////////////

;antidoubleduck.amxx		 ; Blokuje podw&#243;jny szybkie kucnięcie tzw. duck
;swear_filter.amxx		   ; Filtruje brzydkie slowa
;afkbombtransfer.amxx		; Przenosi bombe od gracza afk do najbliszrzego grajacego gracza
;zasady.amxx				 ; Zasady Serwera
;xredirect.amxx			  ; Przekierowanie oraz lista serwer&#243;w
;spawnprotection.amxx		; Spawn Protection
;amx_transfer.amxx		   ; Pozwala przerzucac gracza, bez zabijania go
;amx_banconfig.amxx		  ; Ban na config poprawiona wersja
;bad_camper.amxx			 ; Anty kamp
;M_Antirusher_2.6_alfa.amxx  ; { M Antirusher 2.6 alfa + graficzne linie na ziemi dla map
;in_game_ads.amxx			; {
;admin_check.amxx			; Pokazuje adminow online
;alt_end_round_sounds.amxx   ; Muzyka na koniec rundy
;loadingsound.amxx		   ; Muzyka przy podlaczaniu do serwera
+ Atac
; ATAC Plugins
atac.amxx

; Punishment Plugins
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


; Addon Plugins
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


; 3rd Party Addons/Punishments
Download:
Zippyshare.com - pack by Kserokopie.zip

Plugin który zamiania drużyny

02.04.2011 13:38

Witam

Proszę o zmodyfikowanie pluginu Team Swap
/*
	Swap teams plugin,
	By Hattrick (c) CsRedDevil.Com
*/

#include <amxmodx>
#include <cstrike>

#pragma semicolon 1

new gMaxPlayers;
new gSwapped = 0;

public plugin_init()
{
	register_plugin("Swap Teams", "1.0", "Hattrick");
	register_logevent("logevent_RoundEnd", 2, "1=Round_End");
	gMaxPlayers = get_maxplayers();
	set_task(2.0, "task_Init");
}

public task_Init()
{
	set_task(float((get_cvar_num("mp_timelimit") * 60) / 2), "task_Bool");
	gSwapped = 0;
}

public task_Bool()
{
	gSwapped = 1;
}

public logevent_RoundEnd()
{
	if (gSwapped != 0)
	{
		set_task(2.5, "task_PluginStop");
		set_task(3.0, "task_PluginStop");
		client_print(0, print_chat, "[Team Swap] Teams has been swapped!");
		set_hudmessage(255, 0, 0, -1.0, 0.65, 1, 0.5, 12.0, 2.0, 2.0, -1);
		show_hudmessage(0, "[Team Swap] Teams has been swapped!^nGood luck & Have fun!");
		for (new user = 1; user <= gMaxPlayers; user++)
		{
			if (!is_user_connected(user))
			{
				return PLUGIN_HANDLED;
			}
			new CsTeams:Team;
			Team = cs_get_user_team(user);
			if (Team == CS_TEAM_T)
			{
				cs_set_user_team(user, CS_TEAM_CT);
			}
			if (Team == CS_TEAM_CT)
			{
				cs_set_user_team(user, CS_TEAM_T);
			}
		}
	}
	return PLUGIN_HANDLED;
}

public task_PluginStop()
{
	server_cmd("amxx pause swap_teams.amxx");
}
On nie wiem czemu nie działa prawidłowo czasem przenosi ale tylko jedną osoby.

Jeśli nie da się tego pluginu zmodyfikować to poproszę o napisanie jakiegoś nowego, który dzielił by czas do końca mapy na pół i wtedy zamieniał drużyny + jakąś informacje np. Drużyny zostały zamienione.