Ahmed Ly Posted April 10, 2016 Share Posted April 10, 2016 السلام عليكم ------ ابي فنكشنات لو لاعب بنقه اكثر 1500 نبيه يموت ويطلع كلام في شات Link to comment
iMr.WiFi..! Posted April 10, 2016 Share Posted April 10, 2016 getPlayerPing -- سوي تحقق انه بنقه يساوي 1500 او فوق setElementHealth -- 0 outputChatBox Link to comment
SycroX Posted April 10, 2016 Share Posted April 10, 2016 function CheckPing() for i, p in ipairs(getElementsByType("player")) do if getPlayerPing(p) > 1500 then killPed(p) end end setTimer(CheckPing, 1000, 0, true) تفضل الكود سيرفر Link to comment
Me[Z]oO Posted April 10, 2016 Share Posted April 10, 2016 setTimer(function() for i, player in ipairs(getElementsByType("player")) do if (getPlayerPing(player) >= 500) then killPed(player,player) end end end,5000,1) Link to comment
iMr.WiFi..! Posted April 10, 2016 Share Posted April 10, 2016 (edited) setTimer(function() for i, player in ipairs(getElementsByType("player")) do if (getPlayerPing(player) >= 500) then killPed(player,player) end end end,5000,1) تفضل الكود سيرفر function CheckPing() for i, p in ipairs(getElementsByType("player")) do if getPlayerPing(p) > 1500 then killPed(p) end end setTimer(CheckPing, 1000, 0, true) تفضل الكود سيرفر طيب هو ما طلب جاهز يقدر يسويه بنفسه + عطيته انا الفنكشنات Edited April 10, 2016 by Guest Link to comment
SycroX Posted April 10, 2016 Share Posted April 10, 2016 (edited) فنكشناتك ناقصة setTimer Edited : Add outputChatBox function CheckPing() for i, p in ipairs(getElementsByType("player")) do if getPlayerPing(p) > 1500 then killPed(p) outputChatBox(" "..getPlayerName(p).." Has Killed By Console , Reason : High Ping Detected "..getPlayerPing(p).." ", root, 255, 0, 0, true) end end setTimer(CheckPing, 1000, 0, true) Edited April 10, 2016 by Guest Link to comment
Me[Z]oO Posted April 10, 2016 Share Posted April 10, 2016 هو مو مبتدأ ادري انا عطيته ياه بس + بفنكشناتك ناقص تايمر ! Link to comment
Ahmed Ly Posted April 10, 2016 Author Share Posted April 10, 2016 function Ping () local PlayerPing = getPlayerPing(source) local NamePlayer = getPlayerName(source) if PlayerPing >= 1500 then killPlayer(source,source) outputChatBox("[server-Dragon] "..NamePlayer.." got killed for having a bad ping ",root,0,255,0) end end setTimer(Ping,3000,1) وين خطا في كودي Link to comment
Me[Z]oO Posted April 10, 2016 Share Posted April 10, 2016 function Ping () local PlayerPing = getPlayerPing(source) local NamePlayer = getPlayerName(source) if PlayerPing >= 1500 then killPlayer(source,source) outputChatBox("[server-Dragon] "..NamePlayer.." got killed for having a bad ping ",root,0,255,0) end end setTimer(Ping,3000,1) وين خطا في كودي وين اللوب ؟ Link to comment
Ahmed Ly Posted April 10, 2016 Author Share Posted April 10, 2016 function Ping () local PlayerPing = getPlayerPing(source) local NamePlayer = getPlayerName(source) if PlayerPing >= 1500 then killPlayer(source,source) outputChatBox("[server-Dragon] "..NamePlayer.." got killed for having a bad ping ",root,0,255,0) end end setTimer(Ping,3000,1) وين خطا في كودي وين اللوب ؟ ليش اللوب ؟ Link to comment
SycroX Posted April 10, 2016 Share Posted April 10, 2016 function Ping () local PlayerPing = getPlayerPing(source) local NamePlayer = getPlayerName(source) if PlayerPing >= 1500 then killPlayer(source,source) outputChatBox("[server-Dragon] "..NamePlayer.." got killed for having a bad ping ",root,0,255,0) end end setTimer(Ping,3000,1) وين خطا في كودي وين اللوب ؟ ليش اللوب ؟ عشان يجيب لك اللاعبين و يقتل الي بنقو اكتر من 1500 بص جرب الكود حقي اسهل و اتعلم منو Link to comment
Mr.CoR Posted April 10, 2016 Share Posted April 10, 2016 ليش اللوب ؟ اللوب يفيدك انه يلف على جميع لاعبين السيرفر 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