[Open]
[Close]
顯示誰人扔出膽汁問題
唔知點解點樣改都係只要有人扔出膽汁,都會顯示係我扔
但明明係由第二個人扔
public OnPluginStart()
{
HookEvent("player_now_it", Event_NowVomit);
}
public Event_NowVomit(Handle:event, const String:name[], bool:dontBroadcast)
{
new thrower = GetClientOfUserId(GetEventInt(event, "attacker"));
new victim = GetClientOfUserId(GetEventInt(event, "userid"));
if (IsClientInGame(thrower) && !IsFakeClient(thrower) && IsClientInGame(victim) && !IsFakeClient(victim) && !GetEventBool(event, "by_boomer"))
{
PrintToChatAll("\x04玩家 \x05%N \x01扔出膽汁", thrower, victim);
}
}
各位有冇方法可以點執?萬分感激
[ 本帖最後由 dogsithk 於 2015-4-21 13:32 編輯 ]