|
发表于 2006-11-14 17:03:17
|
显示全部楼层
|阅读模式
来自 中国–新疆–乌鲁木齐
#include <amxmodx>
#include <cstrike>
new g_round
new g_msgidpublic plugin_init(){ g_msgid = get_user_msgid("SayText")
register_plugin("First Shot","1.0","ahcat")
register_event("DeathMsg", "hook_death", "a")
register_logevent("hook_roundstart",2,"0=World triggered","1=Round_Start")
g_round = 0
}
public hook_death(){ if (g_round!=0)
return PLUGIN_CONTINUE
new Killer = read_data(1)
cs_set_user_money(Killer,cs_get_user_money (Killer)+3000)
new p_name[32]
get_user_name(Killer,p_name,31)
new szMessage[152];
format( szMessage, 151, "^x03%s ^x01开局最先杀人由系统奖励^x04 3000",p_name)
display_chat(szMessage);
g_round = 1
return PLUGIN_CONTINUE
}
public hook_roundstart(){ g_round = 0
}
display_chat( szMessage[]){message_begin( MSG_ALL, g_msgid);
write_byte(1);
write_string( szMessage);
message_end();
}
这个是出现的错误,我用的1.76B汇编的 |
本帖子中包含更多资源
您需要 登录 才可以下载或查看,没有账号?注个册吧
×
|