xNKM51 Posted August 9, 2016 Share Posted August 9, 2016 السلام عليكم ورحمه الله وبركاته في كود عندي مدري وين الخطاء اتمناء تصحيح addEventHandler("onPlayerMute", root, muted) function muted(Player) if getPlayerSerial == "0BC618B340EC68DE8833855E35AE06F3" then cancelEvent () end end Link to comment
a7zan Posted August 9, 2016 Share Posted August 9, 2016 https://forum.multitheftauto.com/viewtopic.php?f=160&t=102009 Link to comment
Professional Posted August 10, 2016 Share Posted August 10, 2016 local serial1 = { {"السيريال الاول"} {"السيريال الثاني لو بدك تحط كمان تقدر تزيد"} } addEventHandler("onPlayerMute", root, function () serial = getPlayerSerial(source) if serial == serial1 then cancelEvent () end end ) Link to comment
SycroX Posted August 10, 2016 Share Posted August 10, 2016 local serial1 = { {"السيريال الاول"} {"السيريال الثاني لو بدك تحط كمان تقدر تزيد"} } addEventHandler("onPlayerMute", root, function () serial = getPlayerSerial(source) if serial == serial1 then cancelEvent () end end ) يا اخي مبدع بمعنا الكلمة غلط × غلط local ProtectedSerials = { {"Serial 1"}, {"Serial 2"} } function isPlayerSerialProtected(serial) for i, v in ipairs(ProtectedSerials) do if serial == v[1] then return true else end end end addEventHandler("onPlayerMute", root, function() local Serial = getPlayerSerial(source) if isPlayerSerialProtected(Serial) then cancelEvent() else end end) Link to comment
[DONE]* Posted August 11, 2016 Share Posted August 11, 2016 (edited) DELETED. Edited August 11, 2016 by Guest 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