Vunili Posted May 25, 2016 Posted May 25, 2016 السلام عليكم ورحمة الله وبركاته ابي كود يصك كل الاعبين فريز الا انا StartFreezeلما اكتب في اف 8 يصك كل الاعبين الا انا يفك الفريز عن الكل StopFreeze ولما اكتب وشكرا مقدما
iMr.WiFi..! Posted May 25, 2016 Posted May 25, 2016 امسك الفنكشنات --#Server addCommandHandler getElementsByType setElementFrozen حاول وبنساعدك
Vunili Posted May 25, 2016 Author Posted May 25, 2016 امسك الفنكشنات --#Server addCommandHandler getElementsByType setElementFrozen حاول وبنساعدك انا جديد بالبرمجة ما افهم شي
Ahmed Ly Posted May 25, 2016 Posted May 25, 2016 addCommandHandler("StartFreeze", function () for _,v in ipairs ( getElementsByType ( "player" ) ) do outputChatBox("--",root,0,255,0) setElementFrozen(v,true) end end ) addCommandHandler("StopFreeze", function () for _,v in ipairs ( getElementsByType ( "player" ) ) do outputChatBox("--",root,0,255,0) setElementFrozen(v,false) end end )
Vunili Posted May 25, 2016 Author Posted May 25, 2016 addCommandHandler("StartFreeze", function () for _,v in ipairs ( getElementsByType ( "player" ) ) do outputChatBox("--",root,0,255,0) setElementFrozen(v,true) end end ) addCommandHandler("StopFreeze", function () for _,v in ipairs ( getElementsByType ( "player" ) ) do outputChatBox("--",root,0,255,0) setElementFrozen(v,false) end end ) يعطيك العافية بس اللي راكب السيارة ما ينصك فريز وابيه مايصكني فريز كل اللي بالسيرفر ينصك الا انا
iMr.WiFi..! Posted May 25, 2016 Posted May 25, 2016 addCommandHandler("StartFreeze", function ( plr ) for _,v in ipairs ( getElementsByType ( "player" ) ) do outputChatBox("--",root,0,255,0) setElementFrozen(v,true) setElementFrozen(plr,false) end end ) addCommandHandler("StopFreeze", function () for _,v in ipairs ( getElementsByType ( "player" ) ) do outputChatBox("--",root,0,255,0) setElementFrozen(v,false) end end )
Vunili Posted May 25, 2016 Author Posted May 25, 2016 addCommandHandler("StartFreeze", function ( plr ) for _,v in ipairs ( getElementsByType ( "player" ) ) do outputChatBox("--",root,0,255,0) setElementFrozen(v,true) setElementFrozen(plr,false) end end ) addCommandHandler("StopFreeze", function () for _,v in ipairs ( getElementsByType ( "player" ) ) do outputChatBox("--",root,0,255,0) setElementFrozen(v,false) end end ) كل اللي بالسيرفر ينصك حتى اللي راكب السيارة ؟
Mr.R Posted May 25, 2016 Posted May 25, 2016 اممم جرب كذا , ورداًَ على سؤالك الفريز نعم يجي على الاعب وهو يسوق اي شيء , يعني مهما كان يسوي الاعب الفريز يجيه يجيه سويتها يتحقق من الي كتب الكلمه اذا انت مايعطيه فريز ويعطي الباقين طبعاً بواسطة السيريال نمبر حقك [ serial ] F8 وعشان تجيب السيريال حقك ادخل اللعبه واكتب في addCommandHandler ( "StartFreeze", function ( player ) if ( getPlayerSerial ( player ) == "حط سيريالك هنا" ) then return setElementFrozen ( player, false ) end for _,v in ipairs ( getElementsByType ( "player" ) ) do setElementFrozen ( v, true ) outputChatBox ( "* تم اعطاء الجميع فريز", v, 255, 255, 255, true ) end end ) addCommandHandler ( "StopFreeze", function ( ) for _,v in ipairs ( getElementsByType ( "player" ) ) do setElementFrozen ( v, false ) outputChatBox ( "* تم فك الفريز من الجميع", v, 255, 255, 255, true ) end end )
Abdul KariM Posted May 25, 2016 Posted May 25, 2016 function Freeze( player , cmd ) if cmd == "StartFreeze" then for i , Players in ipairs ( getElementsByType ( "player" ) ) do if player ~= Players then setElementFrozen ( Players , true ) outputChatBox ( "Freeze All",Players ) end end end if cmd == "StopFreeze" then for i , Players in ipairs ( getElementsByType ( "player" ) ) do if player ~= Players then setElementFrozen ( Players , false ) outputChatBox ( "unFreeze All",Players ) end end end end addCommandHandler ( "StartFreeze", Freeze ) addCommandHandler ( "StopFreeze", Freeze )
Vunili Posted May 26, 2016 Author Posted May 26, 2016 اممم جرب كذا , ورداًَ على سؤالك الفريز نعم يجي على الاعب وهو يسوق اي شيء , يعني مهما كان يسوي الاعب الفريز يجيه يجيهسويتها يتحقق من الي كتب الكلمه اذا انت مايعطيه فريز ويعطي الباقين طبعاً بواسطة السيريال نمبر حقك [ serial ] F8 وعشان تجيب السيريال حقك ادخل اللعبه واكتب في addCommandHandler ( "StartFreeze", function ( player ) if ( getPlayerSerial ( player ) == "حط سيريالك هنا" ) then return setElementFrozen ( player, false ) end for _,v in ipairs ( getElementsByType ( "player" ) ) do setElementFrozen ( v, true ) outputChatBox ( "* تم اعطاء الجميع فريز", v, 255, 255, 255, true ) end end ) addCommandHandler ( "StopFreeze", function ( ) for _,v in ipairs ( getElementsByType ( "player" ) ) do setElementFrozen ( v, false ) outputChatBox ( "* تم فك الفريز من الجميع", v, 255, 255, 255, true ) end end ) فيه بق
Vunili Posted May 26, 2016 Author Posted May 26, 2016 حط الكود في ملف سيرفر ويتعدل server addCommandHandler ( "StartFreeze", function ( player ) if ( getPlayerSerial ( player ) == "حط سيريالك هنا" ) then return setElementFrozen ( player, false ) end for _,v in ipairs ( getElementsByType ( "player" ) ) do setElementFrozen ( v, true ) outputChatBox ( "* تم اعطاء الجميع فريز", v, 255, 255, 255, true ) end end ) client addCommandHandler ( "StopFreeze", function ( ) for _,v in ipairs ( getElementsByType ( "player" ) ) do setElementFrozen ( v, false ) outputChatBox ( "* تم فك الفريز من الجميع", v, 255, 255, 255, true ) end end ) كذا ؟
Vunili Posted May 26, 2016 Author Posted May 26, 2016 حط الكود حق مستر ار بملف سيرفر فقط لما احط سريالي ما اقدر اصك واللي مو محطوط سرياله يقدر يصك فريز ويفكه وابي اللي بالسيارة ينصك فريز الا انا ما انصك وشكرا
YourMind Posted May 26, 2016 Posted May 26, 2016 addCommandHandler ("StartFreeze", function (plr) if getPlayerSerial (plr) == "سيريالك" then for i,k in ipairs (getElementsByType("player")) do setElementFrozen (k,true) setTimer(setElementFrozen,1000,1,plr,false) if isPedInVehicle (k) then setElementFrozen (getPedOccupiedVehicle(k),true) end setTimer(function(plr) if getPedOccupiedVehicle (plr) then setElementFrozen (getPedOccupiedVehicle(plr),false) end end,2000,1,plr) end outputChatBox ( "* تم اعطاء الجميع فريز", root, 255, 255, 0, true ) end end) addCommandHandler ( "StopFreeze", function (plr) if getPlayerSerial (plr) == "سيريالك" then for _,k in ipairs ( getElementsByType ( "player" )) do setElementFrozen ( k, false ) end for e,v in ipairs (getElementsByType("vehicle")) do setElementFrozen (v,false) end outputChatBox ( "* تم فك الفريز من الجميع", root, 255, 255, 255, true ) end end)
Vunili Posted May 26, 2016 Author Posted May 26, 2016 addCommandHandler ("StartFreeze", function (plr) if getPlayerSerial (plr) == "سيريالك" then for i,k in ipairs (getElementsByType("player")) do setElementFrozen (k,true) setTimer(setElementFrozen,1000,1,plr,false) if isPedInVehicle (k) then setElementFrozen (getPedOccupiedVehicle(k),true) end setTimer(function(plr) if getPedOccupiedVehicle (plr) then setElementFrozen (getPedOccupiedVehicle(plr),false) end end,2000,1,plr) end outputChatBox ( "* تم اعطاء الجميع فريز", root, 255, 255, 0, true ) end end) addCommandHandler ( "StopFreeze", function (plr) if getPlayerSerial (plr) == "سيريالك" then for _,k in ipairs ( getElementsByType ( "player" )) do setElementFrozen ( k, false ) end for e,v in ipairs (getElementsByType("vehicle")) do setElementFrozen (v,false) end outputChatBox ( "* تم فك الفريز من الجميع", root, 255, 255, 255, true ) end end) كفو يعطيكم العافية
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