Jump to content

طلب فنكشنات


Recommended Posts

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 by Guest
Link to comment

فنكشناتك ناقصة

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 by Guest
Link to comment
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) 

وين خطا في كودي

:redhotevil:

Link to comment
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) 

وين خطا في كودي

:redhotevil:

وين اللوب ؟

Link to comment
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) 

وين خطا في كودي

:redhotevil:

وين اللوب ؟

ليش اللوب ؟

Link to comment
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) 

وين خطا في كودي

:redhotevil:

وين اللوب ؟

ليش اللوب ؟

عشان يجيب لك اللاعبين و يقتل الي بنقو اكتر من 1500 بص جرب الكود حقي :) اسهل و اتعلم منو

Link to comment

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...