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
 

Mandez - zdjęcie

Mandez

Rejestracja: 07.11.2010
Aktualnie: Nieaktywny
Poza forum Ostatnio: 19.09.2011 14:02
-----

#296486 Podejmę się stworzenia RoundSounda.

Napisane przez ogury w 15.09.2011 17:38

Nie, muzyczka gra do zakończenia - oczywiście w alt_end_round_sounds - innego pluginu nie używam :>


#295418 Podejmę się stworzenia RoundSounda.

Napisane przez ogury w 12.09.2011 16:45

Podejmę się stworzenia RoundSounda, dla każdego, bez żadnych dodatkowych kryteriów.
-Robię maksymalnie 5-10 nutek dziennie (zależy od chęci)
-1 osoba/dzień
Pisz posta według wzoru:
1. <Nazwa> - <link youtube>
2. <Nazwa> - <link youtube>
3. <Nazwa> - <link youtube>
4. <Nazwa> - <link youtube>
5. <Nazwa> - <link youtube>



#296126 Zmiana położenia wiadomości HUD

Napisane przez Droso w 14.09.2011 14:39

#include <amxmod>
#include <amxmisc>
#define MAX_MESSAGES  10new g_Messages[MAX_MESSAGES][384]
new g_MessagesNum
new g_Current
new g_teamScore[2]
public plugin_init()
{
register_plugin("Info. Messages 2.1", "1.2", "AMXX Dev Team | 2.0 by graczu")
register_srvcmd("amx_hud_msg", "setMessage")
register_cvar("amx_hud_msgtime", "80")
register_event("TeamScore", "team_score", "a")new lastinfo[8]
get_localinfo("lastinfomsg", lastinfo, 7)
g_Current = str_to_num(lastinfo)
set_localinfo("lastinfomsg", "")
}

public infoMessage()
{
if (g_Current >= g_MessagesNum)
  g_Current = 0new hostname[64]
new nextmap[32]
new timeleft = get_timeleft()
new timeformat[32]
new maxrounds = get_cvar_num("mp_maxrounds")
new roundsleft[32]
get_cvar_string("hostname", hostname, 63)
get_cvar_string("amx_nextmap", nextmap, 31)
if (timeleft > 0)
{
  new timeleftVar[6]
  get_cvar_string("amx_timeleft", timeleftVar, 6)
  format(timeformat, 31, "%s", timeleftVar)
} else {
  format(timeformat, 31, "No Limit")
}if(maxrounds > 0)
{
  format(roundsleft, 31, "%i", maxrounds - (g_teamScore[0] + g_teamScore[1]))
} else {
  format(roundsleft, 31, "No Round Limit")
}
new afterReplaceMSG[384]
formatex(afterReplaceMSG, 380, "%s", g_Messages[g_Current])replace(afterReplaceMSG, 380, "%hostname%", hostname)
replace(afterReplaceMSG, 380, "%nextmap%", nextmap)
replace(afterReplaceMSG, 380, "%timeleft%", timeformat)
replace(afterReplaceMSG, 380, "%roundsleft%", roundsleft)
new color1=random_num(0,255)
new color2=random_num(0,255)
new color3=random_num(0,255)set_hudmessage(color1, color2, color3, 0.54, 0.66, 1, 1.0, 10.0, 0.01, 0.1, 3)
show_hudmessage(0, "%s", afterReplaceMSG)
client_print(0, print_console, "%s", afterReplaceMSG)
++g_Current

new Float:freq_im = get_cvar_float("amx_hud_msgtime")

if (freq_im > 0.0)
  set_task(freq_im, "infoMessage", 12345)
}
public setMessage()
{
if (g_MessagesNum >= MAX_MESSAGES)
{
  return PLUGIN_HANDLED
}remove_task(12345)
read_argv(1, g_Messages[g_MessagesNum], 380)

while (replace(g_Messages[g_MessagesNum], 380, "\n", "^n")) {}

g_MessagesNum++

new Float:freq_im = get_cvar_float("amx_hud_msgtime")

if (freq_im > 0.0)
  set_task(freq_im, "infoMessage", 12345)

return PLUGIN_HANDLED
}
public team_score()
{
new team[2]

read_data(1, team, 1)
g_teamScore[(team[0]=='C') ? 0 : 1] = read_data(2)
}public plugin_end()
{
new lastinfo[8]
num_to_str(g_Current, lastinfo, 7)
set_localinfo("lastinfomsg", lastinfo)
}

Look
  • +
  • -
  • 1


#296104 Zmiana położenia wiadomości HUD

Napisane przez Skull3D w 14.09.2011 13:05

W amxx studio masz opcje hud generator
I tam sobie ustaw pozycje i daj napis i bedziesz wiedzial gdzie jest.

a potem SKOMPILUJ
bo chyba tego nie zrobiles

+masz amxx skompilowane


sma -

#include <amxmod>
#include <amxmisc>
#define MAX_MESSAGES  10new g_Messages[MAX_MESSAGES][384]
new g_MessagesNum
new g_Current
new g_teamScore[2]
public plugin_init()
{
register_plugin("Info. Messages 2.1", "1.2", "AMXX Dev Team | 2.0 by graczu")
register_srvcmd("amx_hud_msg", "setMessage")
register_cvar("amx_hud_msgtime", "80")
register_event("TeamScore", "team_score", "a")new lastinfo[8]
get_localinfo("lastinfomsg", lastinfo, 7)
g_Current = str_to_num(lastinfo)
set_localinfo("lastinfomsg", "")
}
 
public infoMessage()
{
if (g_Current >= g_MessagesNum)
  g_Current = 0new hostname[64]
new nextmap[32]
new timeleft = get_timeleft()
new timeformat[32]
new maxrounds = get_cvar_num("mp_maxrounds")
new roundsleft[32]
get_cvar_string("hostname", hostname, 63)
get_cvar_string("amx_nextmap", nextmap, 31)
if (timeleft > 0)
{
  new timeleftVar[6]
  get_cvar_string("amx_timeleft", timeleftVar, 6)
  format(timeformat, 31, "%s", timeleftVar)
} else {
  format(timeformat, 31, "No Limit")
}if(maxrounds > 0)
{
  format(roundsleft, 31, "%i", maxrounds - (g_teamScore[0] + g_teamScore[1]))
} else {
  format(roundsleft, 31, "No Round Limit")
}
new afterReplaceMSG[384]
formatex(afterReplaceMSG, 380, "%s", g_Messages[g_Current])replace(afterReplaceMSG, 380, "%hostname%", hostname)
replace(afterReplaceMSG, 380, "%nextmap%", nextmap)
replace(afterReplaceMSG, 380, "%timeleft%", timeformat)
replace(afterReplaceMSG, 380, "%roundsleft%", roundsleft)
new color1=random_num(0,255)
new color2=random_num(0,255)
new color3=random_num(0,255)set_hudmessage(color1, color2, color3, 0.54, 0.66, 1, 1.0, 10.0, 0.01, 0.1, 3)
show_hudmessage(0, "%s", afterReplaceMSG)
client_print(0, print_console, "%s", afterReplaceMSG)
++g_Current
 
new Float:freq_im = get_cvar_float("amx_hud_msgtime")
 
if (freq_im > 0.0)
  set_task(freq_im, "infoMessage", 12345)
}
public setMessage()
{
if (g_MessagesNum >= MAX_MESSAGES)
{
  return PLUGIN_HANDLED
}remove_task(12345)
read_argv(1, g_Messages[g_MessagesNum], 380)
 
while (replace(g_Messages[g_MessagesNum], 380, "\n", "^n")) {}
 
g_MessagesNum++
 
new Float:freq_im = get_cvar_float("amx_hud_msgtime")
 
if (freq_im > 0.0)
  set_task(freq_im, "infoMessage", 12345)
 
return PLUGIN_HANDLED
}
public team_score()
{
new team[2]
 
read_data(1, team, 1)
g_teamScore[(team[0]=='C') ? 0 : 1] = read_data(2)
}public plugin_end()
{
new lastinfo[8]
num_to_str(g_Current, lastinfo, 7)
set_localinfo("lastinfomsg", lastinfo)
}


Skompiluj w amxx.pl/kompilator


#271512 Server not available

Napisane przez Szyfrant w 19.07.2011 10:57

usun serwery w strefie admina Strefa admina --> serwery ---> serwery
i zresetuj serwy gier lub zmien mape
  • +
  • -
  • 1


#186493 Lekka modyfikacja

Napisane przez daniosik w 07.11.2010 18:35

Zobacz to:
#include <amxmodx>
#include <amxmisc>

#define PLUGIN "Wymuszanie interpu"
#define VERSION "1.0"
#define AUTHOR "StreaM*"

/* Co ile sekund ma wymuszac linijka 11 */
public plugin_init() {
register_plugin("Wymuszanie interpu", "1.0", "StreaM*")
set_task(5.0, "interp", _, _, _, "b")
}
/* Wartosc interpu mozesz zmienic w 12 linijce */
public interp()
{
client_cmd(0, "ex_interp 0.01")
}

public client_putinserver(id){

set_task(7.0, "hud", _, _, _, "a", 1)
}

public hud(id){
new name[32]
get_user_name(id,name,31)
set_hudmessage(0, 0, 255, 0.01, -1.0, 0, 6.0, 6.0)
show_hudmessage(id, "%s twoj interp wynosi 0.01", name) // wpisz sobie co chcesz
}

  • +
  • -
  • 1