4en3rgY Romania
kill_text_anounce & deagle.amxx 2z8bv910
Welcome To 4EN3RGY Romania
Register now to gain access to all of our features. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, post status updates, manage your profile and so much more. If you already have an account, login here - otherwise create an account for free today!

4en3rgY Romania


Nu sunteti conectat. Conectați-vă sau înregistrați-vă

kill_text_anounce & deagle.amxx

Vezi subiectul anterior Vezi subiectul urmator In jos  Mesaj [Pagina 1 din 1]

1kill_text_anounce & deagle.amxx Empty kill_text_anounce & deagle.amxx Sam 09 Apr 2011, 23:45

Viorel

ViorelFondator

[size=200]Kill Text Anounce[/size]
.....................................................
Acest Plugin Arata in chat cine te-a omorat sau pe cine ai omorat Very Happy Arata in genul Acesta
[size=150]Ai fost ucis de Nume (Deaths x)[/size]

Sma. [sursa=]/*******************************************************************************************
* (Kill Text Announce)
* --------------------
*Author: Alka
*Version:2.2b
******************
*Description:
*-This plugin show in chat with colors at victim details abaut killer and at killer "You *have killed xyx"(Not default)
*-Show killer Armor & Health!
*-Play killer a sound "Enemy Down"[radio]!
*-Show in chat Death(s) of vitcim & Frag(s) of killer!If a killer have 2 frags before kill *you,when he kill you shows that he have 2 frags,because frags are updated on round start! *same at deaths...!
*-Show a HUD msg to all players "xyx killed zyz" with random colors!
*-Play at killer & Victim random sounds!
*
*Cvar:
*
*amx_showinchat 1/0 Display messages in Chat.
*amx_showinhud 1/0 Display message in HUD.
*amx_playsound 1/0 Play at killer "Enemy Down" sound.
*
*******************************************************************************************/


#include
#include

#define PLUGIN "Kill Text Announce"
#define VERSION "2.2b"
#define AUTHOR "Alka"

#define killersounds 3
#define victimsounds 2

#define MAXSLOTS 32

enum Color
{
YELLOW = 1,
GREEN,
TEAM_COLOR,
GREY,
RED,
BLUE
}

new TeamInfo;
new SayText;
new MaxSlots;
new chatannounce
new hudannounce
new soundannounce

new TeamName[][] =
{
"",
"TERRORIST",
"CT",
"SPECTATOR"
}
new bool:IsConnected[MAXSLOTS + 1];

new vslist[victimsounds][] =
{
"misc/damnit",
"misc/na"
}

new kslist[killersounds][] =
{
"misc/a-greatshot",
"misc/diebitch",
"misc/jaa"
}

public plugin_init()
{
register_plugin(PLUGIN, VERSION, AUTHOR);
register_event("DeathMsg", "event_death", "a");
chatannounce = register_cvar("amx_showinchat","1");
hudannounce = register_cvar("amx_showinhud","1");
soundannounce = register_cvar("amx_playsound","1");

TeamInfo = get_user_msgid("TeamInfo");
SayText = get_user_msgid("SayText");
MaxSlots = get_maxplayers();
}

public event_death()
{
new killer = read_data(1);
new victim = read_data(2);
new vicname[32]
new killname[32]
new health
new armor
new frags
new deaths
deaths = get_user_deaths(victim);
frags = get_user_frags(killer);
armor = get_user_armor(killer);
health = get_user_health(killer);
get_user_name(victim,vicname,31);
get_user_name(killer,killname,31);

if(killer == victim)
return PLUGIN_CONTINUE;

if(get_pcvar_num(chatannounce) ==1)
{
ColorChat(killer, GREEN, "^x04 L-ai Ucis Pe ^x03%s ^x01!(^x04%d ^x01*Deaths*)", vicname, deaths);

ColorChat(victim, GREEN, "^x04 Ai Fost Omorat De Catre ^x03%s ^x01! ^x03(^x04%d ^x01HP^x03,^x04%i ^x01 AP^x03)^x03( ^x04%d ^x01*Frags*^x03)", killname, health, armor, frags);
}

if(get_pcvar_num(hudannounce) ==1)
{
new r = random(256)
new g = random(256)
new b = random(256)


set_hudmessage(r, g, b, 0.01, 0.54, 2, 0.05, 0.1, 0.01, 6.0, -1);
show_hudmessage(0, "%s killed %s !", killname, vicname);
}

if(get_pcvar_num(soundannounce) ==1)
{
new i
new t
i = random_num(0,killersounds-1)
t = random_num(0,victimsounds-1)

client_cmd(killer,"spk %s",kslist[i])

client_cmd(victim,"spk %s",vslist[t])
}
return PLUGIN_CONTINUE;
}

public client_putinserver(player)
{
IsConnected[player] = true
}

public client_disconnect(player)
{
IsConnected[player] = false
}

public ColorChat(id, Color:type, const msg[], {Float,Sql,Result,_}:...)
{
static message[256];
switch(type)
{
case YELLOW: // Yellow
{
message[0] = 0x01;
}
case GREEN: // Green
{
message[0] = 0x04;
}
default: // White, Red, Blue
{
message[0] = 0x03;
}
}
vformat(message[1], 251, msg, 4);
message[192] = '^0';
new team, ColorChange, index, MSG_Type;

if(!id)
{
index = FindPlayer();
MSG_Type = MSG_ALL;

} else {
MSG_Type = MSG_ONE;
index = id;
}

team = get_user_team(index);
ColorChange = ColorSelection(index, MSG_Type, type);
ShowColorMessage(index, MSG_Type, message);

if(ColorChange)
{
Team_Info(index, MSG_Type, TeamName[team]);
}
}

ShowColorMessage(id, type, message[])
{
message_begin(type, SayText, _, id);
write_byte(id)
write_string(message);
message_end();
}
Team_Info(id, type, team[])
{
message_begin(type, TeamInfo, _, id);
write_byte(id);
write_string(team);
message_end();
return 1;
}
ColorSelection(index, type, Color:Type)
{
switch(Type)
{
case RED:
{
return Team_Info(index, type, TeamName[1]);
}
case BLUE:
{
return Team_Info(index, type, TeamName[2]);
}
case GREY:
{
return Team_Info(index, type, TeamName[0]);
}
}
return 0;
}

FindPlayer()
{
new i = -1;
while(i <= MaxSlots)
{
if(IsConnected[++i])
{
return i;
}
}
return -1;
}

public plugin_precache()
{
precache_sound("misc/damnit.wav")
precache_sound("misc/na.wav")
precache_sound("misc/diebitch.wav")
precache_sound("misc/a-greatshot.wav")
precache_sound("misc/jaa.wav")
}[/sursa]
............................................................
Amxx --> [Trebuie sa fiti inscris si conectat pentru a vedea acest link] Am modificat Ca In chat sa Apara tradus in romana Very Happy
[size=150]Instalare[/size]
...............................
1. Fisierul kill_text_anounce.sma il puneti in addons/amxmodx/scripting
2. Fisierul kill_text_anounce.amxx il puneti in addons/amxmodx/plugins
3. Intrati in fisierul addons/amxmodx/configs/plugins.ini si adaugati la urma:
Cod:
kill_text_anounce.amxx
..............................................................................................................
[size=200]Runda Cu deagle[/size]

AMXX --> [Trebuie sa fiti inscris si conectat pentru a vedea acest link]
..............................................................................
Acest PLugin este facut de [size=150] Ex3cuTioN[/size]
[size=150]La ce foloseste?[/size] La inceputul Rundei toti Jucatorii primesc un Deagle Very Happy
1. Fisierul Deagle.amxx il puneti in addons/amxmodx/plugins
2. Intrati in fisierul addons/amxmodx/configs/plugins.ini si adaugati la urma:
Cod:
deagle.amxx
.................................
Cu acest plugin va recomand si [size=150]deagle_sniper.amxx [/size]
Il luati de aici [Trebuie sa fiti inscris si conectat pentru a vedea acest link]
.........................................................
[size=150]Descriere[/size]
...............................
Dacă vă cumpăraţi un deagle, modelul este înlocuit. De asemenea, puteţi folosi ca pe un lunetist, folosind click dreapta + attack2, pentru a activa si dezactiva zoom
.................................
[size=150]Instalare[/size]
-Fisierul Deagle_sniper.amxx il puneti in addons/amxmodx/plugin
-Fisierul Deagle_sniper.sma il puneti in addons/amxmodx/
-Intrati in fisierul addons/amxmodx/configs/plugins.ini si adaugati la urma:
Cod:
deagle_sniper.amxx
............................................................................................
[size=200]Sper Ca O sa Folositi PLuginurile deoarece sunt foarte frumoase Very Happy[/size]

Vezi subiectul anterior Vezi subiectul urmator Sus  Mesaj [Pagina 1 din 1]

Permisiunile acestui forum:
Nu puteti raspunde la subiectele acestui forum

 

Copyright @ 2010-2024 by 4en3rgY ~> All rights reserved.