Jump to content

x[ طلب كود ]x


Recommended Posts

آلسلام عليكم

آبي كود لمآ شخص يدخل آلسيرفر مآ يقدر يتكلم آلآ بعد دقيقتين

ولمآ يجي يتكلم يقوله مآ تقدر تتكلم آلآ بعد دقيقتين ولو آتكلم تآني يقوله دقيقة و50 ثآنية - علي حسب آلوقت يعني 

كيف؟

Link to comment
function time(message, messageType)
  setTimer( for _, v = 0,3 do
              if messageType = ( v ) then
      cancelEvent()
        outputChatBox("U must wait for 2mins at least to start chatting" thePlayer)
            end
              end
120000, 1)
end
addEventHandler("onPlayerLogin", getRootElement(), time)

 

Link to comment
1 hour ago, Gat said:

function time(message, messageType)
  setTimer( for _, v = 0,3 do
              if messageType = ( v ) then
      cancelEvent()
        outputChatBox("U must wait for 2mins at least to start chatting" thePlayer)
            end
              end
120000, 1)
end
addEventHandler("onPlayerLogin", getRootElement(), time)

 

طيب آبي آلرسآلة لمآ تيجي بآلشآت يكون جمبهآ تآيمر يعد دقيقتين

يعني كدآ

U must wait for "..time.." at least to start chating

آبي مكآن آل '..time..' يكون عد تنآزلي من دقيقتين ويضل ينزل لين دقيقتين وثآنيتين دقيقتين وثآنية - لين آلدقيقتين تخلص

Link to comment

سويته لك بالداتا علسريع

function getTimeLeft( Timer ) -- to #Soking
	local Details = getTimerDetails( Timer ) 
    local DownDay, DownHours, DownMinutes, DownSeconds = math.floor( Details / 86400000 ), math.floor( Details / 3600000 ), math.floor( Details / 60000 ), math.floor( Details / 1000 ) 
	local Hours, Minutes, Seconds = math.floor( ( Details - DownDay * 86400000 ) / 3600000 ), math.floor( ( Details - DownHours * 3600000 ) / 60000 ), math.floor( ( Details - DownMinutes * 60000 ) / 1000 ) 
    return DownDay, Hours, Minutes, Seconds
end

mint = 2 -- الوقت بالدقائق

addEventHandler("onPlayerJoin",root,
function()
setElementData(source,"DataSpChat",true)
timm = setTimer(function(source)
setElementData(source,"DataSpChat", false)
end,60000*mint,1,source)
end
)

addEventHandler("onPlayerChat",root,
function()
if ( getElementData(source,"DataSpChat") == true ) then
local _,_,min,sec = getTimeLeft(timm)
outputChatBox("Please Wait ( "..min..":"..sec.." )",source,255,0,0,true)
cancelEvent()
end
end
)

 

Edited by #DesTroeyR
Link to comment
58 minutes ago, #DesTroeyR said:

سويته لك بالداتا علسريع


function getTimeLeft( Timer ) -- to #Soking
	local Details = getTimerDetails( Timer ) 
    local DownDay, DownHours, DownMinutes, DownSeconds = math.floor( Details / 86400000 ), math.floor( Details / 3600000 ), math.floor( Details / 60000 ), math.floor( Details / 1000 ) 
	local Hours, Minutes, Seconds = math.floor( ( Details - DownDay * 86400000 ) / 3600000 ), math.floor( ( Details - DownHours * 3600000 ) / 60000 ), math.floor( ( Details - DownMinutes * 60000 ) / 1000 ) 
    return DownDay, Hours, Minutes, Seconds
end

mint = 2 -- الوقت بالدقائق

addEventHandler("onPlayerJoin",root,
function()
setElementData(source,"DataSpChat",true)
timm = setTimer(function(source)
setElementData(source,"DataSpChat", false)
end,60000*mint,1,source)
end
)

addEventHandler("onPlayerChat",root,
function()
if ( getElementData(source,"DataSpChat") == true ) then
local _,_,min,sec = getTimeLeft(timm)
outputChatBox("Please Wait ( "..min..":"..sec.." )",source,255,0,0,true)
cancelEvent()
end
end
)

 

آلوقت تمآم  - لكن آلشخص يقدر يتكلم عآدي  - آنآ آبيه مآ يقدر يتكلم آلآ بعد دقيقتين

Link to comment
34 minutes ago, Source|> said:

حطه في مود التاجات

وش دخل مود آلتآجآت ؟

1 hour ago, #DesTroeyR said:

سويته لك بالداتا علسريع


function getTimeLeft( Timer ) -- to #Soking
	local Details = getTimerDetails( Timer ) 
    local DownDay, DownHours, DownMinutes, DownSeconds = math.floor( Details / 86400000 ), math.floor( Details / 3600000 ), math.floor( Details / 60000 ), math.floor( Details / 1000 ) 
	local Hours, Minutes, Seconds = math.floor( ( Details - DownDay * 86400000 ) / 3600000 ), math.floor( ( Details - DownHours * 3600000 ) / 60000 ), math.floor( ( Details - DownMinutes * 60000 ) / 1000 ) 
    return DownDay, Hours, Minutes, Seconds
end

mint = 2 -- الوقت بالدقائق

addEventHandler("onPlayerJoin",root,
function()
setElementData(source,"DataSpChat",true)
timm = setTimer(function(source)
setElementData(source,"DataSpChat", false)
end,60000*mint,1,source)
end
)

addEventHandler("onPlayerChat",root,
function()
if ( getElementData(source,"DataSpChat") == true ) then
local _,_,min,sec = getTimeLeft(timm)
outputChatBox("Please Wait ( "..min..":"..sec.." )",source,255,0,0,true)
cancelEvent()
end
end
)

 

هو شغآل تمآم - لكن آلمشكلة آلنآس تقدر تتكلم عآدي - بدون آنتظآر دقيقتين

Edited by Mohamed Salah
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...