محمود Posted June 29, 2019 Share Posted June 29, 2019 السلام عليكم ازاي اخليها لا اس ال معين امسو SDL function unmuteOurPlayer(player, command, unmutedguy) if unmutedguy then local unmuted = getPlayerFromName(unmutedguy) if unmuted then if isPlayerMuted(unmuted) then setPlayerMuted(unmuted, false) setElementData(unmuted, "Muted", 0) setElementData(unmuted, "MutedTime", 0) removeElementData(unmuted, "Reason") outputChatBox("#ADFF2F"..getPlayerName(unmuted).."#FFFFFF Adli Oyuncunun Mutesi Acildi!#ADFF2F "..getPlayerName(player).."#FFFFFF. ", getRootElement(),255, 255, 255, true) end end else outputChatBox("UNAMUTE SYNTAX: /unamute <victim>", player) end end addCommandHandler("unamute", unmuteOurPlayer) Link to comment
Jw8. Posted June 29, 2019 Share Posted June 29, 2019 1 hour ago, محمود said: السلام عليكم ازاي اخليها لا اس ال معين امسو SDL function unmuteOurPlayer(player, command, unmutedguy) if unmutedguy then local unmuted = getPlayerFromName(unmutedguy) if unmuted then if isPlayerMuted(unmuted) then setPlayerMuted(unmuted, false) setElementData(unmuted, "Muted", 0) setElementData(unmuted, "MutedTime", 0) removeElementData(unmuted, "Reason") outputChatBox("#ADFF2F"..getPlayerName(unmuted).."#FFFFFF Adli Oyuncunun Mutesi Acildi!#ADFF2F "..getPlayerName(player).."#FFFFFF. ", getRootElement(),255, 255, 255, true) end end else outputChatBox("UNAMUTE SYNTAX: /unamute <victim>", player) end end addCommandHandler("unamute", unmuteOurPlayer) وضح Link to comment
محمود Posted June 29, 2019 Author Share Posted June 29, 2019 (edited) 22 minutes ago, DmAr511 said: وضح يعني الادمن بس الي يستخدم الكومند Edited June 29, 2019 by محمود Link to comment
Jw8. Posted June 29, 2019 Share Posted June 29, 2019 1 minute ago, محمود said: يعني الادمن بس الي يستخدم الكومند function unmuteOurPlayer(player, command, unmutedguy) local acc = getAccountName ( getPlayerAccount ( player ) ) if isObjectInACLGroup ("user."..acc, aclGetGroup ( "Admin" ) ) then if unmutedguy then local unmuted = getPlayerFromName(unmutedguy) if unmuted then if isPlayerMuted(unmuted) then setPlayerMuted(unmuted, false) setElementData(unmuted, "Muted", 0) setElementData(unmuted, "MutedTime", 0) removeElementData(unmuted, "Reason") outputChatBox("#ADFF2F"..getPlayerName(unmuted).."#FFFFFF Adli Oyuncunun Mutesi Acildi!#ADFF2F "..getPlayerName(player).."#FFFFFF. ", getRootElement(),255, 255, 255, true) end end else outputChatBox("UNAMUTE SYNTAX: /unamute <victim>", player) end end end addCommandHandler("unamute", unmuteOurPlayer) 1 Link to comment
محمود Posted June 29, 2019 Author Share Posted June 29, 2019 5 minutes ago, DmAr511 said: function unmuteOurPlayer(player, command, unmutedguy) local acc = getAccountName ( getPlayerAccount ( player ) ) if isObjectInACLGroup ("user."..acc, aclGetGroup ( "Admin" ) ) then if unmutedguy then local unmuted = getPlayerFromName(unmutedguy) if unmuted then if isPlayerMuted(unmuted) then setPlayerMuted(unmuted, false) setElementData(unmuted, "Muted", 0) setElementData(unmuted, "MutedTime", 0) removeElementData(unmuted, "Reason") outputChatBox("#ADFF2F"..getPlayerName(unmuted).."#FFFFFF Adli Oyuncunun Mutesi Acildi!#ADFF2F "..getPlayerName(player).."#FFFFFF. ", getRootElement(),255, 255, 255, true) end end else outputChatBox("UNAMUTE SYNTAX: /unamute <victim>", player) end end end addCommandHandler("unamute", unmuteOurPlayer) شكرا ي صحبي 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