發新話題
打印

顯示誰人扔出膽汁問題

[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 編輯 ]
HKG Extreme X

TOP

引用:
原帖由 柏斯 於 2015-4-22 10:55 發表
更正少少…
呢個唔係顯示邊個扔出膽汁
而家邊個中boomer既event黎…
我search過啲event之中好似最接近已經係依一個..
但係我見過有個場係可以整到一個咁既插件,不過唔記得係邊個場
以你功力有冇咩頭緒
HKG Extreme X

TOP

發新話題