[小心手雷]显示成:XX仍个[高爆手雷]或[烟雾弹].[闪光弹]的插件,我找不到
我见有些服当你仍闪光弹/烟雾弹时会显示某某仍了个[闪光弹]/[烟雾弹]的很清楚明白,请问谁有这样的插件?回复: [小心手雷]显示成:XX仍个[高爆手雷]或[烟雾弹].[闪光弹]的插件,我找不到
#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
get_msg_arg_string(3,arg3,255)
if(equal(arg3,"#Game_radio")){
new arg4,arg5
get_msg_arg_string(4,arg4,32)
new colorid = get_user_index(arg4)
get_msg_arg_string(5,arg5,128)
new saymsg
if(equal(arg5,"#Fire_in_the_hole")){
return 1
public grenade_throw(id, greindex, wpnid)
{
new msg
new thname
new pindex
pindex=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()
}
回复: [小心手雷]显示成:XX仍个[高爆手雷]或[烟雾弹].[闪光弹]的插件,我找不到
对啊,,我也想要个,~~~回复: [小心手雷]显示成:XX仍个[高爆手雷]或[烟雾弹].[闪光弹]的插件,我找不到
if(equal(arg5,"#Fire_in_the_hole")){return 1
public grenade_throw(id, greindex, wpnid)
{
这里好像出错了......版主....能否再帮看看..
1.没见回挂号和两个未定义...
回复: [小心手雷]显示成:XX仍个[高爆手雷]或[烟雾弹].[闪光弹]的插件,我找不到
#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
get_msg_arg_string(3,arg3,255)
if(equal(arg3,"#Game_radio")){
new arg4,arg5
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
new thname
new pindex
pindex=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()
}
回复: [小心手雷]显示成: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,killername
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
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
}
回复: [小心手雷]显示成:XX仍个[高爆手雷]或[烟雾弹].[闪光弹]的插件,我找不到
if(is_user_connected(killer) && containi(weapon,"slot1")!=-1 && read_data(3)==1)
改这样试试
if(is_user_connected(killer) && read_data(3)==1)
回复: [小心手雷]显示成:XX仍个[高爆手雷]或[烟雾弹].[闪光弹]的插件,我找不到
源代码文件汉化完后保存为UTF8_NO BOM格式!回复: [小心手雷]显示成:XX仍个[高爆手雷]或[烟雾弹].[闪光弹]的插件,我找不到
太感谢了......今天实在好.....回复: [小心手雷]显示成:XX仍个[高爆手雷]或[烟雾弹].[闪光弹]的插件,我找不到
Post by zwfgdlcif(is_user_connected(killer) && containi(weapon,"slot1")!=-1 && read_data(3)==1)
改这样试试
if(is_user_connected(killer) && read_data(3)==1)
请你帮做个游戏开局时检测见到谁买盾牌的没收所有武器并显示[你因买盾牌而被罚没收]...
页:
[1]
2