|
#include <amxmodx>
#include <cstrike>
#include <unlimited_money>
#define MONEY 1000
public plugin_init(){
register_plugin("Bomb Reward","1.0","ZhangSheng")
return PLUGIN_CONTINUE
}
public bomb_defused(defuser)
{
new CsTeams:team
for(new i=1;i<=32;i++)
{
if(!is_user_connected(i)) continue
team = cs_get_user_team(i)
if(team==CS_TEAM_CT){
cs_set_user_money2(i, cs_get_user_money2(i) + MONEY)
}else if(team==CS_TEAM_T){
cs_set_user_money2(i, cs_get_user_money2(i) - MONEY)
}
}
new msg[256]
new iLen = format(msg, 255, "炸彈被拆除")
iLen += format(msg[iLen], 255-iLen, "^n全體警察額外獎勵%d元", MONEY)
format(msg[iLen], 255-iLen, "^n全體匪徒扣除金錢%d元", MONEY)
set_hudmessage(0,128,255,-1.0,0.65,0, 1.5, 5.0, 0.01, 0.01, 9)
show_hudmessage(0,msg)
}
public bomb_explode(planter, defuser)
{
new CsTeams:team
for(new i=1;i<=32;i++)
{
if(!is_user_connected(i)) continue
team = cs_get_user_team(i)
if(team==CS_TEAM_T){
cs_set_user_money2(i, cs_get_user_money2(i) + MONEY)
}else if(team==CS_TEAM_CT){
cs_set_user_money2(i, cs_get_user_money2(i) - MONEY)
}
}
new msg[256]
new iLen = format(msg, 255, "炸彈被引爆")
iLen += format(msg[iLen], 255-iLen, "^n全體匪徒額外獎勵%d元", MONEY)
format(msg[iLen], 255-iLen, "^n全體警察扣除金錢%d元", MONEY)
set_hudmessage(0,128,255,-1.0,0.65,0, 1.5, 5.0, 0.01, 0.01, 9)
show_hudmessage(0,msg)
}
和
/* 本插件由 AMXX-Studio 中文版自動生成*/
/* UTF-8 func by www.DT-Club.net */
#include <amxmodx>
#include <amxmisc>
#include <engine>
public plugin_init() {
register_plugin("AMX Slay Losers","1.76c","Dt_C.H.M")
register_event("SendAudio","end_round","a","2=%!MRAD_terwin","2=%!MRAD_ctwin","2=%!MRAD_rounddraw")
register_cvar("mp_slaylosers","1",FCVAR_SERVER)
return PLUGIN_CONTINUE
}
public end_round() {
if( get_cvar_num("mp_slaylosers") == 1) {
new parm[32]
read_data(2,parm,31)
set_task(1.0,"slay_those_losers",15120,parm, 31)
}
return PLUGIN_CONTINUE
}
public slay_those_losers(parm[]) {
new player[32], playersnum
get_players(player,playersnum,"ea",(parm[7] == 't') ? "CT" : "TERRORIST" )
for(new i = 0; i < playersnum; ++i){
user_silentkill(player )
if (playersnum)
client_print(0,print_center,"* * *任務失敗方要被處死* * *")
}
}
/* 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 }
*/
請問怎樣才能合左一起....
要有
炸彈被爆後ct扣錢t加錢和炸彈被拆後ct加錢t扣錢
和任務失敗會有1000元輔助金
因為炸彈被拆或引爆 和時間到 而c4沒被安裝 這3個條件所以我不會合左一起 |
|