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.
|
Grenade trail problemWszystkie granaty mają ten sam kolor
#2
Napisano 15.07.2012 11:04
zobaczymy czy dobrze cvary wpisane
CoD Mod - IP: 91.224.117.15:27235
JailBreak - IP: 91.224.117.67:27075
Only de_dust2 - IP: 193.33.176.197:27111
Więcej serwerów na: www.NaFarciePL
#3
Napisano 15.07.2012 11:12
grenade_tr 1
grenade_he "255000000" //ustaw kolor dla granatu HE (255 000 000 - czerowny)
grenade_fb "000000255" //ustaw kolor dla Flashbang (000 000 255 - niebieski)
grenade_sg "000255000" //ustaw kolor dla Smokegrenade (000 255 000 - zielony)
#4
Napisano 15.07.2012 11:15
CoD Mod - IP: 91.224.117.15:27235
JailBreak - IP: 91.224.117.67:27075
Only de_dust2 - IP: 193.33.176.197:27111
Więcej serwerów na: www.NaFarciePL
#6 Gość_21977_*
Napisano 15.07.2012 15:05
amx_cvar grenade_fb
#7
Napisano 16.07.2012 17:04
Mam serwer na HLDS. To mi sie wyswietla w konsoli.
/* Grenade Trail 1.0 Author: Jim Cvars: grenade_tr: default 2 0 - None 1 - Random Colors 2 - Nade Specific 3 - Team Specificgrenade_he "255000000" set the trail color of Hegrenade grenade_fb "000000255" set the trail color of Flashbang grenade_sg "000255000" set the trail color of Smokegrenade */ #include <amxmodx> #include <csx>#define PLUGIN "Grenade Trail" #define VERSION "1.0" #define AUTHOR "Jim" new g_cvar_tr new g_cvar_he new g_cvar_fb new g_cvar_sg new g_trailpublic plugin_init() { register_plugin(PLUGIN, VERSION, AUTHOR) g_cvar_tr = register_cvar("grenade_tr", "2") g_cvar_he = register_cvar("grenade_he", "255000000") g_cvar_fb = register_cvar("grenade_fb", "000000255") g_cvar_sg = register_cvar("grenade_sg", "000255000") } public plugin_precache() { g_trail = precache_model("sprites/smoke.spr") } public grenade_throw(id, gid, wid) { new gtm = get_pcvar_num(g_cvar_tr) if(!gtm) return new r, g, b switch(gtm) { case 1: { r = random(256) g = random(256) b = random(256) } case 2: { new nade, color[10] switch(wid) { case CSW_HEGRENADE: nade = g_cvar_he case CSW_FLASHBANG: nade = g_cvar_fb case CSW_SMOKEGRENADE: nade = g_cvar_sg } get_pcvar_string(nade, color, 9) new c = str_to_num(color) r = c / 1000000 c %= 1000000 g = c / 1000 b = c % 1000 } case 3: { switch(get_user_team(id)) { case 1: r = 255 case 2: b = 255 } } } message_begin(MSG_BROADCAST, SVC_TEMPENTITY) write_byte(TE_BEAMFOLLOW) write_short(gid) write_short(g_trail) write_byte(10) write_byte(5) write_byte(r) write_byte(g) write_byte(<img src='https://amxx.pl/public/style_emoticons/<#EMO_DIR#>/cool.png' class='bbc_emoticon' alt='B)' /> write_byte(192) message_end() }
Tutaj sma pluginu.
#8 Gość_21977_*
Napisano 16.07.2012 17:49
grenade_tr 2 grenade_he "255000000" //ustaw kolor dla granatu HE (255 000 000 - czerowny) grenade_fb "000000255" //ustaw kolor dla Flashbang (000 000 255 - niebieski) grenade_sg "000255000" //ustaw kolor dla Smokegrenade (000 255 000 - zielony)Eryk172 dobrze pisał.
#10
Napisano 16.07.2012 21:55
CoD Mod - IP: 91.224.117.15:27235
JailBreak - IP: 91.224.117.67:27075
Only de_dust2 - IP: 193.33.176.197:27111
Więcej serwerów na: www.NaFarciePL
#12
Napisano 17.07.2012 13:29
CoD Mod - IP: 91.224.117.15:27235
JailBreak - IP: 91.224.117.67:27075
Only de_dust2 - IP: 193.33.176.197:27111
Więcej serwerów na: www.NaFarciePL
#13
Napisano 17.07.2012 14:49
~nie pamietam nazwy pluginu
#14
Napisano 17.07.2012 21:31
CoD Mod - IP: 91.224.117.15:27235
JailBreak - IP: 91.224.117.67:27075
Only de_dust2 - IP: 193.33.176.197:27111
Więcej serwerów na: www.NaFarciePL
Użytkownicy przeglądający ten temat: 0
0 użytkowników, 0 gości, 0 anonimowych