WTF_ Posted September 8, 2017 Share Posted September 8, 2017 RA = createTeam ( "Race" , 255 , 0 , 0 ) tabb = { { createVehicle ( 506 , 6786.23828, -2033.16479, 9.54880, 0 , 0 , 180 ) }, { createVehicle ( 541 , 6791.76758, -2033.14282, 9.57411, 0 , 0 , 180 ) }, { createVehicle ( 415 , 6796.22803, -2033.16479, 9.57398, 0 , 0 , 180 ) }, { createVehicle ( 506 , 6799.81934, -2033.16479, 9.53969, 0 , 0 , 180 ) }, { createVehicle ( 541 , 6804.23145, -2033.16479, 9.53966, 0 , 0 , 180 ) }, { createVehicle ( 415 , 6807.46143, -2033.16479, 9.53968, 0 , 0 , 180 ) }, { createVehicle ( 506 , 6810.56494, -2033.16479, 9.53968, 0 , 0 , 180 ) }, } --6793.42090 -2032.82825 9.57630 addEvent ( "warph" , true ) addEventHandler ( "warph" , root , function ( ) setPlayerTeam ( source , RA ) for k,i in ipairs(tabb) do for l,i in ipairs(getPlayersInTeam(RA) ) do local racee = countPlayersInTeam ( RA ) if racee < 23 then warpPedIntoVehicle ( l , k ) else setPlayerTeam ( source , None ) end end end end ) ابي مساعدة في الكود انو شخص بيروح لسيارة منهم كل شخص يروح لسيارة مو شخصين يروحو لسيارة الكود ما يبي يشتغل بالله ابي كل شخص لسيارة ذي اهم شي بالله ابي مساعدة وشكررااا لكل من ساعدني Link to comment
#BrosS Posted September 8, 2017 Share Posted September 8, 2017 weeb = { {506}, {541}, {415} } Blue = {} tabb = { {6786.23828, -2033.16479, 9.54880}, {6791.76758, -2033.14282, 9.57411}, {6796.22803, -2033.16479, 9.57398}, {6799.81934, -2033.16479, 9.53969}, {6804.23145, -2033.16479, 9.53966}, {6807.46143, -2033.16479, 9.53968}, {6810.56494, -2033.16479, 9.53968}, } --6793.42090 -2032.82825 9.57630 addEvent ( "warph" , true ) addEventHandler ( "warph" , root , function ( ) setPlayerTeam ( source , RA ) local x, y, z = unpack(tabb[math.random(#tabb)]) local goku = unpack(weeb[math.random(#weeb)]) local racee = countPlayersInTeam ( RA ) if racee < 23 then setElementPosition(source, x, y, z) Blue[source] = createVehicle( goku, x, y, z, 0, 0, 0 ) warpPedIntoVehicle ( source , Blue[source] ) else setPlayerTeam ( source , nil ) end end ); جوال 1 Link to comment
Ahmed Ly Posted September 8, 2017 Share Posted September 8, 2017 RA = createTeam ( "Race" , 255 , 0 , 0 ) tabb = { [ 1 ] = {id = 506 , x = 6786.23828, y = -2033.16479, z = 9.54880, rx = 0 , ry = 0 , rz = 180 }, [ 2 ] = {id = 541 , x = 6791.76758, y = -2033.14282, z = 9.57411, rx = 0 , ry = 0 , rz = 180 }, [ 3 ] = {id = 415 , x = 6796.22803, y = -2033.16479, z = 9.57398, rx = 0 , ry = 0 , rz = 180 }, [ 4 ] = {id = 506 , x = 6799.81934, y = -2033.16479, z = 9.53969, rx = 0 , ry = 0 , rz = 180 }, [ 5 ] = {id = 541 , x = 6804.23145, y = -2033.16479, z = 9.53966, rx = 0 , ry = 0 , rz = 180 }, [ 6 ] = {id = 415 , x = 6807.46143, y = -2033.16479, z = 9.53968, rx = 0 , ry = 0 , rz = 180 }, [ 7 ] = {id = 506 ,x = 6810.56494,y = -2033.16479, z = 9.53968, rx = 0 , ry = 0 , rz = 180} } anumber = 0 Vehicle = {} addEvent ( "warph" , true ) addEventHandler ( "warph" , root , function ( ) setPlayerTeam ( source , RA ) local team = getPlayerTeam(source) local racee = countPlayersInTeam ( team ) if racee < 23 then anumber = anumber + 1 Vehicle[source] = createVehicle(tabb[anumber].id,tabb[anumber].x,tabb[anumber].y,tabb[anumber].z,tabb[anumber].rx,tabb[anumber].ry,tabb[anumber].rz) warpPedIntoVehicle(source,Vehicle[source]) else setPlayerTeam(source,nil) end end ) Link to comment
Rockyz Posted September 8, 2017 Share Posted September 8, 2017 7 minutes ago, Ahmed Ly said: RA = createTeam ( "Race" , 255 , 0 , 0 ) tabb = { [ 1 ] = {id = 506 , x = 6786.23828, y = -2033.16479, z = 9.54880, rx = 0 , ry = 0 , rz = 180 }, [ 2 ] = {id = 541 , x = 6791.76758, y = -2033.14282, z = 9.57411, rx = 0 , ry = 0 , rz = 180 }, [ 3 ] = {id = 415 , x = 6796.22803, y = -2033.16479, z = 9.57398, rx = 0 , ry = 0 , rz = 180 }, [ 4 ] = {id = 506 , x = 6799.81934, y = -2033.16479, z = 9.53969, rx = 0 , ry = 0 , rz = 180 }, [ 5 ] = {id = 541 , x = 6804.23145, y = -2033.16479, z = 9.53966, rx = 0 , ry = 0 , rz = 180 }, [ 6 ] = {id = 415 , x = 6807.46143, y = -2033.16479, z = 9.53968, rx = 0 , ry = 0 , rz = 180 }, [ 7 ] = {id = 506 ,x = 6810.56494,y = -2033.16479, z = 9.53968, rx = 0 , ry = 0 , rz = 180} } anumber = 0 Vehicle = {} addEvent ( "warph" , true ) addEventHandler ( "warph" , root , function ( ) setPlayerTeam ( source , RA ) local team = getPlayerTeam(source) local racee = countPlayersInTeam ( team ) if racee < 23 then anumber = anumber + 1 Vehicle[source] = createVehicle(tabb[anumber].id,tabb[anumber].x,tabb[anumber].y,tabb[anumber].z,tabb[anumber].rx,tabb[anumber].ry,tabb[anumber].rz) warpPedIntoVehicle(source,Vehicle[source]) else setPlayerTeam(source,nil) end end ) طريقة بروس افضل Link to comment
N3xT Posted September 8, 2017 Share Posted September 8, 2017 بعطيك طريقة أفضل وأضمن من اللي فوق, سوي تحقق أن المركبة خالية من اللاعبين وبعدين سوي له وارب 3 Link to comment
WTF_ Posted September 8, 2017 Author Share Posted September 8, 2017 1 hour ago, #BrosS said: weeb = { {506}, {541}, {415} } Blue = {} tabb = { {6786.23828, -2033.16479, 9.54880}, {6791.76758, -2033.14282, 9.57411}, {6796.22803, -2033.16479, 9.57398}, {6799.81934, -2033.16479, 9.53969}, {6804.23145, -2033.16479, 9.53966}, {6807.46143, -2033.16479, 9.53968}, {6810.56494, -2033.16479, 9.53968}, } --6793.42090 -2032.82825 9.57630 addEvent ( "warph" , true ) addEventHandler ( "warph" , root , function ( ) setPlayerTeam ( source , RA ) local x, y, z = unpack(tabb[math.random(#tabb)]) local goku = unpack(weeb[math.random(#weeb)]) local racee = countPlayersInTeam ( RA ) if racee < 23 then setElementPosition(source, x, y, z) Blue[source] = createVehicle( goku, x, y, z, 0, 0, 0 ) warpPedIntoVehicle ( source , Blue[source] ) else setPlayerTeam ( source , nil ) end end ); جوال بروس صراحة شكرااااا لك والله كفوووووووووووو وشكراااااااااااا لككككككككككككك إنشاء الله موفق اخوي <3 Link to comment
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