-stolka- Posted September 26, 2013 Posted September 26, 2013 hi i have this function... how do i make "Ateam" variable contains two teams? local Ateam = getTeamFromName ( "Delta Force" ) addCommandHandler( "soldiers", function( plr, cmd, amount ) if not amount then return end amount = tonumber( amount ); local x, y, z = getElementPosition( plr ); local peds = { } for i = 1, amount do x = x + math.cos( math.rad( i + 10 ) ) * 2; y = y - math.sin( math.rad( i + 10 ) ) * 2; local ped = exports [ "slothBot" ]:spawnBot ( x, y, z, 270, math.random ( 300, 303 ), 0, 0, Ateam, math.random ( 24, 32 ), "chasing", true ); setElementModel ( ped, 287 ); setPedStat(ped, 24, 1000); setPedStat(ped, 78, 1000); setPedStat(ped, 79, 1000); setPedStat(ped, 77, 1000); setPedStat(ped, 73, 1000); setPedStat(ped, 72, 1000); setPedStat(ped, 74, 1000); setPedStat(ped, 70, 1000); setPedStat(ped, 71, 1000); setPedStat(ped, 69, 1000); setPedStat(ped, 76, 1000); setPedStat(ped, 75, 1000); if ped then if not playerPeds[ plr ] then playerPeds[ plr ] = { }; table.insert( playerPeds[ plr ], ped ); else table.insert( playerPeds[ plr ], ped ); end table.insert( peds, ped ); end end end ) CAOS RP SKYPE: stolka.caosrp CONNECT to CAOS RP
.:HyPeX:. Posted September 26, 2013 Posted September 26, 2013 I'm not sure that you can make someone or something be on two teams, the tab would just bug up to start with.. My ingame nick is ~HyPeX~ BF3 Gamemode Progress: ~30% - Currently working on AI & MapManager
Castillo Posted September 26, 2013 Posted September 26, 2013 I don't get what do you mean. San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
-stolka- Posted September 26, 2013 Author Posted September 26, 2013 i mean make peds dont attack players in team Delta Force and FBI CAOS RP SKYPE: stolka.caosrp CONNECT to CAOS RP
Castillo Posted September 26, 2013 Posted September 26, 2013 You can't as far as I know. San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
WASSIm. Posted September 27, 2013 Posted September 27, 2013 you can. but you need edite slothbot resource
Castillo Posted September 27, 2013 Posted September 27, 2013 Yeah, that's what I meant, he can't do it that way, he would need to edit slothbot to do it. San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now