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
 

Woq - zdjęcie

Woq

Rejestracja: 14.04.2009
Aktualnie: Nieaktywny
Poza forum Ostatnio: 13.04.2010 07:23
-----

Moje tematy

Przerobienie

08.04.2010 19:09

Witam, chciałbym przerobić następujący plugin:

/* Plugin generated by AMXX-Studio */

#include <amxmodx>
#include <amxmisc>
#include <csx>

#define PLUGIN "Nowy Plugin"
#define VERSION "1.0"
#define AUTHOR "Sn!ff3r"

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

register_logevent("round_end", 2, "1=Round_End");
}

public round_end()
{
static stats[8], bodyhits[8], players[32], bestscore = 0, bestplayer, besths, num, i

get_players(players, num, "h")
for(i = 0; i <= num; i++)
{
get_user_rstats(players[i], stats, bodyhits)
if(stats[0] > bestscore)
{

bestscore = stats[0]
bestplayer = players[i]
besths = stats[2]
}
}

if(is_user_connected(bestplayer))
{
static name[33]
get_user_name(bestplayer, name, 32)

client_print(0, print_chat, "*** Najlepszym graczem rundy jest %s! ***", name)
client_print(0, print_chat, "*** Zabil %d graczy, w tym %d headshot'ow ***", bestscore, besths)
}
else
{
client_print(0, print_chat, "*** Brak najlepszego gracza rundy... ***")
}
}

W jaki sposób? tak aby nick gracza, ilość zabić i headshotow... były podświetlone innym kolorem ... np danego teamu. Jeszcze dobrze by było aby pozostały tekst był na zielono nie zależnie od ustawionego con_color gracza. Dzięki i pozdrawiam.

Poszukuje najlepszy gracz rundy oraz na serwerze

04.04.2010 03:13

Poszukuję 2óch pluginów.

1szy.
mianowicie...
Najlepszy gracz rundy ... informacja w say.
Najlepszym graczem rundy jest xxx. xx zabić w tym xx HeadShotów.

2gi.
Najlepszy gracz na serwerze.
Gracz xxx prowadzi z wynikiem xx fragów i xx zginięć.

Dziękuję bardzo za pomoc.
Pozdrawiam.

He_granade_effect

15.03.2010 20:04

Witam, czy byłby ktoś w stanie pomóc mi z tym pluginem tak aby odrzut był o jakąś połowę mniejszy no i aby nie blokował graczy NonSteam? dzięki i Pozdrawiam.

//#define USE_AMX

#if defined USE_AMX
 #include <amxmod>
 #include <VexdUM>
#else
 #include <amxmodx>
 #include <engine>
#endif

new gMsgScreenShake , gMsgScreenFade;

#define CVAR_STATUS "he_damage_effect"

public plugin_init() {
  register_plugin("HE damage effect" , "0.2" , "v3x");
  register_event("Damage" , "event_Damage" , "b" , "2>0");
  register_cvar(CVAR_STATUS , "1");
  gMsgScreenShake = get_user_msgid("ScreenShake");
  gMsgScreenFade = get_user_msgid("ScreenFade");
}

#if defined USE_AMX
 #define DEFAULT_VOLUME 0.8
#endif

#define PA_LOW  25.0
#define PA_HIGH 50.0

#if !defined USE_AMX
new Float:gVolume[33];

public client_connect(id) {
  if(!is_user_bot(id)) {
    query_client_cvar(id , "volume" , "cvar_result");
  }
}

public cvar_result(id, const cvar[] , const value[]) {
  gVolume[id] = str_to_float(value);
}
#endif

public event_Damage(id) {
  if(get_cvar_num(CVAR_STATUS) <= 0 
  || !is_user_connected(id) 
  || !is_user_alive(id)
  || is_user_bot(id)) return;
  new iWeapID, attacker = get_user_attacker(id , iWeapID);
  if(!is_user_connected(attacker)) return;
  if(iWeapID == 4) {
    new Float:fVec[3];
    fVec[0] = random_float(PA_LOW , PA_HIGH);
    fVec[1] = random_float(PA_LOW , PA_HIGH);
    fVec[2] = random_float(PA_LOW , PA_HIGH);
    entity_set_vector(id , EV_VEC_punchangle , fVec);
    message_begin(MSG_ONE , gMsgScreenShake , {0,0,0} ,id)
    write_short( 1<<14 );
    write_short( 1<<14 );
    write_short( 1<<14 );
    message_end();

    message_begin(MSG_ONE_UNRELIABLE , gMsgScreenFade , {0,0,0} , id);
    write_short( 1<<10 );
    write_short( 1<<10 );
    write_short( 1<<12 );
    write_byte( 225 );
    write_byte( 0 );
    write_byte( 0 );
    write_byte( 125 );
    message_end();
  }
}  

AntyPrzeklinak - Prośba o przerobienie.

14.04.2009 14:55

Witajcie !
Byłby ktoś tak miły i przerobił mi plugin podany poniżej, tak aby był kompatybilny z amxbans i banował na 5min? Z góry bardzo dziękuję..

#include <amxmod>
#include <amxmisc>
#include <fun>
#define MAX_WORD_NUM 256

new wordfile[] = "addons/amxmodx/configs/wordlist.txt"
new words[MAX_WORD_NUM][32]
new wlen[MAX_WORD_NUM]
new wnum
new kickrs[] = "Zostales Wyrzucony z powodu Braku Kultury"
public handlesay(id,level,cid) {
	new msg[192]
	new i, b, s
	read_args(msg,191)
	replace_all(msg, 191, ",", "")
	replace_all(msg, 191, ".", "")
	replace_all(msg, 191, "[", "")
	replace_all(msg, 191, "]", "")
	replace_all(msg, 191, "{", "")
	replace_all(msg, 191, "}", "")
	replace_all(msg, 191, ",", "")
	replace_all(msg, 191, "-", "")
	replace_all(msg, 191, "_", "")
	replace_all(msg, 191, "=", "")
	replace_all(msg, 191, "+", "")
	replace_all(msg, 191, "*", "")
	replace_all(msg, 191, "!", "")
	replace_all(msg, 191, "@", "")
	replace_all(msg, 191, "#", "")
	replace_all(msg, 191, "$", "")
	replace_all(msg, 191, "%", "")
	replace_all(msg, 191, "&", "")
	replace_all(msg, 191, "(", "")
	replace_all(msg, 191, ")", "")
	for (i=0;i<wnum;++i)
		if ((b=containi(msg,words[i]))!=-1) {
			s = 1
		}

	if (!s)	return PLUGIN_CONTINUE
	new name[32]
	get_user_name(id,name,31)
	new bantag[32]
	get_user_authid( id, bantag, 31 )
	if(is_user_connected(id)){
		server_cmd("banid 5 #%d", get_user_userid(id))
		server_cmd("kick #%d ^"%s^"", get_user_userid(id), kickrs)
	}
	new BanInfo[256]
	new Date[64]
	get_time("%m/%d/%y %H:%M:%S", Date, 63)
	formatex(BanInfo, 255, "%s :: Gracz: ^"%s^" zbanowany za: ^"%s^" STEAM_ID: %s", Date, name, msg, bantag)
	new filepath[64], filename[128]
	get_configsdir( filepath, 63 )
	format(filepath, 63, "%s/swear", filepath)
	formatex(filename, 127, "%s/swear.log", filepath)
	write_file(filename, BanInfo, -1)

	set_hudmessage(250, 15, 15, 0.65, 0.75, 2, 0.02, 6.0, 0.01, 0.1, 10)
	show_hudmessage(0,"* KULTURA PANOWIE *^nGracz: %s^nZbanowany na 5 min za Przeklinanie", name) 
	return PLUGIN_HANDLED
}

public read_wordfile() {
	new line, filename[64]
	build_path(filename,63,wordfile)
	if (!file_exists(filename)) return 0
	while (wnum<MAX_WORD_NUM && read_file(filename,line++,words[wnum],31,wlen[wnum]))
		if (words[wnum][0] != ';') wnum++
	return wnum
}

public plugin_init() {
	register_plugin("auto h*j","0.9.x","dra mod gracz")
	register_clcmd("say","handlesay")
	register_clcmd("say_team","handlesay")
	read_wordfile()
	return PLUGIN_CONTINUE
}