• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Weapon Remover For Players
#1
Tongue 
Weapon Remover For Players

Hello is it possible to make a plugin wich can take a gun away by the player name or xuid or make him freeze or something. Cool
  Reply
#2
Yes, of course...
Code:
if(Client.XUID == "hated player's xuid")
{
// take weapon now
// freeze
}
C++/Obj-C developer. Neko engine wip
Steam: Click
[-] The following 1 user says Thank You to Nekochan for this post:
  • OzonE
  Reply
#3
Full code:
CSHARP Code
  1. List<string> HatedXUID = new List<string>();
  2. public override void OnPlayerSpawned(ServerClient Client)
  3. {
  4. if (HatedXUID.Contains(Client.XUID))
  5. {
  6. Client.Other.PrimaryWeapon = GetWeapon("");
  7. Client.Other.SecondaryWeapon = GetWeapon("");
  8. Client.Other.ControlsFrozen = true;
  9. }
  10. }

Add the xuid of player you don't want to have weapons to HatedXUID
[-] The following 1 user says Thank You to archit for this post:
  • d0h!
  Reply
#4
PrimaryWeapon = 0; looks better Tongue
Good job though.
[-] The following 2 users say Thank You to JariZ for this post:
  • archit, zxz0O0
  Reply


Possibly Related Threads...
Thread Author Replies Views Last Post
Question Help Mw2 weapon skin question FroxIVx4 1 1,105 10-13-2013, 16:54
Last Post: hmann
Question Help Weapon Name iRoNinja 8 2,241 10-08-2013, 08:31
Last Post: iRoNinja
  Mw2 weapon porting? Cuddlyedits 3 1,537 09-15-2013, 16:43
Last Post: DidUknowiPwn
  Help choose 2 random players?(1 each team) 26hz 6 1,645 09-12-2013, 17:32
Last Post: Yamato
Rainbow [Release] MW3: Random Weapon Plugin V1 Nekochan 50 13,856 09-11-2013, 15:11
Last Post: EnVi Sweden Rocks
Exclamation [Request] Random Weapon At Spawn Scripts18 3 1,671 07-27-2013, 23:53
Last Post: DidUknowiPwn
  Help Mw2 weapon skin question FroxIVx4 1 1,075 07-06-2013, 19:22
Last Post: surtek
  [Request] List of all weapon models DidUknowiPwn 3 1,530 04-20-2013, 09:13
Last Post: Dominator56
Brick [Release] Friendly Fire remover estebespt 12 2,970 04-04-2013, 23:23
Last Post: Kasra
  [Release] !weapon Plugin 8q4s8 40 10,404 03-24-2013, 17:02
Last Post: X-Track

Forum Jump:


Users browsing this thread: 1 Guest(s)