ItsMods

Full Version: how to do if i team 1 i get something ?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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 .
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

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 ..
uhh,, this should not give an error ..
and for disabling bombplant you can just make the planttime 999999
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 .