標題:
插件一問,高手幫幫手
[打印本頁]
作者:
Ivanlau2652
時間:
2012-7-9 16:56
標題:
插件一問,高手幫幫手
#include <sourcemod>
#include <sdktools>
public Plugin:myinfo =
{
name = "Left 4 Dead Teamkill disable",
author = "Joshua Coffey",
description = "Kills TKers",
version = "2.0.0.0",
url = "http://www.sourcemod.net/"
};
public OnPluginStart()
{
HookEvent("player_incapacitated", Event_PlayerIncapacitated)
}
public Event_PlayerIncapacitated(Handle:event, const String:name[], bool:dontBroadcast)
{
new victim_id = GetEventInt(event, "userid")
new attacker_id = GetEventInt(event, "attacker")
new victim = GetClientOfUserId(victim_id)
new attacker = GetClientOfUserId(attacker_id)
if (GetClientTeam(victim) == GetClientTeam(attacker)){
ForcePlayerSuicide(attacker);
PrintToChatAll ("
TEAMKILLER
IS DEAD);
}
呢個係一個TK人要死既插件,不過
我想問呢個TEAMKILLER點改做殺死人個個名,麻煩幫幫手!
作者:
hihi1210
時間:
2012-7-11 03:05
PrintToChatAll ("TEAMKILLER %N IS DEAD,attacker);
作者:
Ivanlau2652
時間:
2012-7-11 16:17
呢句我都試過,不過點解COMPILE唔到既......
[
本帖最後由 Ivanlau2652 於 2012-7-11 16:24 編輯
]
作者:
hihi1210
時間:
2012-7-12 03:48
PrintToChatAll ("TEAMKILLER %N IS DEAD,attacker);
to
PrintToChatAll ("TEAMKILLER %N IS DEAD",attacker);
作者:
Ivanlau2652
時間:
2012-7-13 14:47
唔該哂!HAHA
歡迎光臨 IPvE vLan 遊戲平台|網吧系統 (https://www.ipve.com/bbs/)
Powered by Discuz! 6.0.0