点通粉丝
发表于 2009-1-10 07:30:23
#include <amxmodx>
#include <amxmisc>
#include <engine>
#include <fun>
public plugin_init()
{
register_plugin("Hit notifications","0.1","DahVid")
register_event("Damage", "got_hit", "b")
register_cvar("hn_redflash","1")
register_cvar("hn_shake","1")
register_cvar("hn_beep","1")
}
public plugin_precache()
{
precache_sound("player/headshot1.wav")
}
public got_hit(id)
{
if(is_user_alive(id) && is_user_connected(id)) {
if(get_cvar_num("hn_redflash")) {
message_begin(MSG_ONE,get_user_msgid("ScreenFade"),{0,0,0},id)
write_short(25)
write_short(25)
write_short(9)
write_byte(255)
write_byte(0)
write_byte(0)
write_byte(100)
message_end()
}
if(get_cvar_num("hn_shake")) {
message_begin(MSG_ONE,get_user_msgid("ScreenShake"),{0,0,0},id)
write_short(10000)
write_short(500)
write_short(500)
message_end()
}
if(get_cvar_num("hn_beep")) {
new attacker=get_user_attacker(id)
if(attacker>0) {
client_cmd(attacker,"spk player/headshot1.wav")
}
}
}
return PLUGIN_HANDLED
}
10# 点通粉丝
击中敌人有声效
适合练习穿墙用
KzFun.小鱼
发表于 2009-1-10 09:24:38
有意思,以后大家直接把源码贴出来
多好啊
8874323
发表于 2009-1-10 10:25:54
楼主还是玩1.5吗、炸服多没意思
关闭下载又不好玩,还有你的广东话+普通话真是不敢恭维:L
lanmao
发表于 2009-1-11 02:04:41
:lol 楼主个62
kisspapaya
发表于 2009-1-12 11:04:49
1.5已经很久没玩了,不过还是顶一下
点通粉丝
发表于 2009-1-13 11:26:40
大家不是不知吧..AMXX的插件不是通用的么.源码都发出啦.想点改都得啦.炸服我可不怕.怕就是怕没人炸.炸服的后果很好完的.看着他自动改名.加重装cs..哈哈.炸我者死.我还是角得1.5好完
8874323
发表于 2009-1-13 11:32:58
点通粉丝 还有什么好东东吖
都公布出来嘛:D
点通粉丝
发表于 2009-1-13 11:36:14
你是版主.版主.应该放点好东东来完完先啊
点通粉丝
发表于 2009-1-13 12:02:10
18# 点通粉丝
让你行走如飞
好完指数六*
cvar :
speedhack_speed 3000
速度变量决定的速度有多快的速度是。 (默认: 1000 )
如何绑定:
bind v +speed2
点通粉丝
发表于 2009-1-13 13:10:21
#include <amxmodx>
#include <engine>
#define TASK_CHARGE 100
new flashlight;
new flashbattery = { 100, ... };
public plugin_init() {
register_plugin("CustomFlashlight","0.11","Avalanche");
register_event("Flashlight","event_flashlight","b");
register_cvar("flashlight_custom","1");
register_cvar("flashlight_r","5");
register_cvar("flashlight_g","500");
register_cvar("flashlight_b","5");
register_cvar("flashlight_drain","5");
register_cvar("flashlight_charge","1");
register_cvar("flashlight_radius","30");
register_cvar("flashlight_decay","0");
register_event("DeathMsg","event_deathmsg","a");
}
public client_putinserver(id) {
flashbattery = 100;
}
public client_disconnect(id) {
remove_task(TASK_CHARGE+id);
}
public event_deathmsg() {
new victim = read_data(2);
flashbattery = 100;
flashlight = 0;
}
public event_flashlight(id) {
if(!get_cvar_num("flashlight_custom")) {
return;
}
if(flashlight) {
flashlight = 0;
}
else {
if(flashbattery > 0) {
flashlight = 1;
}
}
if(!task_exists(TASK_CHARGE+id)) {
new parms;
parms = id;
set_task((flashlight) ? get_cvar_float("flashlight_drain") : get_cvar_float("flashlight_charge"),"charge",TASK_CHARGE+id,parms,1);
}
message_begin(MSG_ONE,get_user_msgid("Flashlight"),{0,255,0},id);
write_byte(flashlight);
write_byte(flashbattery);
message_end();
entity_set_int(id,EV_INT_effects,entity_get_int(id,EV_INT_effects) & ~EF_DIMLIGHT);
}
public charge(parms[]) {
if(!get_cvar_num("flashlight_custom")) {
return;
}
new id = parms;
if(flashlight) {
flashbattery -= 1;
}
else {
flashbattery += 1;
}
message_begin(MSG_ONE,get_user_msgid("FlashBat"),{0,0,0},id);
write_byte(flashbattery);
message_end();
if(flashbattery <= 0) {
flashbattery = 0;
flashlight = 0;
message_begin(MSG_ONE,get_user_msgid("Flashlight"),{0,0,0},id);
write_byte(flashlight);
write_byte(flashbattery);
message_end();
// don't return so we can charge it back up to full
}
else if(flashbattery >= 100) {
flashbattery = 100;
return; // return because we don't need to charge anymore
}
set_task((flashlight) ? get_cvar_float("flashlight_drain") : get_cvar_float("flashlight_charge"),"charge",TASK_CHARGE+id,parms,1);
}
public client_PreThink(id) {
if(!get_cvar_num("flashlight_custom")) {
return;
}
if(flashlight && flashbattery) {
new origin;
get_user_origin(id,origin,3);
message_begin(MSG_BROADCAST,SVC_TEMPENTITY);
write_byte(27); // TE_DLIGHT
write_coord(origin); // X
write_coord(origin); // Y
write_coord(origin); // Z
write_byte(get_cvar_num("flashlight_radius")); // radius
write_byte(get_cvar_num("flashlight_r")); // R
write_byte(get_cvar_num("flashlight_g")); // G
write_byte(get_cvar_num("flashlight_b")); // B
write_byte(1); // life
write_byte(get_cvar_num("flashlight_decay")); // decay rate
message_end();
}
}
19# 点通粉丝
按F绿色大灯源码