Amx_Explode

Pluginuri facute de utilizatorii forumului eXtream.

Moderators: Moderatori ajutatori, Moderatori, Echipa eXtreamCS.com

User avatar
GhosT ***
Membru, skill +2
Membru, skill +2
Posts: 604
Joined: 04 Dec 2013, 21:52
Detinator Steam: Da
CS Status: Morphin . [ Retras ]
SteamID: Mutulica1428
Reputatie: Fost Moderator ajutator
Location: Dumesti.
Has thanked: 40 times
Been thanked: 99 times
Contact:

05 Feb 2014, 17:53

Descriere: Acest plugin este un gen de slay mai performant care are un efect (nu ma descurc la explicatii)

Resurse
.Sma + .Amxx
Resurse + .Sma + .Amxx
Versiunea 0.1 | Afiseaza codul
/*Credite --> YONTU => Pentru sprite (Luat din pluginul cu He Grenade Effect) + Un mic/mare tutorial =)*/
#include <amxmodx>
#include <amxmisc>
#include <colorchat>
#include <message_const>

#define have_acces(%1)	(get_user_flags(%1) & ADMIN_SLAY)

new const
	PLUGIN_NAME[] = "Amx_Explode",
	AUTHOR_NAME[] = "GhosT ***";

static VERSION[] = "0.1";

new PLUGIN_ON;

new explode_sprite;

public plugin_init()
	register_concmd("amx_explode", "explode_command", ADMIN_SLAY, "<target> - Explode target");

public plugin_precache()
{
	register_plugin(PLUGIN_NAME, VERSION, AUTHOR_NAME); // register plug'in
	
	PLUGIN_ON = register_cvar("explode_on", "1"); // Cvar : ON(<=1) || OFF(==0)
	
	explode_sprite = precache_model("sprites/amx_explode/explode.spr"); // sprite explode
}
public explode_command(index)
{
	if(get_pcvar_num(PLUGIN_ON) >= 1)
	{
		if(have_acces(index))
		{
			new szArgv[32];
			read_argv(1, szArgv, sizeof(szArgv) - 1);
			
			if(equal(szArgv, ""))
			{
				console_print(index, "amx_explode <target>");
				return true;
			}
			
			new iTarget = cmd_target(index, szArgv);
			if(!iTarget)
				return true;
			
			new Admin_Name[32];
			get_user_name(index, Admin_Name, sizeof(Admin_Name) - 1);
			
			new Target_Name[32];
			get_user_name(iTarget, Target_Name, sizeof(Target_Name) - 1);
			
			new all = 0;
			
			console_print(all, "ADMIN: %s a folosit comanda amx_explode pe %s !", Admin_Name, Target_Name);
			
			ColorChat(all, RED, "^x04 ADMIN:^x03 %s^x01 a folosit comanda^x04 amx_explode^x01 pe^x03 %s", Admin_Name, Target_Name);
			
			set_hudmessage(200, 25, 123, -1.0, -1.0);
			show_hudmessage(all, "%s a explodat cu stil !!", Target_Name);
			if(is_user_alive(iTarget))
			{
				user_kill(iTarget);
				explode_effects(iTarget);
			}
			else
			{
				console_print(index, "%s este mort !", Target_Name);
				return true;
			}
			
			return false;
		}
		else
		{
			console_print(index, "Nu poti folosi aceasta comanda deoarece nu ai acces !");
			return true;
		}
	}
	else
	{
		console_print(index, "Pluginul este dezactivat !");
		return true;
	}
	
	return false;
}
public explode_effects(iTarget)
{
	new orginn[3];
	get_user_origin(iTarget, orginn);
	
	message_begin(MSG_ALL, SVC_TEMPENTITY);
	write_byte(TE_EXPLOSION);
	write_coord(orginn[0]);
	write_coord(orginn[1]);
	write_coord(orginn[2]);
	write_short(explode_sprite);
	write_byte(30);
	write_byte(10);
	write_byte(2);
	write_byte(50);
	write_byte(10);
	message_end( );
}
Versiunea 0.2 | Afiseaza codul
/*	Credite
		YONTU => Pentru sprite (Luat din pluginul cu He Grenade Effect) + Un mic/mare tutorial =)
	
	Change Log
		0.1 - Lansarea
		0.2 - Fixare buguri*/

#include <amxmodx>
#include <amxmisc>
#include <colorchat>
#include <message_const>

#define have_acces(%1)	(get_user_flags(%1) & ADMIN_SLAY)

new const
	PLUGIN_NAME[] = "Amx_Explode",
	AUTHOR_NAME[] = "GhosT ***";

static VERSION[] = "0.2";

new PLUGIN_ON;

new explode_sprite;

public plugin_init()
{
	register_concmd("amx_explode", "explode_command", ADMIN_SLAY, "<target> - Explode target");
	
	PLUGIN_ON = register_cvar("explode_on", "1"); // Cvar : ON(<=1) || OFF(==0)
}

public plugin_precache()
{
	register_plugin(PLUGIN_NAME, VERSION, AUTHOR_NAME); // register plug'in
	
	explode_sprite = precache_model("sprites/amx_explode/explode.spr"); // sprite explode
}
public explode_command(index)
{
	if(get_pcvar_num(PLUGIN_ON) >= 1)
	{
		if(have_acces(index))
		{
			new szArgv[32];
			read_argv(1, szArgv, sizeof(szArgv) - 1);
			
			if(equal(szArgv, ""))
			{
				console_print(index, "amx_explode <target>");
				return true;
			}
			
			new iTarget = cmd_target(index, szArgv);
			if(!iTarget)
				return true;
			
			new Admin_Name[32];
			get_user_name(index, Admin_Name, sizeof(Admin_Name) - 1);
			
			new Target_Name[32];
			get_user_name(iTarget, Target_Name, sizeof(Target_Name) - 1);
			
			new all = 0;
			
			if(is_user_alive(iTarget))
			{
				user_kill(iTarget);
				explode_effects(iTarget);
				console_print(all, "ADMIN: %s a folosit comanda amx_explode pe %s !", Admin_Name, Target_Name);
			
				ColorChat(all, RED, "^x04 ADMIN:^x03 %s^x01 a folosit comanda^x04 amx_explode^x01 pe^x03 %s", Admin_Name, Target_Name);
				
				set_hudmessage(200, 25, 123, -1.0, -1.0);
				show_hudmessage(all, "%s a explodat cu stil !!", Target_Name);
			}
			else
			{
				console_print(index, "%s este mort !", Target_Name);
				return true;
			}
			
			return false;
		}
		else
		{
			console_print(index, "Nu poti folosi aceasta comanda deoarece nu ai acces !");
			return true;
		}
	}
	else
	{
		console_print(index, "Pluginul este dezactivat !");
		return true;
	}
	
	return false;
}
stock explode_effects(iTarget)
{
	new orginn[3];
	get_user_origin(iTarget, orginn);
	
	message_begin(MSG_ALL, SVC_TEMPENTITY);
	write_byte(TE_EXPLOSION);
	write_coord(orginn[0]);
	write_coord(orginn[1]);
	write_coord(orginn[2]);
	write_short(explode_sprite);
	write_byte(30);
	write_byte(10);
	write_byte(2);
	write_byte(50);
	write_byte(10);
	message_end( );
}
Nume: Amx Explode
Versiune: 0.1 & 0.2
Link oficial: Aici.

Instalare:
1. Fisierul amx_explode.sma il puneti in addons/amxmodx/scripting !
2. Fisierul amx_explode.amxx il puneti in addons/amxmodx/plugins !
6. Intrati in fisierul addons/amxmodx/configs/plugins.ini si adaugati la urma:

Code: Select all

amx_explode.amxx

7. Alti pasi necesari...
Cvar-uri (se adauga in fisierul amxmodx\configs\amxx.cfg):

explode_on [ON(<=1) || OFF(==0)] - sau pe intelesu tuturor [Pornit - mai mare sau egal cu 1 || Oprit - egal cu 0]

Comenzi administrative (se tasteaza in consola si trebuie sa fiti administrator):

amx_explode <target> ---> faci pe cineva sa explodeze :))

Comenzi publice (se tasteaza in joc prin apasarea tastei Y): -

Module necesare (se sterge ; din fata modulului de mai jos; acestea le gasiti in fisierul amxmodx\configs\modules.ini):
| Afiseaza codul
#include <amxmodx>
#include <amxmisc>
#include <colorchat>
#include <message_const>
Poza : Image
Last edited by GhosT *** on 20 Feb 2014, 20:59, edited 8 times in total.
RoyalServer
User avatar
Truth*
Scripter eXtreamCS
Scripter eXtreamCS
Posts: 766
Joined: 11 Oct 2013, 11:08
Detinator Steam: Da
SteamID: Ezeru
Reputatie: Fost moderator ajutator
Membru Club eXtreamCS (4 luni)
Nume anterior: HyperioN.
Scripter eXtreamCS
0.2 / 3
Fond eXtream: 0
Location: Sibiu
Has thanked: 44 times
Been thanked: 122 times

05 Feb 2014, 17:56

Foarte interesant :)
Imi place mult succes la mai multe :) =D> =D>
P.S.: Netestat = Nu am avut timp să mă uit atent peste cod. Deci ceea ce am scris este posibil să fie greşit sau să aibă erori.

If i helped you and you wanna thank me, you can donate at this link : here
This will motivate me to help you in the future.
[If you want a private plugin send me a PM.(No complex plugins please, I am a student and I don't have the time to make those)]
User avatar
GhosT ***
Membru, skill +2
Membru, skill +2
Posts: 604
Joined: 04 Dec 2013, 21:52
Detinator Steam: Da
CS Status: Morphin . [ Retras ]
SteamID: Mutulica1428
Reputatie: Fost Moderator ajutator
Location: Dumesti.
Has thanked: 40 times
Been thanked: 99 times
Contact:

05 Feb 2014, 17:59

NicutaMM | Cstrike wrote:Foarte interesant :)
Imi place mult succes la mai multe :) =D> =D>
Mersi :D

Am pus si poza :))
User avatar
^ionutz^
Fost moderator
Fost moderator
Posts: 1995
Joined: 05 Oct 2013, 15:12
Detinator Steam: Da
CS Status: activitate scazuta !
SteamID: /id/ionutz_cs/
Reputatie: Fost moderator ajutator
Location: Galati
Has thanked: 46 times
Been thanked: 23 times

05 Feb 2014, 18:35

smeker >:) e ceva in genul kamize vazusem intr-un plugin vip pentru furien :d dar e misto ce se mai oftcau astia cand ma duceam in baza si bum =))
User avatar
Adventx
Membru, skill +4
Membru, skill +4
Posts: 1785
Joined: 17 Sep 2013, 21:44
Detinator Steam: Da
Reputatie: Fost moderator ajutator
Has thanked: 128 times
Been thanked: 142 times
Contact:

05 Feb 2014, 18:38

Frumos Plugin, Bravo ! :))
User avatar
GhosT ***
Membru, skill +2
Membru, skill +2
Posts: 604
Joined: 04 Dec 2013, 21:52
Detinator Steam: Da
CS Status: Morphin . [ Retras ]
SteamID: Mutulica1428
Reputatie: Fost Moderator ajutator
Location: Dumesti.
Has thanked: 40 times
Been thanked: 99 times
Contact:

05 Feb 2014, 18:40

Adventx wrote:Frumos Plugin, Bravo ! :))
Mersi =)
User avatar
codrutzz
Membru, skill +2
Membru, skill +2
Posts: 539
Joined: 29 Jan 2014, 18:27
Detinator Steam: Da
CS Status: Nu citesc forumu xtreamCS* =]]]
Detinator server CS: In curand
SteamID: Personal
Location: Iasi<3
Has thanked: 68 times
Been thanked: 9 times
Contact:

05 Feb 2014, 18:43

Fain!Bafta la mai multe:)
User avatar
YONTU
Scripter eXtreamCS
Scripter eXtreamCS
Posts: 2466
Joined: 10 May 2013, 14:25
Detinator Steam: Nu
CS Status: Everyone is looking at ur shoes
Reputatie: Moderator ajutator
Fost scripter eXtreamCS
Location: Gura Humorului
Has thanked: 256 times
Been thanked: 288 times
Contact:

05 Feb 2014, 19:19

Cu placere B-) !
Misto efect!
„Peste douăzeci de ani vei fi dezamăgit din cauza lucrurilor pe care nu le-ai făcut, nu din cauza celor pe care le-ai făcut.” - Mark Twain
„Asa e si in viata, hotii castiga, prostii care invata pierd.” - Mihai Nemeș


Bio.LeagueCs.Ro - Biohazard v4.4 Xmas Edition
discord: IonutC#5114

Experinta in: Java/Spring boot/Angular/C/C++/C#/Javascript/Python/HTML/CSS/Pawn/SQL
Ai nevoie de ajutorul meu? Ma poti gasi doar la adresa de discord de mai sus.
User avatar
GhosT ***
Membru, skill +2
Membru, skill +2
Posts: 604
Joined: 04 Dec 2013, 21:52
Detinator Steam: Da
CS Status: Morphin . [ Retras ]
SteamID: Mutulica1428
Reputatie: Fost Moderator ajutator
Location: Dumesti.
Has thanked: 40 times
Been thanked: 99 times
Contact:

05 Feb 2014, 19:25

The YONTU wrote:Cu placere B-) !
Misto efect!
Mersi :* | Am uitat sa te pun la credite :))
User avatar
gLoNNtzZ#
Membru, skill 0
Membru, skill 0
Posts: 4
Joined: 05 Feb 2014, 18:20
Detinator Steam: Nu
CS Status: Bantui Forumul eXtreamCS
Detinator server CS: Nu detin Server
SteamID: Nu detin cont steam
Location: Turnu Magurele
Contact:

05 Feb 2014, 21:06

Interesant Bravo
Tine-o tot asa =D>
User avatar
Filip.
Utilizator neserios (tepar)
Utilizator neserios (tepar)
Posts: 996
Joined: 16 Oct 2013, 23:17
Detinator Steam: Nu
Reputatie: Restrictie moderator
Nume anterior: andre.w
Location: lasa
Has thanked: 58 times
Been thanked: 26 times
Contact:

05 Feb 2014, 21:18

Frumos:) bravo
Daca vrei sa faci profit case opening
User avatar
GhosT ***
Membru, skill +2
Membru, skill +2
Posts: 604
Joined: 04 Dec 2013, 21:52
Detinator Steam: Da
CS Status: Morphin . [ Retras ]
SteamID: Mutulica1428
Reputatie: Fost Moderator ajutator
Location: Dumesti.
Has thanked: 40 times
Been thanked: 99 times
Contact:

05 Feb 2014, 21:22

Mersi :-"
Post Reply

Return to “Pluginuri eXtream”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 11 guests