發新話題
打印

請問有冇自殺既單獨插件?

[Close]

請問有冇自殺既單獨插件?

睇過晒d主題同搜索過"自殺"都冇.
主要用黎過關時自殺,但係唔想增加完場時TK數,所以通常隊友要自殺時都只用sm既"處死玩家"(我裝sm既主要目的)
我記得入個一個server,只要打!kill就會自殺,而l4d1果陣有個自殺插件,噤K就可以自殺.
所以請問有冇自殺既單獨插件或者打!kill就會自殺既插件係咩名?
感謝.
西瓜@o@™

TOP

http://steamcommunity.com/groups/hkghost2014
http://www.twitch.tv/oldghost2014

TOP

岩岩寫完 未試
複製內容到剪貼板
代碼:
#include <sourcemod>
#define PLUGIN_VERSION "0.0.0.0.1"
public Plugin:myinfo =
{
name = "sm_kill",
author = "apple_W/david43",
description = "自殺插件",
version = PLUGIN_VERSION,
url = ""
}
public OnPluginStart()
{
RegConsoleCmd("sm_kill", Command_kill);
}
public Action:Command_kill(client, args)
{
new Flags = GetCommandFlags("kill");
SetCommandFlags("kill", Flags | FCVAR_CHEAT);
ClientCommand(client,"kill");
SetCommandFlags("kill", Flags ^ FCVAR_CHEAT);
}
附件: 您所在的用戶組無法下載或查看附件

TOP

why not use ForcePlayerSudicide   ?
CPT 插件開發隊長

TOP

感謝幾位同apple~請問係打咩指令?係咪就咁打kill就可以?

阿,剛試左,噤完~打kill

謝謝apple

[ 本帖最後由 鋼鐵神兵BTX 於 2011-6-28 16:58 編輯 ]
西瓜@o@™

TOP

引用:
原帖由 hihi1210 於 2011-6-28 14:02 發表
why not use ForcePlayerSudicide   ?
寫多幾句唔係威D咩
咁樣寫又得
複製內容到剪貼板
代碼:
#include <sourcemod>
#define PLUGIN_VERSION "0.0.0.0.1"
public Plugin:myinfo =
{
name = "sm_kill",
author = "apple_W/david43",
description = "自殺插件",
version = PLUGIN_VERSION,
url = ""
}
public OnPluginStart()
{
RegConsoleCmd("sm_kill", Command_kill);
}
public Action:Command_kill(client, args)
{
SlapPlayer(client,5000);
IgniteEntity(client, 2.0);
}
[ 本帖最後由 apple_W 於 2011-6-29 12:10 編輯 ]

TOP

回復 6# 的帖子

you forgot the player will down....
CPT 插件開發隊長

TOP

if (GetEntProp(Client, Prop_Send, "m_isIncapacitated")==1)
SlapPlayer(client,99999);

TOP

simply is beauty
ForcePlayerSuicide吧

[ 本帖最後由 leo221094 於 2011-7-1 01:24 編輯 ]

TOP

直接係"~" 打 "kill" 咪得(?)

自行省略    -------->"<--------

TOP

發新話題