Jump to content

x[ طلب كود ]x


Recommended Posts

Posted

آلسلام عليكم

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

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

كيف؟

Posted
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)

 

Posted
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..' يكون عد تنآزلي من دقيقتين ويضل ينزل لين دقيقتين وثآنيتين دقيقتين وثآنية - لين آلدقيقتين تخلص

Posted (edited)

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

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
Posted
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
)

 

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

Posted
4 minutes ago, Mohamed Salah said:

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

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

Posted (edited)
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
Posted (edited)

المشكلة عندك من الفري روم ..
او من مود التاجات مثل ما قال سورس فوق

Edited by #DesTroeyR
  • Like 1
Posted

 

2 minutes ago, #DesTroeyR said:

المشكلة عندك من الفري روم ..
او من مود التاجات مثل ما قال سورس فوق

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

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...