|
楼主 |
发表于 2009-4-30 16:10:58
|
显示全部楼层
来自 中国–甘肃–兰州
还有,真TNN的长
new ctname[33],tname[33]
if(maxmoneytid)get_user_name(maxmoneytid,tname,32)
else tname="没有人"
if(maxmoneyctid)get_user_name(maxmoneyctid,ctname,32)
else ctname="没有人"
ipos+=format(RoundEndMsg[ipos],512-ipos,"反恐小组^n%s %d^n恐怖分子^n%s %d",ctname,maxctmoney,tname,maxtmoney)
set_hudmessage( 100, 200, 0, 0.05, 0.55, 0, 0.02, 5.0, 0.1, 0.2, 2 )
show_hudmessage(0,RoundEndMsg)
}
public eRestart(){
new i
g_roundcount = 0
g_firstblood = 0
Round_Control = 0
rewardedbig = 0
for(i=0;i<=32;i++) money_total[i]=0;
for(i=0;i<=32;i++)playerkilled[i]=0;
for(i=0;i<MAX_DROPED_MONEY_COUNT;i++){
droped_money_ammount[i][0]=0
droped_money_ammount[i][1]=0
}
droped_money_count=0
// client_print(0,print_chat,"Round Restart and Roundcount=%d",g_roundcount)
}
public plugin_precache()
{
g_money11 = precache_model("sprites/money11.spr");
g_money22 = precache_model("sprites/money22.spr");
g_money33 = precache_model("sprites/money33.spr");
//precache_sound("../valve/media/half-life17.mp3");
}
public client_color(playerid,colorid,msg[]){
new playerslist[32],playerscount//,i
get_players(playerslist,playerscount,"c")
new userid
if(playerid==0){
userid=playerid
message_begin(MSG_ALL, get_user_msgid("SayText"), {0,0,0}, userid)
write_byte(colorid)
write_string(msg)
message_end()
}
else{
userid=playerid
message_begin(MSG_ONE, get_user_msgid("SayText"), {0,0,0}, userid)
write_byte(colorid)
write_string(msg)
message_end()
}
}
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)
new saymsg[256]
if(equal(arg5,"#Go_go_go")){//Msg GoGoGo
format(saymsg,255,"^x03%s(对讲机): ^x04Go go go!",arg4)
}
else if(equal(arg5,"#Stick_together_team")){
format(saymsg,255,"^x03%s(对讲机): ^x04Stick together, team.",arg4)
}
else if(equal(arg5,"#Team_fall_back")){
format(saymsg,255,"^x03%s(对讲机):^x04 Team, fall back!",arg4)
}
else if(equal(arg5,"#Cover_me")){
format(saymsg,255,"^x03%s(对讲机):^x04 Cover Me!",arg4)
}
else if(equal(arg5,"#You_take_the_point")){
format(saymsg,255,"^x03%s(对讲机):^x04 You Take the Point.",arg4)
}
else if(equal(arg5,"#Hold_this_position")){
format(saymsg,255,"^x03%s(对讲机):^x04 Hold This Position.",arg4)
}
else if(equal(arg5,"#Regroup_team")){
format(saymsg,255,"^x03%s(对讲机):^x04 Regroup Team.",arg4)
}
else if(equal(arg5,"#Follow_me")){
format(saymsg,255,"^x03%s(对讲机):^x04 Follow Me.",arg4)
}
else if(equal(arg5,"#Taking_fire")){
format(saymsg,255,"^x03%s(对讲机):^x04 Taking Fire...Need Assistance!",arg4)
}
else if(equal(arg5,"#Get_in_position_and_wait")){
format(saymsg,255,"^x03%s(对讲机):^x04 Get in position and wait for my go.",arg4)
}
else if(equal(arg5,"#Storm_the_front")){
format(saymsg,255,"^x03%s(对讲机):^x04 Storm the Front!",arg4)
}
else if(equal(arg5,"#Report_in_team")){
format(saymsg,255,"^x03%s(对讲机):^x04 Report in, team.",arg4)
}
else if(equal(arg5,"#Affirmative")){
format(saymsg,255,"^x03%s(对讲机):^x04 Affirmative.",arg4)
}
else if(equal(arg5,"#Roger_that")){
format(saymsg,255,"^x03%s(对讲机):^x04 Roger that.",arg4)
}
else if(equal(arg5,"#Enemy_spotted")){
format(saymsg,255,"^x03%s(对讲机):^x04 Enemy spotted.",arg4)
}
else if(equal(arg5,"#Need_backup")){
format(saymsg,255,"^x03%s(对讲机):^x04 Need backup.",arg4)
}
else if(equal(arg5,"#Sector_clear")){
format(saymsg,255,"^x03%s(对讲机):^x04 Sector clear.",arg4)
}
else if(equal(arg5,"#In_position")){
format(saymsg,255,"^x03%s(对讲机):^x04 I'm in position.",arg4)
}
else if(equal(arg5,"#Reporting_in")){
format(saymsg,255,"^x03%s(对讲机):^x04 Reporting in.",arg4)
}
else if(equal(arg5,"#Get_out_of_there")){
format(saymsg,255,"^x03%s(对讲机):^x04 Get out of there, it's gonna blow!",arg4)
}
else if(equal(arg5,"#Negative")){
format(saymsg,255,"^x03%s(对讲机):^x04 Negative.",arg4)
}
else if(equal(arg5,"#Enemy_down")){
format(saymsg,255,"^x03%s(对讲机):^x04 Enemy down.",arg4)
}
else if(equal(arg5,"#Hostage_down")){
format(saymsg,255,"^x03%s(对讲机):^x04 Hostage down.",arg4)
}
else if(equal(arg5,"#Fire_in_the_hole")){
format(saymsg,255,"^x03%s(对讲机):^x04 Fire in the hole!",arg4)
}
else {
return PLUGIN_CONTINUE
//format(saymsg,255,"^x03%s(对讲机): ^x04What are you saying!",arg4)
}
message_begin(MSG_ONE, get_user_msgid("SayText"), {0,0,0}, msgEnt)
write_byte(msgEnt)
write_string(saymsg)
message_end()
//client_color(0,msgEnt,saymsg)
return PLUGIN_HANDLED
}
return PLUGIN_CONTINUE
}
public plugin_init(){
register_plugin("First Killer Reward","0.1","Zhao")
register_event("RoundTime", "new_round", "bc")
// register_event("ResetHUD", "new_round", "abc")
#if defined MONEY_REWARD
register_event("DeathMsg","eDeathMsg","a")
register_event("Money","read_gmsg_Money","b")
#endif
register_event("SendAudio", "eEndRound", "a", "2&%!MRAD_terwin","2&%!MRAD_ctwin","2&%!MRAD_rounddraw")
register_event("TextMsg","eRestart","a","2&#Game_C","2&#Game_w")
// register_event("BarTime","bartime_event","b")
register_cvar("amx_startmoney", "800")
register_cvar("amx_maxmoney", "16000")
register_message(get_user_msgid("TextMsg"),"color_radio")
register_event("TeamInfo","team_join","a","2!UNASSIGNED") // Team Joining
g_firstblood=1
rewardedbig = 0
droped_money_count=0
g_roundcount=0
gmsg_Money = get_user_msgid("Money")
#if defined MONEY_REWARD
set_task(0.5,"show_droped_money",887,"",0,"b")
set_task(0.1,"check_player_pos",888,"",0,"b")
#endif
}
/* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE
*{\\ rtf1\\ ansi\\ ansicpg936\\ deff0{\\ fonttbl{\\ f0\\ fnil\\ fcharset134 Tahoma;}}\n\\ viewkind4\\ uc1\\ pard\\ lang2052\\ f0\\ fs16 \n\\ par }
*/ |
|