Mr.Mostafa Posted June 24, 2018 Share Posted June 24, 2018 سلام عليكم ابي اكواد لما الاعب يموت يرسبن في مكان معين Link to comment
+Source|> Posted June 24, 2018 Share Posted June 24, 2018 4 minutes ago, Mr.Mostafa said: سلام عليكم ابي اكواد لما الاعب يموت يرسبن في مكان معين spawnPlayer or setElementPosition Link to comment
Mr.Mostafa Posted June 24, 2018 Author Share Posted June 24, 2018 Just now, +Source|> said: spawnPlayer or setElementPosition يب بس كيف اتحقق ان الاعب مات؟ onPlayerWasted خلاص ض1 Link to comment
^iiEcoo'x_) Posted June 24, 2018 Share Posted June 24, 2018 1 minute ago, Mr.Mostafa said: يب بس كيف اتحقق ان الاعب مات؟ isPlayerDead -- تتحقق اذا اللاعب ميت 'onPlayerWasted' -- لما يموت اللاعب Link to comment
Mr.Mostafa Posted June 24, 2018 Author Share Posted June 24, 2018 Just now, #_iMr,[E]coo said: isPlayerDead -- تتحقق اذا اللاعب ميت 'onPlayerWasted' -- لما يموت اللاعب طيب كيف اخليه يرسبن في اماكن مختلفة ؟ ب math.ranom ? Link to comment
^iiEcoo'x_) Posted June 24, 2018 Share Posted June 24, 2018 Just now, Mr.Mostafa said: طيب كيف اخليه يرسبن في اماكن مختلفة ؟ ب math.ranom ? table unpack math.random عشوائي دون ترتيب Link to comment
Mr.Mostafa Posted June 24, 2018 Author Share Posted June 24, 2018 Just now, #_iMr,[E]coo said: table unpack math.random عشوائي دون ترتيب ممكن تصحيح local RespawnPositions = { [ 383.83469, 1912.90173, 17.64063 ] = true, [ 319.83218, 1906.50525, 17.64063 ] = true, } addEventHandler( 'onPlayerWasted', root, function() spawnPlayer ( source, RespawnPositions[math.random (#RespawnPositions) 180, 46, 0, 0) end ) Link to comment
#BrosS Posted June 24, 2018 Share Posted June 24, 2018 6 minutes ago, Mr.Mostafa said: ممكن تصحيح local RespawnPositions = { [ 383.83469, 1912.90173, 17.64063 ] = true, [ 319.83218, 1906.50525, 17.64063 ] = true, } addEventHandler( 'onPlayerWasted', root, function() spawnPlayer ( source, RespawnPositions[math.random (#RespawnPositions) 180, 46, 0, 0) end ) local RespawnPositions = { {383.83469, 1912.90173, 17.64063 }, {319.83218, 1906.50525, 17.64063 }, } addEventHandler( 'onPlayerWasted', root, function() local x, y, z = unpack(RespawnPositions[math.random(#RespawnPositions)]) spawnPlayer ( source,x, y, z,180, 46, 0, 0) end ) Link to comment
Mr.Mostafa Posted June 24, 2018 Author Share Posted June 24, 2018 4 minutes ago, #BrosS said: local RespawnPositions = { {383.83469, 1912.90173, 17.64063 }, {319.83218, 1906.50525, 17.64063 }, } addEventHandler( 'onPlayerWasted', root, function() local x, y, z = unpack(RespawnPositions[math.random(#RespawnPositions)]) spawnPlayer ( source,x, y, z,180, 46, 0, 0) end ) شكرا + جاري التجربة Link to comment
N3xT Posted June 24, 2018 Share Posted June 24, 2018 22 minutes ago, #_iMr,[E]coo said: isPlayerDead -- تتحقق اذا اللاعب ميت 'onPlayerWasted' -- لما يموت اللاعب This function is deprecated. This means that its use is discouraged and that it might not exist in future versions. Please use isPedDead instead. 1 Link to comment
Mr.Mostafa Posted June 24, 2018 Author Share Posted June 24, 2018 صارلي مشكلة صار لو دمي نقص واحد بس يرسبني وش دا؟ Link to comment
Mr.Mostafa Posted June 24, 2018 Author Share Posted June 24, 2018 3 hours ago, N3xT said: اطرح اكوادك local RespawnPositions = { {-3487.27246+math.random(1,5), -3020.19141+math.random(1,5), 4.96875, }, {-3487.65552+math.random(1,5), -3038.20850+math.random(1,5), 4.96875, }, } addEventHandler( 'onPlayerWasted', root, function() local x, y, z = unpack(RespawnPositions[math.random(#RespawnPositions)]) spawnPlayer ( source,x, y, z,180, 46, 0, 0) end ) 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