ryan112 Posted September 17, 2021 Share Posted September 17, 2021 سلام عليكم شباب احتاج كود مهم addCommandHandler("ctt", ctt) function john(player, cmd) local name = getPlayerName(player) local r,g,b = getPlayerNametagColor (player) local px,py,pz = getElementPosition(source) local playerColor = string.format("#%02X%02X%02X",r,g,b) local accountname = getAccountName (getPlayerAccount(player)) if isObjectInACLGroup ( "user." .. accountname, aclGetGroup ( "VIP" ) ) then if isPlayerMuted ( player ) then return outputChatBox("• You are muted", player,255,0,0,true) end if not getElementData ( player, "commandTimer" ) then setElementData ( player, "commandTimer", true ) cooldown = setTimer ( setElementData, 15000, 1, player, "commandTimer", false ) outputChatBox ( "• "..playerColor.."" .. name .. " #006400AND HIS NAME IS JOHN CENAAAAA!!!", getRootElement(), 0,100,0, true ) triggerClientEvent ("stopOldSound", getRootElement()) triggerClientEvent ("john", getRootElement()) else local remaining = getTimerDetails(cooldown) local theTime = remaining/1000 outputChatBox("• Please wait "..math.floor(tonumber(theTime)).." seconds before playing sounds again",player,255,0,0,true) end else outputChatBox ( "• You need to be a vip to be able to use this", player, 255, 0, 0, true ) return end end هاد مود ازا لاعب كتب في f8 ctt تطلع اغنية بس سيرفر كلو يسمعها انا بدي بس محلو مو هوا واقف يسمعهوا عني local Link to comment
Scripting Moderators xLive Posted September 17, 2021 Scripting Moderators Share Posted September 17, 2021 وعليكم السلام، إذا كنت تحتاج تشغل الصوت للاعب نفسه فقط ليش تستخدم جانب السيرفر؟ استخدم addCommandHandler - إضافة امر playSound - تشغيل صوت Link to comment
ryan112 Posted September 17, 2021 Author Share Posted September 17, 2021 انت مافهمت قصدي انا بدي يضل هيك بس لما لاعب يشغل صوت ما كل سيرفر يسمعو فط يلي حولهو Link to comment
Spyrax Posted September 17, 2021 Share Posted September 17, 2021 9 minutes ago, ryan112 said: انت مافهمت قصدي انا بدي يضل هيك بس لما لاعب يشغل صوت ما كل سيرفر يسمعو فط يلي حولهو playSound3D Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now