|
楼主 |
发表于 2006-11-19 15:40:20
|
显示全部楼层
来自 中国–广东–广州–从化区
回复: 怎么往拆C4成功加声效?
我的意思很简单.就是判断如果是GrenadeKill || GrenadeSuicide,就向所有客户端发出一中声音.
[PHP] if (wpnindex == CSW_HEGRENADE && (GrenadeKill || GrenadeSuicide))
{
new killer_name[32], victim_name[32]
get_user_name(killer, killer_name, 31)
get_user_name(victim, victim_name, 31)
set_hudmessage(255, 100, 100, -1.0, 0.25, 1, 6.0, 6.0, 0.5, 0.15, -1)
if (!selfkill)
{
if (GrenadeKill)
ShowSyncHudMsg(0, g_he_sync, "%L", LANG_PLAYER, g_HeMessages[random_num(0, 3)], killer_name, victim_name)
}
else if (GrenadeSuicide)
ShowSyncHudMsg(0, g_he_sync, "%L", LANG_PLAYER, g_SHeMessages[random_num(0, 3)], victim_name)
}[/PHP] |
|