C4[rezolvat!]

Categoria cu cereri de pluginuri si nu numai.

Moderators: Moderatori ajutatori, Moderatori, Echipa eXtreamCS.com

Forum rules
Accesează link-ul pentru a putea vedea regulile forumului

Daca doriti sa vi se modifice un plugin, va rugam postati aici .
Post Reply
User avatar
Fantasy1
Utilizator neserios (tepar)
Utilizator neserios (tepar)
Posts: 4836
Joined: 05 Jul 2012, 01:26
Detinator Steam: Da
Reputatie: Membru Club eXtreamCS (1 Mar)
Utilizator neserios (TEPAR!)
Has thanked: 278 times
Been thanked: 217 times
Contact:

13 Oct 2013, 00:58

Salut , am nevoie de un plugin care face cercuri in jurul c4 , cand bomba este plantata.

Am nevoie urgent.
CLICK AICI pentru FORUM
- Un Forum Care Nu Poate Fi Spart -
- Un Forum Care Nu Modifica Topicurile Cu Tepari -
- Vrei Indexare In Google? Posteaza Tzeparii La Noi -

- Daca ai nevoie sa te ajut cu un addons/plugin etc se plateste, nu ajut cu nimic pe GRATIS -
RoyalServer 2
Cosmin
Fost moderator
Fost moderator
Posts: 9362
Joined: 06 Jul 2013, 22:08
Detinator Steam: Da
Detinator server CS: Nu
Reputatie: Fost eXtream Mod
Fost Scripter eXtreamCS
Nume anterior: scosmynnnn
Has thanked: 492 times
Been thanked: 547 times

13 Oct 2013, 01:07

User avatar
Rap^
Membru, skill +2
Membru, skill +2
Posts: 621
Joined: 01 Oct 2011, 00:25
Detinator Steam: Da
Reputatie: Fost Scripter eXtreamCS
Fost Super moderator
Location: Bucuresti
Has thanked: 16 times
Been thanked: 156 times

13 Oct 2013, 01:17

| Afiseaza codul
#include <amxmodx>
#include <engine>
#include <fakemeta>

#pragma semicolon 1

#define TASK_RADIUS 1111

#define message_begin_fl(%1,%2,%3,%4) engfunc(EngFunc_MessageBegin, %1, %2, %3, %4)
#define write_coord_fl(%1) engfunc(EngFunc_WriteCoord, %1)

static const

	PLUGIN[ ] =		"PLUGIN",
	VERSION[ ] =		"0.0.1",
	AUTHOR[ ] =		"Rap^^";

new const SPRITE_EXPLO[ ]	= "sprites/shockwave.spr";
new ExplodeSpr;

public plugin_init( )
{
	register_plugin(PLUGIN, VERSION, AUTHOR);
	
	register_logevent("LogEventBombPlanted", 3, "2=Planted_The_Bomb");
}

public plugin_precache( )
{
	ExplodeSpr = precache_model(SPRITE_EXPLO);
}

public LogEventBombPlanted( )
{
	new iBomb = find_ent_by_model(-1, "grenade", "models/w_c4.mdl");
	
	set_task(1.0, "taskRadius", iBomb + TASK_RADIUS, _, _, "b");
}

public taskRadius(iEnt)
{
	iEnt -= TASK_RADIUS;
	
	if( !is_valid_ent(iEnt) )
	{
		remove_task(iEnt + TASK_RADIUS);
		
		return PLUGIN_HANDLED;
	}
	
	new Float: flOrigins[3];
	
	entity_get_vector(iEnt, EV_VEC_origin, flOrigins);
	
	RadiusEffect(iEnt, flOrigins);
	
	return PLUGIN_HANDLED;
}

public RadiusEffect(iEnt, Float: flOrigin[3])
{
	static RGB_Red = 128, RGB_Green = 0, RGB_Blue = 255;
	
	// smallest ring
	message_begin_fl(MSG_PVS, SVC_TEMPENTITY, flOrigin, 0);
	write_byte(TE_BEAMCYLINDER);
	write_coord_fl(flOrigin[0]); // x
	write_coord_fl(flOrigin[1]); // y
	write_coord_fl(flOrigin[2] - 30.0); // z
	write_coord_fl(flOrigin[0]); // x axis
	write_coord_fl(flOrigin[1]); // y axis
	write_coord_fl(flOrigin[2] + 50.0); // z axis
	write_short(ExplodeSpr); // sprite
	write_byte(0); // start frame
	write_byte(0); // framerate
	write_byte(4); // life
	write_byte(15); // width
	write_byte(0); // noise
	write_byte(RGB_Red); // red
	write_byte(RGB_Green); // green
	write_byte(RGB_Blue); // blue
	write_byte(100); // brightness
	write_byte(0); // speed
	message_end();

	// medium ring
	message_begin_fl(MSG_PVS, SVC_TEMPENTITY, flOrigin, 0);
	write_byte(TE_BEAMCYLINDER);
	write_coord_fl(flOrigin[0]); // x
	write_coord_fl(flOrigin[1]); // y
	write_coord_fl(flOrigin[2] - 30.0); // z
	write_coord_fl(flOrigin[0]); // x axis
	write_coord_fl(flOrigin[1]); // y axis
	write_coord_fl(flOrigin[2] + 70.0); // z axis
	write_short(ExplodeSpr); // sprite
	write_byte(0); // start frame
	write_byte(0); // framerate
	write_byte(4); // life
	write_byte(15); // width
	write_byte(0); // noise
	write_byte(RGB_Red); // red
	write_byte(RGB_Green); // green
	write_byte(RGB_Blue); // blue
	write_byte(100); // brightness
	write_byte(0); // speed
	message_end( );

	// largest ring
	message_begin_fl(MSG_PVS, SVC_TEMPENTITY, flOrigin, 0);
	write_byte(TE_BEAMCYLINDER);
	write_coord_fl(flOrigin[0]); // x
	write_coord_fl(flOrigin[1]); // y
	write_coord_fl(flOrigin[2] - 30.0); // z
	write_coord_fl(flOrigin[0]); // x axis
	write_coord_fl(flOrigin[1]); // y axis
	write_coord_fl(flOrigin[2] + 90.0); // z axis
	write_short(ExplodeSpr); // sprite
	write_byte(0); // start frame
	write_byte(0); // framerate
	write_byte(4); // life
	write_byte(15); // width
	write_byte(0); // noise
	write_byte(RGB_Red); // red
	write_byte(RGB_Green); // green
	write_byte(RGB_Blue); // blue
	write_byte(100); // brightness
	write_byte(0); // speed
	message_end( );
}
Vezi si asta daca merge si daca iti place mai mult
Imagination is more important than knowledge.
Knowledge is limited - Imagination encircles the world.
User avatar
Fantasy1
Utilizator neserios (tepar)
Utilizator neserios (tepar)
Posts: 4836
Joined: 05 Jul 2012, 01:26
Detinator Steam: Da
Reputatie: Membru Club eXtreamCS (1 Mar)
Utilizator neserios (TEPAR!)
Has thanked: 278 times
Been thanked: 217 times
Contact:

13 Oct 2013, 12:18

Va multumesc la amandoi.

scosmynnnn - asta era ceea ce cautam.

Rap , plugin-ul de la tine nu merge.
CLICK AICI pentru FORUM
- Un Forum Care Nu Poate Fi Spart -
- Un Forum Care Nu Modifica Topicurile Cu Tepari -
- Vrei Indexare In Google? Posteaza Tzeparii La Noi -

- Daca ai nevoie sa te ajut cu un addons/plugin etc se plateste, nu ajut cu nimic pe GRATIS -
Post Reply

Return to “Cereri”

  • Information