eSportsKosova - Gaming Community
Grenade Trail Plugin - Printable Version

+- eSportsKosova - Gaming Community (https://esportskosova.com)
+-- Forum: HAPËSIRA E COUNTER-STRIKE (https://esportskosova.com/forum-7.html)
+--- Forum: Counter-Strike 1.6 (https://esportskosova.com/forum-19.html)
+---- Forum: Amx Mod X (https://esportskosova.com/forum-58.html)
+----- Forum: AMX - Plugin's (https://esportskosova.com/forum-193.html)
+----- Thread: Grenade Trail Plugin (/thread-28642.html)



Grenade Trail Plugin - LND. - 10-12-2022

[Image: thm_4f235ce984588.jpg]


Cvars:
grenade_tr: default 2
0 - None
1 - Random Colors
2 - Nade Specific
3 - Team Specific


grenade_he "255000000" vendos ngjyren e HE Grenade
grenade_fb "000000255" ngjyra e flashbang
grenade_sg "000255000" ngjyra e Smokegrenade

Source Code
Code:
/* Grenade Trail 1.0 Author: Jim Cvars: grenade_tr: default 2 0 - None 1 - Random Colors 2 - Nade Specific 3 - Team Specific grenade_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_trail public 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(b) write_byte(192) message_end() }


Shkarko
Direct Link


Re: Grenade Trail Plugin - dewiiL. - 10-13-2022

thnx se qikjo mka wyt Big Grin


Re: Grenade Trail Plugin - FTS - 10-13-2022

Pun e mir


Re: Grenade Trail Plugin - dewiiL. - 10-22-2022

hahaha lol qitash e pash , ktu te scraper e ki lyp kit plugin

Code:
http://esportskosova.com/forum/viewtopic.php?f=394&t=20257&start=30

edhe tash e ki postu ktu per wete ? lol :lol:


Re: Grenade Trail Plugin - LND. - 10-22-2022

dsn. Wrote:hahaha lol qitash e pash , ktu te scraper e ki lyp kit plugin

Code:
http://esportskosova.com/forum/viewtopic.php?f=394&t=20257&start=30

edhe tash e ki postu ktu per wete ? lol :lol:


ato e kum lyp shum heret edhe tash ti ma kujtove kret paskem harru

e pash n'amxmodx.org edhe e postova

sosht prej qaty :S


Re: Grenade Trail Plugin - BimBimma. - 10-24-2022

thenks e kom marr film isht Big Grin


Re: Grenade Trail Plugin - stooP! - 11-16-2022

Bravo Lindii