• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help MW3 infected team help
#1
Question 
Hello, i wanna know how to make it so OnPlayerConnect it gives them a gun i already know that code, but what i want to know is how to make it so they cant rejoin and get gun as infected i need the team name or something so i can doit ,
Code:
if (Client.Team = SAS){
int blah = Getweapon blah blah blah } else { dont give gun }
i know nice coding
  Reply
#2
Use
if (client.team == teams.allies)

Allies are survivors
  Reply
#3
or just make it teams.axis and give them a USP with tactical knife and then setting ammo to 0.
Do not take life too seriously. You will never get out of it alive.
[Image: UGPjFJa.jpg]
  Reply
#4
Hi (Im koro35's friend) and we mean that normal players have the normal classes, but that I or koro35 join, that we get a gun (he knows the code) and if we get infected and relog, that we don't have the gun.
U know what I mean ?
[Image: b_560_95_1.png]
[Image: hax0r3ez.gif]
  Reply
#5
not really... mind putting a video?
Do not take life too seriously. You will never get out of it alive.
[Image: UGPjFJa.jpg]
  Reply
#6
(11-22-2012, 15:53)99IRock Wrote: Hi (Im koro35's friend) and we mean that normal players have the normal classes, but that I or koro35 join, that we get a gun (he knows the code) and if we get infected and relog, that we don't have the gun.
U know what I mean ?

Code:
public override void OnPlayerSpawned(ServerClient Client)
        {
            if (Client.Team == Teams.Axis)
            {
                int weapon = GetWeapon("iw5_usp45_mp_tactical");
                Client.Other.WeaponChangeDisabled = true;
                Client.Other.SecondaryWeapon = weapon;
                Client.Ammo.SecondaryAmmo = 0;
                Client.Ammo.SecondaryAmmoClip = 0;
            }
        }

You mean something like this?
  Reply
#7
(11-22-2012, 18:05)8q4s8 Wrote:
(11-22-2012, 15:53)99IRock Wrote: Hi (Im koro35's friend) and we mean that normal players have the normal classes, but that I or koro35 join, that we get a gun (he knows the code) and if we get infected and relog, that we don't have the gun.
U know what I mean ?

Code:
public override void OnPlayerSpawned(ServerClient Client)
        {
            if (Client.Team == Teams.Axis)
            {
                int weapon = GetWeapon("iw5_usp45_mp_tactical");
                Client.Other.WeaponChangeDisabled = true;
                Client.Other.SecondaryWeapon = weapon;
                Client.Ammo.SecondaryAmmo = 0;
                Client.Ammo.SecondaryAmmoClip = 0;
            }
        }

You mean something like this?

I'm sorry its not really clear:
Here:
Ur code is good, but we already have that (We gave the infected in the gamemode nothing, I made one on mw3)
But this is specially for a player with a xuid.
So we need onplayerspawned <xuid from me> and than if im on team SURVIVOR i get a special gun(We got a code for the gun already)
If im on infected I just get the starter class from infected.
I hope u understand me now :p
[Image: b_560_95_1.png]
[Image: hax0r3ez.gif]
  Reply
#8
Ok what he means is that when i join it checks for my XUID and if its the right XUID if im survivor i get a deagle and if im infected i DONT and i rejoin and join infected i also DONT get it.
  Reply
#9
Code:
public override void OnPlayerSpawned(ServerClient Client)
        {
            if (Client.XUID == "your xuid" || Client.XUID == "your friends xuid")
            {
                if (Client.Team == Teams.Allies)
                {
                    //add the weapon stuff here
                }
            }
        }

like that?
  Reply
#10
Yeh thanks
  Reply


Possibly Related Threads...
Thread Author Replies Views Last Post
  Call of Duty loser calls in SWAT team hoax on kid who beat him RaZ 3 1,555 04-24-2014, 19:31
Last Post: Casper
Thumbs Up [Release] AllInOne! for infected robinvm 4 2,217 10-19-2013, 20:00
Last Post: Casper
  Infected Stuff is semi broken DidUknowiPwn 2 1,478 09-21-2013, 20:22
Last Post: surtek
Question Help Team DAMAGE offhand E-losev 0 985 09-17-2013, 12:03
Last Post: E-losev
  Help choose 2 random players?(1 each team) 26hz 6 1,859 09-12-2013, 17:32
Last Post: Yamato
  [Request] no ammo for infected gamemode ExoGamer* 8 2,004 08-15-2013, 18:59
Last Post: Dr3am95
  [Release] AntiRage for Infected Game Mode yokai134 17 6,680 08-04-2013, 22:22
Last Post: yokai134
Wink [Release] Shop system for Infected gametype Nekochan 125 32,294 07-05-2013, 18:09
Last Post: mohammadnanaa
  Name Team CheGuevara 1 1,258 06-01-2013, 14:15
Last Post: Yamato
  mw3 infected game restarts SniperViper 1 853 05-18-2013, 11:37
Last Post: hillbilly

Forum Jump:


Users browsing this thread: 1 Guest(s)