Categoria cu cereri de pluginuri si nu numai.
Moderators: Moderatori ajutatori, Moderatori, Echipa eXtreamCS.com
-
vladu888
- Membru, skill +1
- Posts: 272
- Joined: 29 Jun 2013, 09:54
- Detinator Steam: Nu
- CS Status: Joc Furien.
- Location: Fagaras,Brasov
- Has thanked: 46 times
- Been thanked: 13 times
-
Contact:
20 Oct 2013, 22:29
Salut am si eu nevoie de un plugin grenade_trail da nu unul oarecare unul cu mai multe culori care sa fie random ex: galben , mov , albastru deschis , portocaliu etc. Multumesc.
-
FaTzZu
- Fost moderator
- Posts: 1206
- Joined: 22 Dec 2012, 18:37
- Detinator Steam: Da
- Reputatie: Fost moderator ajutator
- Has thanked: 114 times
- Been thanked: 168 times
20 Oct 2013, 22:51
Code: Select all
http://forums.alliedmods.net/showthread.php?p=429750
A fool's brain digests philosophy into folly, science into superstition, and art into pedantry.
#RETIRED.
-
vladu888
- Membru, skill +1
- Posts: 272
- Joined: 29 Jun 2013, 09:54
- Detinator Steam: Nu
- CS Status: Joc Furien.
- Location: Fagaras,Brasov
- Has thanked: 46 times
- Been thanked: 13 times
-
Contact:
21 Oct 2013, 00:23
il sti-am si eu pe asta am incercat sa modific trail si tot aceleasi le are vz
- | Afiseaza codul
/*
Grenade Trail 1.0
Author: Jim
Cvars:
grenade_tr: default 2
0 - None
1 - Random Colors
2 - Nade Specific
3 - Team Specific
grenade_he "000255255" set the trail color of Hegrenade
grenade_fb "192192192" set the trail color of Flashbang
grenade_sg "255255000" 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", "000255255")
g_cvar_fb = register_cvar("grenade_fb", "192192192")
g_cvar_sg = register_cvar("grenade_sg", "255255000")
}
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()
}
-
FaTzZu
- Fost moderator
- Posts: 1206
- Joined: 22 Dec 2012, 18:37
- Detinator Steam: Da
- Reputatie: Fost moderator ajutator
- Has thanked: 114 times
- Been thanked: 168 times
21 Oct 2013, 01:10
cvar
- | Afiseaza codul
0 - None
1 - Random Colors
2 - Nade Specific
3 - Team Specific
A fool's brain digests philosophy into folly, science into superstition, and art into pedantry.
#RETIRED.
-
vladu888
- Membru, skill +1
- Posts: 272
- Joined: 29 Jun 2013, 09:54
- Detinator Steam: Nu
- CS Status: Joc Furien.
- Location: Fagaras,Brasov
- Has thanked: 46 times
- Been thanked: 13 times
-
Contact:
21 Oct 2013, 19:12
Stai ma fatzzu ca n-ai inteles deci randomu merge dar culorile sunt aceleasi chiar daca am schimbat acolo.
-
cyby
- Scripter eXtreamCS
- Posts: 1777
- Joined: 16 Jul 2011, 21:46
- Detinator Steam: Da
- Detinator server CS: Da
- Reputatie: Scripter eXtreamCS
Fost Moderator ajutator
- Has thanked: 146 times
- Been thanked: 396 times
21 Oct 2013, 20:10
- ? | Afiseaza codul
#include <amxmodx>
#include <fakemeta>
new trail;
public plugin_init()
{
register_plugin("New Set Glow & Trail", "1.0", "cyby")
register_forward(FM_SetModel, "set_effects")
}
public plugin_precache()
{
trail = precache_model("sprites/laserbeam.spr")
}
public set_effects(entity, const model[])
{
if(!pev_valid(entity))
return FMRES_IGNORED
if(model[0] == 'm' && model[7] == 'w' && model[8] == '_' && (model[9] == 'h' || model[9] == 'f' || model[9] == 's'))
{
new r, v, a;
r = random(256)
v = random(256)
a = random(256)
fm_set_trail(entity, r, v, a, 100)
fm_set_rendering(entity, kRenderFxGlowShell, r, v, a, kRenderNormal, 21)
return FMRES_SUPERCEDE
}
return FMRES_IGNORED
}
stock fm_set_trail(id, r, g, b, bright)
{
message_begin(MSG_BROADCAST, SVC_TEMPENTITY)
write_byte(TE_BEAMFOLLOW)
write_short(id)
write_short(trail)
write_byte(25)
write_byte(5)
write_byte(r)
write_byte(g)
write_byte(b)
write_byte(bright)
message_end()
}
stock fm_set_rendering(entity, fx = kRenderFxNone, r = 255, g = 255, b = 255, render = kRenderNormal, amount = 16)
{
new Float:RenderColor[3];
RenderColor[0] = float(r);
RenderColor[1] = float(g);
RenderColor[2] = float(b);
set_pev(entity, pev_renderfx, fx);
set_pev(entity, pev_rendercolor, RenderColor);
set_pev(entity, pev_rendermode, render);
set_pev(entity, pev_renderamt, float(amount));
return 1;
}
93.114.82.17:27015 - Monster Invasion CO-OP Mod
-
vladu888
- Membru, skill +1
- Posts: 272
- Joined: 29 Jun 2013, 09:54
- Detinator Steam: Nu
- CS Status: Joc Furien.
- Location: Fagaras,Brasov
- Has thanked: 46 times
- Been thanked: 13 times
-
Contact:
21 Oct 2013, 20:17
Merge super cyby multumesc mult.
-
Users browsing this forum: Yandex [Bot] and 20 guests