搜索
查看: 4679|回复: 17

[小心手雷]显示成:XX仍个[高爆手雷]或[烟雾弹].[闪光弹]的插件,我找不到

[复制链接]
发表于 2007-12-11 09:22:50 | 显示全部楼层 |阅读模式 来自 中国–广西–百色
我见有些服当你仍闪光弹/烟雾弹时会显示某某仍了个[闪光弹]/[烟雾弹]的很清楚明白,请问谁有这样的插件?
发表于 2007-12-11 13:51:55 | 显示全部楼层 来自 中国–广东–惠州

回复: [小心手雷]显示成:XX仍个[高爆手雷]或[烟雾弹].[闪光弹]的插件,我找不到

[php]
#include <amxmodx>
#include <amxmisc>
#include <Engine>

#define PLUGIN_NAME "New Plug-In"
#define PLUGIN_VERSION "1.0"
#define PLUGIN_AUTHOR "zwfgdlc"
public plugin_init()
{
register_plugin(PLUGIN_NAME, PLUGIN_VERSION, PLUGIN_AUTHOR);
register_message(get_user_msgid("TextMsg"),"color_radio")
}
public color_radio(msgid, msgDest, msgEnt){
new argNum = get_msg_args()
if (argNum!=5) return PLUGIN_CONTINUE
if (get_msg_argtype(1)!=ARG_BYTE) return PLUGIN_CONTINUE
new arg1=get_msg_arg_int(1)
if (arg1!=5) return PLUGIN_CONTINUE
new arg3[256]
get_msg_arg_string(3,arg3,255)
if(equal(arg3,"#Game_radio")){
  new arg4[33],arg5[129]
  get_msg_arg_string(4,arg4,32)
  new colorid = get_user_index(arg4)
  get_msg_arg_string(5,arg5,128)
  new saymsg[256]
if(equal(arg5,"#Fire_in_the_hole")){
   return 1
public grenade_throw(id, greindex, wpnid)
{
new msg[64]
new thname[32]
new pindex[1]
pindex[0]=id
switch(wpnid)
{
  case CSW_HEGRENADE:
  {
   get_user_name(id,thname,31)
   format(msg,63,"^x03%s ^x01(对讲机):^x04 注意! 扔炸弹了!",thname)
  }
  case CSW_FLASHBANG:
  {
   get_user_name(id,thname,31)
   format(msg,63,"^x03%s ^x01(对讲机):^x04 注意! 扔闪光弹了!",thname)
  }
  case CSW_SMOKEGRENADE:
  {
   get_user_name(id,thname,31)
   format(msg,63,"^x03%s ^x01(对讲机):^x04 注意! 扔烟雾弹了!",thname)
  }
}
client_color(0,id,msg)
}
public client_color(playerid, colorid, msg[])
{
message_begin(playerid?MSG_ONE:MSG_ALL,get_user_msgid("SayText"),{0,0,0},playerid)
write_byte(colorid)
write_string(msg)
message_end()
}  
[/php]
回复

使用道具 举报

发表于 2007-12-11 15:06:53 | 显示全部楼层 来自 中国–广东–深圳

回复: [小心手雷]显示成:XX仍个[高爆手雷]或[烟雾弹].[闪光弹]的插件,我找不到

对啊,,我也想要个,~~~
回复

使用道具 举报

 楼主| 发表于 2007-12-11 15:46:40 | 显示全部楼层 来自 中国–广西–百色–田东县

回复: [小心手雷]显示成:XX仍个[高爆手雷]或[烟雾弹].[闪光弹]的插件,我找不到

if(equal(arg5,"#Fire_in_the_hole")){
   return
1
public grenade_throw(id, greindex, wpnid)
{






这里好像出错了......版主....能否再帮看看..
1.没见回挂号和两个未定义...
回复

使用道具 举报

发表于 2007-12-11 16:24:30 | 显示全部楼层 来自 中国–广东–惠州

回复: [小心手雷]显示成:XX仍个[高爆手雷]或[烟雾弹].[闪光弹]的插件,我找不到

[php]
#include <amxmodx>
#include <amxmisc>
#include <Engine>
#define PLUGIN_NAME "New Plug-In"
#define PLUGIN_VERSION "1.0"
#define PLUGIN_AUTHOR "zwfgdlc"
public plugin_init()
{
register_plugin(PLUGIN_NAME, PLUGIN_VERSION, PLUGIN_AUTHOR);
register_message(get_user_msgid("TextMsg"),"color_radio")
}
public color_radio(msgid, msgDest, msgEnt){
new argNum = get_msg_args()
if (argNum!=5) return PLUGIN_CONTINUE
if (get_msg_argtype(1)!=ARG_BYTE) return PLUGIN_CONTINUE
new arg1=get_msg_arg_int(1)
if (arg1!=5) return PLUGIN_CONTINUE
new arg3[256]
get_msg_arg_string(3,arg3,255)
if(equal(arg3,"#Game_radio")){
  new arg4[33],arg5[129]
  get_msg_arg_string(4,arg4,32)
  get_msg_arg_string(5,arg5,128)
  if(equal(arg5,"#Fire_in_the_hole")){
   return 1
  }
}
return PLUGIN_CONTINUE
}
public grenade_throw(id, greindex, wpnid)
{
new msg[64]
new thname[32]
new pindex[1]
pindex[0]=id
switch(wpnid)
{
  case CSW_HEGRENADE:
  {
   get_user_name(id,thname,31)
   format(msg,63,"^x03%s ^x01(对讲机):^x04 注意! 扔炸弹了!",thname)
  }
  case CSW_FLASHBANG:
  {
   get_user_name(id,thname,31)
   format(msg,63,"^x03%s ^x01(对讲机):^x04 注意! 扔闪光弹了!",thname)
  }
  case CSW_SMOKEGRENADE:
  {
   get_user_name(id,thname,31)
   format(msg,63,"^x03%s ^x01(对讲机):^x04 注意! 扔烟雾弹了!",thname)
  }
}
client_color(0,id,msg)
}
public client_color(playerid, colorid, msg[])
{
message_begin(playerid?MSG_ONE:MSG_ALL,get_user_msgid("SayText"),{0,0,0},playerid)
write_byte(colorid)
write_string(msg)
message_end()
}

[/php]
回复

使用道具 举报

 楼主| 发表于 2007-12-11 16:58:18 | 显示全部楼层 来自 中国–广西–百色–右江区

回复: [小心手雷]显示成:XX仍个[高爆手雷]或[烟雾弹].[闪光弹]的插件,我找不到

可以了....十分感谢你.....希望大家都用它,比较清楚......
你能再帮看这个"暴头奖励"原码错在哪里吗?]

============================
#include <amxmodx>
#include <amxmisc>
#include <cstrike>

public plugin_init()
{
register_plugin("knife_kill_addmoney", "1.0", "zwfgdlc");
register_event("DeathMsg","eDeathMsg","a");
}
public eDeathMsg()
{
new weapon[32],killername[32]
read_data(4,weapon,31)
new killer = read_data(1)
get_user_name(killer,killername,31)
if(is_user_connected(killer) && containi(weapon,"slot1")!=-1 && read_data(3)==1)
{
new killmsg[256]
format(killmsg,255,"%s^n一枪暴头,是枪神啊!^n o-ye,奖你一朵红玫瑰!",killername)
set_hudmessage(0, 255, 255, 0.4, 0.2, 2, 3.0, 4.0, 0.1, 1.0, -1)
show_hudmessage(0, killmsg)
cs_set_user_money(killer,cs_get_user_money(killer)+4700)
}
return PLUGIN_CONTINUE
}
回复

使用道具 举报

发表于 2007-12-11 17:14:36 | 显示全部楼层 来自 中国–广东–惠州

回复: [小心手雷]显示成:XX仍个[高爆手雷]或[烟雾弹].[闪光弹]的插件,我找不到

[php]
if(is_user_connected(killer) && containi(weapon,"slot1")!=-1 && read_data(3)==1)
[/php]
改这样试试
[php]
if(is_user_connected(killer) && read_data(3)==1)
[/php]
回复

使用道具 举报

发表于 2007-12-11 17:18:45 | 显示全部楼层 来自 中国–甘肃–兰州

回复: [小心手雷]显示成:XX仍个[高爆手雷]或[烟雾弹].[闪光弹]的插件,我找不到

源代码文件汉化完后保存为UTF8_NO BOM格式!

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?注个册吧

×
回复

使用道具 举报

 楼主| 发表于 2007-12-11 17:45:58 | 显示全部楼层 来自 中国–广西–百色–右江区

回复: [小心手雷]显示成:XX仍个[高爆手雷]或[烟雾弹].[闪光弹]的插件,我找不到

太感谢了......今天实在好.....
回复

使用道具 举报

 楼主| 发表于 2007-12-12 09:33:00 | 显示全部楼层 来自 中国–广西–百色

回复: [小心手雷]显示成:XX仍个[高爆手雷]或[烟雾弹].[闪光弹]的插件,我找不到

Post by zwfgdlc
[php]
if(is_user_connected(killer) && containi(weapon,"slot1")!=-1 && read_data(3)==1)
[/php]
改这样试试
[php]
if(is_user_connected(killer) && read_data(3)==1)
[/php]
请你帮做个游戏开局时检测见到谁买盾牌的没收所有武器并显示[你因买盾牌而被罚没收]...
回复

使用道具 举报

游客
回复
您需要登录后才可以回帖 登录 | 注个册吧

快速回复 返回顶部 返回列表