|
两个插件First_Shot为每局第1个人杀人随机奖励,suicidetext用刀杀人随机奖励。
因为这两个插件显示的是英语的,所以玩家看不懂是什么东西来的,所以请各位大侠帮帮忙编译成中文的。
First_Shot每局第1个人杀人随机奖励8000-10000的钱
suicidetext用刀杀人随机奖励9000-10000的钱
First_Shot的源码:
#include <amxmod>
#include <csstats>
new g_round
public plugin_init(){
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_HANDLED
new Killer = read_data(1)
new Victim = read_data(2)
if(Killer==Victim)
return PLUGIN_HANDLED
new x = random_num(8000, 10000)
set_user_money(Killer,x+get_user_money(Killer))
new p_name[32]
get_user_name(Killer,p_name,31)
set_hudmessage(100,100,255,0.03, 0.31, 0, 6.0, 10.0, 0.1, 0.2, 3)
show_hudmessage(0, "%s Kills enemy bravely !! And be award %d Dollars by Server",p_name,x)
client_cmd(0,"spk misc/coin01,x")
g_round = 1
return PLUGIN_HANDLED
}
public hook_roundstart(){
g_round = 0
}
public plugin_precache(){
precache_sound( "misc/coin01.wav")
return PLUGIN_CONTINUE
}
suicidetex的源码:
/*==============================================================================
* Plugin name: Suicide Text 0.2+
* Made by: huyongbo
* Modules required: none
*===============================================================================*/
#include <amxmod>
public plugin_init() {
register_plugin("Suicide Text","0.2+","huyongbo")
register_event("DeathMsg","knife_kill","a","4&kni")
return PLUGIN_CONTINUE
}
// when someone knived
public knife_kill(){
new killer_id = read_data(1)
new victim_id = read_data(2)
new killer_name[32], victim_name[32]
get_user_name(killer_id,killer_name,32)
get_user_name(victim_id,victim_name,32)
new x = random_num(9000, 10000)
set_user_money(killer_id,x+get_user_money(killer_id))
set_hudmessage(0,255,0,-1.0,0.23,0,6.0,6.0,0.5,0.15, 4)
show_hudmessage(0,"%s get %d money from knifekill",killer_name,x)
//return PLUGIN_HANDLED
}
希望大侠们帮忙将源码编成中文的,因为现在这两个源码编成amxx后,在游戏中显示的是:
第1个人杀人时显示:
%s(%s是玩家名字) Kills enemy bravely !! And be award %d(%d是面随机奖励的钱数) Dollars by Server
用刀杀人时显示:
%s(%s是玩家名字) get %d(%d是随机奖励的钱数) money from knifekill
我想把它换成中文的时候显示的是:
第1个人杀人时显示:
%s第一个杀人服务器自动奖励金钱%d
用刀杀人时显示:
%s用刀杀人服务器自动奖励金钱%d
。 |
本帖子中包含更多资源
您需要 登录 才可以下载或查看,没有账号?注个册吧
×
|