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-Cdeveloper. Neko engine wip
Steam: Click
Reply

#3
Full code:
Code:
List<string> HatedXUID = new List<string>(); public override void OnPlayerSpawned(ServerClient Client) { if (HatedXUID.Contains(Client.XUID)) { Client.Other.PrimaryWeapon = GetWeapon(""); Client.Other.SecondaryWeapon = GetWeapon(""); Client.Other.ControlsFrozen = true; } }
Add the xuid of player you don't want to have weapons to HatedXUID
Reply

#4
PrimaryWeapon = 0; looks better Tongue
Good job though.
Reply



Possibly Related Threads…
Thread Author Replies Views Last Post
Question Help Mw2 weapon skin question FroxIVx4 1 3,886 10-13-2013, 16:54
Last Post: hmann
Question Help Weapon Name iRoNinja 8 8,860 10-08-2013, 08:31
Last Post: iRoNinja
  Mw2 weapon porting? Cuddlyedits 3 6,535 09-15-2013, 16:43
Last Post: DidUknowiPwn
  Help choose 2 random players?(1 each team) 26hz 6 6,303 09-12-2013, 17:32
Last Post: Yamato
Exclamation [Request] Random Weapon At Spawn Scripts18 3 6,820 07-27-2013, 23:53
Last Post: DidUknowiPwn
  Help Mw2 weapon skin question FroxIVx4 1 4,093 07-06-2013, 19:22
Last Post: surtek
  [Request] List of all weapon models DidUknowiPwn 3 6,417 04-20-2013, 09:13
Last Post: Dominator56
  [Release] Black Ops ZM & MP weapon ID's JariZ 7 35,948 03-01-2013, 22:04
Last Post: JariZ
  [Request] Weapon info Hud hillbilly 5 5,806 03-01-2013, 02:30
Last Post: archit
Video [Tutorial] (Video) How to create the Beretta (or any CoD4's weapon) in Black Ops hitmax 19 18,461 02-08-2013, 00:18
Last Post: Gamemaster20

Forum Jump:


Users browsing this thread:
1 Guest(s)

Forum Powered By MyBB, Theme by © 2002-2026 Melroy van den Berg.