time = {}
function Countdown (player, cmd)
if isTimer(time[player]) then reutrn end
time[player] = setTimer(function() end,30000,1)
local name = getPlayerName(player)
local r,g,b = getPlayerNametagColor (player)
local accountname = getAccountName (getPlayerAccount(player))
outputChatBox ( "" .. name .. ": #2600FF start countdown!!!", getRootElement(), r, g, b, true )
outputChatBox ( "#2600FF ===3===", getRootElement(), 255, 255, 255, true )
triggerClientEvent("triggerclientforGridCountdown", getRootElement())
setTimer ( Countdown5, 1000, 1 )
end
function Countdown5 ( root )
outputChatBox ( "#2600FF ===2===", getRootElement(), 255, 255, 255, true )
setTimer ( Countdown4, 1000, 1 )
end
function Countdown4 ( root )
outputChatBox ( "#2600FF ===1===", getRootElement(), 255, 255, 255, true )
setTimer ( Countdown3, 1000, 1 )
end
function Countdown3 ( root )
outputChatBox ( "#2600FF Go Go Go!!!", getRootElement(), 255, 255, 255, true )
setTimer ( Countdown2, 1000, 1 )
end
addCommandHandler( "countdown", Countdown )
+ الكود ناقص