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
 

lesio22 - zdjęcie

lesio22

Rejestracja: 12.11.2011
Aktualnie: Nieaktywny
Poza forum Ostatnio: 09.03.2012 14:09
-----

Moje tematy

Plugin na rate

09.03.2012 11:44

Witam. Tak więc szukam pluginy który wymusił by wszystkie rate na serwerze np. interp 0.01 rate 2500 itp. itd.

[ROZWIĄZANE] dontsayips - problem

07.03.2012 18:13

Witam znalazłem sobie własnie ten plugin http://amxx.pl/topic/700-dont-say-ips/ . Znalazłem sobie dodatkowo że miało by to sie wyświetlać na zielono bbardzo mi sie to spodobało (http://amxx.pl/topic...-w-dont-say-ip/ ) . Tylko gdy chce skompilować to wszystko to wyskakuje error. niestety sam nie potrafie tego zrobić ogarnie to ktoś .?



#define PLUGINNAME "Don't say IPs"
#define VERSION "0.1"
#define AUTHOR "JGHG"
/*
Copyleft 2005
Plugin topic: http://www.amxmodx.o...pic.php?p=90172
Don't say IPs
=============
Messages like "hey join my server 213.34.231.23" are automatically blocked... and another message is printed instead. :-P
Or, you can choose to just ban violators by setting cvar ip_banviolators to 1 and ip_banminutes to how many minutes the violator should be banned. 0 is permanent, 5 is default.
/JGHG
VERSIONS
========
050204 0.1 First version
CREDITS
=======
Requested by lord_inuyasha88.
*/
#include <amxmodx>
#include <regex>
#include <colorchat>
#define PATTERN "(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)" // \b
#define REASON "IP advertising"
#define CVAR_BANMINUTES "ip_banminutes"
#define CVAR_BANVIOLATORS "ip_banviolators"
// Globals below
new Regex:g_result
new g_returnvalue
new g_error[64]
new g_allArgs[1024]
// Globals above
public plugin_modules() {
require_module("regex")
}
public hook_say(id, level, cid) {
read_args(g_allArgs, 1023)
g_result = regex_match(g_allArgs, PATTERN, g_returnvalue, g_error, 63)
switch (g_result) {
case REGEX_MATCH_FAIL: {
log_amx("REGEX_MATCH_FAIL! %s", g_error)
return PLUGIN_CONTINUE
}
case REGEX_PATTERN_FAIL: {
log_amx("REGEX_PATTERN_FAIL! %s", g_error)
return PLUGIN_CONTINUE
}
case REGEX_NO_MATCH: {
return PLUGIN_CONTINUE
}
default: {
if (get_cvar_num(CVAR_BANVIOLATORS)) {
new userid = get_user_userid(id)
new minutesString[10]
get_cvar_string(CVAR_BANMINUTES, minutesString, 9)
new temp[64], banned[16], minutes = get_cvar_num(CVAR_BANMINUTES)
if (minutes)
format(temp, 63, "%L", id, "FOR_MIN", minutesString)
else
format(temp, 63, "%L", id, "PERM")
format(banned, 15, "%L", id, "BANNED")
new authid[32]
get_user_authid(id, authid, 31)
new name[32]
get_user_name(id, name, 31)
log_amx("%s (%s), %s %s because of advertising an IP address. This was written: ^"%s^"", name, authid, banned, temp, g_allArgs)
server_cmd("kick #%d ^"%s (%s %s)^";wait;banid ^"%d^" ^"%s^";wait;writeid", userid, REASON, banned, temp, minutes, authid)
}
else {
ColorChat(id,GREEN,"say ^"*** Zapraszamy***^"");
}
regex_free(g_result)
return PLUGIN_HANDLED // block msg
}
}
return PLUGIN_CONTINUE
}
public plugin_init() {
register_plugin(PLUGINNAME, VERSION, AUTHOR)
register_clcmd("say", "hook_say")
register_cvar(CVAR_BANVIOLATORS, "0")
register_cvar(CVAR_BANMINUTES, "30")
register_dictionary("admincmd.txt")
}

Plugin : "Reklamy w HUD na początku rundy"

04.02.2012 16:38

Witam . Mam zainstalowany ten plugin http://amxx.pl/topic...poczatku-rundy/ . I teraz mam pytanie do was. Jak moge zrobić jak dodam te moje wymarzone teksty do pliku "losowe_wiadomosci" aby każda swieciła na inny kolor nie wiem np. na czerwony czy zielony itp. Wie ktoś moze. ?

Poszukuje Pluginy Informacij o zabójstwie.

23.01.2012 19:55

Witam. Nieraz juz widziałem na innych serwerach plugin że gdy ktoś zabije najlepszego gracza ( czy coś w tym stylu nie wiem jak to określić ) wyświetla się wszystkim że np. " gracz Stefan zostal zatrzymany przez Lopeza" i jeszce tam pisze ile zabitych ile w glowe i takie tam. Wie ktoś może oco mi chodzi .? ( Przykro mi nie wiedziałem jak nazwac temat inaczej -.-)

[Problem] WarmUpPro 5.0 .

07.12.2011 22:43

Witam . Tak więc zainstalowałem plugin WarmUpPro 5.0 i zmieniłem tam sobie ładnie pieknie aby grała w tle muzyka mp3. Niby wszystko ładnie pięknie lecz gdy Zaczyna się rozgrzewka muzyka cały czas się zapętla i jest grana od początku w czym się robi straszny hałas i poprostu nie da się tego słuchać. Podaje kawałek kodu sma. :

public restart_time()
{
client_cmd(0,"mp3 play sound/misc/blabla2.mp3")
new color[10]
new r
new g
new b
get_pcvar_string(RGB, color, 9)
new c = str_to_num(color)
r = c / 1000000
c %= 1000000
g = c / 1000
b = c % 1000

if(wup_on && time_s >= 0)
{
ClearSyncHud(0, sync)

if(time_s < 1)
{
set_cvar_float("sv_restartround",2.0);
g_can_respawn = false;
g_cuchi = false;
g_items = false;
}

if(time_s == 0)
{
wup_on = false;
log_to_file(LOGFILE, "WarmUP Finish")

if( get_pcvar_num(ganador) == 1 )
darresultado()
}

if( get_pcvar_num(mostrarhud) == 1 )
{
set_hudmessage( r, g, b, get_pcvar_float(cvar_x), get_pcvar_float(cvar_y), 1, 6.0, 6.0);
ShowSyncHudMsg(0, sync, "%L", LANG_PLAYER, "MP_DISPLAY", time_s);
}

--time_s;
set_task(1.0,"restart_time")
}
}
/*================================================================================================*/
/************************************** [Winner Info] *********************************************/
/*=============================================================================R=E=Y=M=O=N==A=R=G=*/
public darresultado()
{
new resultadofinal = 0
new name[32]
new mensajes[256]
new bool:g_muchos
mensajes[0] = 0;
name[0] = 0;
g_muchos = false;
resultadofinal = 0

for(new i = 0; i <= get_playersnum() ; i++)
{

if( g_ganadores[i] == resultadofinal )
{
g_muchos = true;
get_user_name(i, name, 31)

formatex(mensajes, 255, "%s, %s", mensajes, name)
}

if( g_ganadores[i] > resultadofinal )
{
name[0] = 0;
mensajes[0] = 0;
g_muchos = false;
resultadofinal = g_ganadores[i]
get_user_name(i, name, 31)
formatex(mensajes, 255, "%s", name)
}
}

if( resultadofinal >= 1 )
{
if( !g_muchos )
{
ColorChat(0, GREEN, "^x04[WUP] The winner is:^x03 %s^x04 with^x03 %d^x04 Flags", name, resultadofinal)
log_to_file(LOGFILE, "The Winner of WarmUP was: %s with %d Flags", name, resultadofinal)
}
else if( g_muchos )
{
ColorChat(0, GREEN, "^x04[WUP] ^x03%s ^x04 Win the WarmUP Rounds with^x03 %d^x04 Flags", mensajes, resultadofinal)
log_to_file(LOGFILE, "%s Win the WarmUP Rounds with %d Flags", mensajes, resultadofinal)
}
}

if( resultadofinal == 0 )
{
ColorChat(0, GREEN, "[WUP] NoBody won the WarmUP Round")
log_to_file(LOGFILE, "NoBody won the WarmUP Round")
}

batata()

}

public batata()
{
for(new i = 0; i <= get_playersnum() ; i++)
{
g_ganadores[i] = 0;
}
}
public plugin_precache()
{
precache_sound("misc/blabla2.mp3")
}



Wie ktoś może jak to zrobić aby muzyka grała normalnie i się nie zapętlała ?