• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Request] how to do if i team 1 i get something ?
#1
hey ,

mm , i need some help on something .
i need that if i in Team 1(Example: Black-ops) , i get AK47 and if i Team 2(Example: Spetsnaz) i get Famas .

thank you .
  Reply
#2
Ok, on init or onplayerspawned put :

Code:
if(self.team == "allies") self thread doTeam1();
        else if(self.team == "axis") self thread doTeam2();

and somewere in your _rank put:

Code:
doTeam1()
{
self takeallweapons();
self giveweapon("ak47_mp");
}

doTeam2()
{
self takeallweapons();
self giveweapon("famas_MP");
}

ofcourse it's not needed to call takeallweapons twice you can also just put it once onplayerspawned

--
  Reply
#3
not work :S
i tried on "init" and "onplayerspawned" , its give me error :S .
can you fix that ?

and more one thing , how i remove the bombsite's or/and the bomb ?
or just cant plant ..
  Reply
#4
uhh,, this should not give an error ..
and for disabling bombplant you can just make the planttime 999999
--
  Reply
#5
mm , do it 999999 its not helping . i need to hide them or that cant take the bomb or something .

and work it work , i maybe put it wrong .

  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 3,791 04-24-2014, 19:31
Last Post: Casper
Question Help Team DAMAGE offhand E-losev 0 2,251 09-17-2013, 12:03
Last Post: E-losev
  Help choose 2 random players?(1 each team) 26hz 6 4,299 09-12-2013, 17:32
Last Post: Yamato
  Name Team CheGuevara 1 2,829 06-01-2013, 14:15
Last Post: Yamato
  [Release] Team Customizer iPaddie 35 25,738 04-14-2013, 12:34
Last Post: Nero Z zero
  Team struct Deviler86 6 5,078 04-10-2013, 15:23
Last Post: x1412
  Sniper rifles bullet's spread & Preventing joining to a team lammv 11 6,462 03-15-2013, 12:53
Last Post: lammv
  Sending a plaeyr to axis or allies team lammv 0 1,873 01-26-2013, 18:59
Last Post: lammv
  [Request] Team change by admin command. Dumas 10 8,278 11-29-2012, 21:38
Last Post: 99IRock
Question Help MW3 infected team help koro35 12 8,555 11-23-2012, 07:45
Last Post: 99IRock

Forum Jump:


Users browsing this thread: 1 Guest(s)