コード例 #1
0
 public void On_WeaponThrow(WeaponThrowEvent wte)
 {
     if (AdminOnly && !wte.Player.Admin)
     {
         return;
     }
     wte.Weapon.GetItem().amount++;
 }
コード例 #2
0
ファイル: HookTester.cs プロジェクト: Notulp/HookTester
 public void On_WeaponThrow(WeaponThrowEvent wte)
 {
     SetHookWorking("On_WeaponThrow");
     Broadcast(wte.Player.Name + " threw a " + wte.Weapon.ShortPrefabName);
 }