Jump to content

×[مساعده]× ب كود انتي سبام


iiv03

Recommended Posts

هلا,

معلش شباب انا سويت ذا كود ب سيرفر سايد حق اغاني لو كتبت شي بتسمع شي بس لو كتبته مرتين الأمر راح يقولك انتضر .. :(

Please Wait

addCommandHandler("cena",
	function (player, cmd, sound)
		if isObjectInACLGroup("user."..getAccountName(getPlayerAccount(player)), aclGetGroup("Donation")) then
		triggerClientEvent("onClientPlaySound", player, sound)
		setTimer(function()
	outputChatBox("#66CC99[SOUNDS]#FFFFFF : "..getPlayerName(player).. "#FFFFFF AND HIS NAME IS CENAA!",getRootElement(),255,255,255, true)
			end,3700,1)
		end
	end
)

 

Edited by liwahadri
Link to comment

السلام عليكم و رحمة الله و بركاته

addCommandHandler("cena",
	function (player, cmd, sound)
	if isTimer(TimerTest) then return 	outputChatBox("test",getRootElement(),255,255,255, true) end

		if isObjectInACLGroup("user."..getAccountName(getPlayerAccount(player)), aclGetGroup("Donation")) then
		triggerClientEvent("onClientPlaySound", player, sound)
		TimerTest = setTimer(function()
	outputChatBox("#66CC99[SOUNDS]#FFFFFF : "..getPlayerName(player).. "#FFFFFF AND HIS NAME IS CENAA!",getRootElement(),255,255,255, true)
			end,3700,1)
		end
	end
)

addCommandHandler("stopcena", -- امر اطفاء الاغنية او الصوت الي شغلته
function (player,cmd, sound)
	if isTimer(TimerTest) then  -- تحقق لو التايمر الي فوق شغال ولا خلص

 killTimer ( TimerTest )
 triggerClientEvent("onClientPlaySound", player, sound) -- سويه ذا انت عشان يطفي الاغنيه
outputChatBox("#66CC99[SOUNDS]#FFFFFF : "..getPlayerName(player).. "#FFFFFF  222222",getRootElement(),255,255,255, true)
end
end 
)

 

Link to comment
5 hours ago, Bassam*Syria said:

السلام عليكم و رحمة الله و بركاته


addCommandHandler("cena",
	function (player, cmd, sound)
	if isTimer(TimerTest) then return 	outputChatBox("test",getRootElement(),255,255,255, true) end

		if isObjectInACLGroup("user."..getAccountName(getPlayerAccount(player)), aclGetGroup("Donation")) then
		triggerClientEvent("onClientPlaySound", player, sound)
		TimerTest = setTimer(function()
	outputChatBox("#66CC99[SOUNDS]#FFFFFF : "..getPlayerName(player).. "#FFFFFF AND HIS NAME IS CENAA!",getRootElement(),255,255,255, true)
			end,3700,1)
		end
	end
)

addCommandHandler("stopcena", -- امر اطفاء الاغنية او الصوت الي شغلته
function (player,cmd, sound)
	if isTimer(TimerTest) then  -- تحقق لو التايمر الي فوق شغال ولا خلص

 killTimer ( TimerTest )
 triggerClientEvent("onClientPlaySound", player, sound) -- سويه ذا انت عشان يطفي الاغنيه
outputChatBox("#66CC99[SOUNDS]#FFFFFF : "..getPlayerName(player).. "#FFFFFF  222222",getRootElement(),255,255,255, true)
end
end 
)

 

لا مو قصدي كذا قصدي اذا

كرر مرتين بيجيه

Please Wait

مثلن لو كتبه مره الاول والمره ثاني ينتضر دقيقه بعدين لو خلصت دقيقه يمديه يكتبه مره ثانيه

Link to comment

انا مسويها لك اخوي خذ الي فوق بس وجرب

بيطلع لك فشات كلمى 

test


addCommandHandler("cena",
	function (player, cmd, sound)
	if isTimer(TimerTest) then return 	outputChatBox("test",getRootElement(),255,255,255, true) end

		if isObjectInACLGroup("user."..getAccountName(getPlayerAccount(player)), aclGetGroup("Donation")) then
		triggerClientEvent("onClientPlaySound", player, sound)
		TimerTest = setTimer(function()
	outputChatBox("#66CC99[SOUNDS]#FFFFFF : "..getPlayerName(player).. "#FFFFFF AND HIS NAME IS CENAA!",getRootElement(),255,255,255, true)
			end,3700,1)
		end
	end
)

 

  • Thanks 1
Link to comment
10 hours ago, liwahadri said:

هلا,

معلش شباب انا سويت ذا كود ب سيرفر سايد حق اغاني لو كتبت شي بتسمع شي بس لو كتبته مرتين الأمر راح يقولك انتضر .. :(

Please Wait


addCommandHandler("cena",
	function (player, cmd, sound)
		if isObjectInACLGroup("user."..getAccountName(getPlayerAccount(player)), aclGetGroup("Donation")) then
		triggerClientEvent("onClientPlaySound", player, sound)
		setTimer(function()
	outputChatBox("#66CC99[SOUNDS]#FFFFFF : "..getPlayerName(player).. "#FFFFFF AND HIS NAME IS CENAA!",getRootElement(),255,255,255, true)
			end,3700,1)
		end
	end
)

 

جرب ذا

 


timeTaple = {  };


addCommandHandler("cena",
	function (player, cmd, sound)
		if isObjectInACLGroup("user."..getAccountName(getPlayerAccount(player)), aclGetGroup("Donation")) then
      	if isTimer( timeTaple[player] ) then 
        outputChatBox('please wait', player)
        return end
		triggerClientEvent("onClientPlaySound", player, sound)
      	outputChatBox("#66CC99[SOUNDS]#FFFFFF : "..getPlayerName(player).. "#FFFFFF AND HIS NAME IS CENAA!",getRootElement(),255,255,255, true)
      	timeTaple[player] = setTimer( function() end, 3700, 1 )
		end
	end
)

 

  • Thanks 1
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...