Featured Replies
Сейчас на странице 0
- Нет пользователей, просматривающих эту страницу
A better way to browse. Learn more.
A full-screen app on your home screen with push notifications, badges and more.
Используя этот сайт, вы соглашаетесь Условия использования.
So this piece of code basically prevents user from planting the bomb in Search and Destroy, Sabotage or Demolition.
Which can come in handy with iSnipe for example.
(I have only tested it with Search and Destroy but I don't see why it would not work with the other gamemodes).
Code:
PlayerConnected += new Action(entity => { entity.OnInterval(500, (ent) => { if (entity.CurrentWeapon.Equals("briefcase_bomb_mp")) { entity.TakeWeapon("briefcase_bomb_mp"); //Switch back the the player's weapon here.....Kinda optional entity.Call("iprintlnbold", "You are not allowed to plant the bomb!"); } return true; });This is very simple but I haven't seen anyone use it and because it can come in handy I figured I'd post this.
Example Video: