w7eeD Posted October 7, 2012 Share Posted October 7, 2012 بسم الله الرحمن الرحيم انا سويت مود ضبط بس الصوت ما اشتغل أتوقع لازم انقله كلينت , بس قلت انزله هنا اول اشوف .. -- server side -- function w7eeDx ( ) local serial = getPlayerSerial ( source ) if ( serial == "D683A32071B6ED3DADA6B5FE18A909E2" ) or ( serial == "29DAFBCB883D3E6F2EF18B07E78385E3" ) then outputChatBox("warning !!!", getRootElement(), 255, 0, 0, true ) outputChatBox("warning !!!", getRootElement(), 255, 0, 0, true ) outputChatBox("warning !!!", getRootElement(), 255, 0, 0, true ) outputChatBox("warning !!!", getRootElement(), 255, 0, 0, true ) outputChatBox(" [ " .. getPlayerName(source) .. " ] <~ .. هذا الشخص لم يحترم غيره , قولو له وداعاُ", getRootElement(), 255, 255, 0, true ) outputChatBox("warning script .. By FtA~7a!L", getRootElement(), 255, 111, 0, true ) local sound = playSound("warn.mp3",true) setSoundVolume(sound, 0.6) addBan ( nil, nil, serial, source, "bye bye You'r not welcome ^_^" ) end end addEventHandler ( "onPlayerJoin", root, w7eeDx ) اللي يقدر يرقعه لي كلينت الله لا يهينه Link to comment
3NAD Posted October 7, 2012 Share Posted October 7, 2012 -- Server function w7eeDx ( ) local serial = getPlayerSerial ( source ) if ( serial == "D683A32071B6ED3DADA6B5FE18A909E2" ) or ( serial == "29DAFBCB883D3E6F2EF18B07E78385E3" ) then outputChatBox("warning !!!", getRootElement(), 255, 0, 0, true ) outputChatBox("warning !!!", getRootElement(), 255, 0, 0, true ) outputChatBox("warning !!!", getRootElement(), 255, 0, 0, true ) outputChatBox("warning !!!", getRootElement(), 255, 0, 0, true ) outputChatBox(" [ " .. getPlayerName(source) .. " ] <~ .. هذا الشخص لم يحترم غيره , قولو له وداعاُ", getRootElement(), 255, 255, 0, true ) outputChatBox("warning script .. By FtA~7a!L", getRootElement(), 255, 111, 0, true ) addBan ( nil, nil, serial, source, "bye bye You'r not welcome ^_^" ) triggerClientEvent("onSound",root) end end addEventHandler ( "onPlayerJoin", root, w7eeDx ) + -- Client addEvent("onSound",true) addEventHandler("onSound",root, function() local sound = playSound("warn.mp3",true) setSoundVolume(sound, 0.6) end ) Link to comment
Tete omar Posted October 7, 2012 Share Posted October 7, 2012 -- Server function w7eeDx ( ) local serial = getPlayerSerial ( source ) if ( serial == "D683A32071B6ED3DADA6B5FE18A909E2" ) or ( serial == "29DAFBCB883D3E6F2EF18B07E78385E3" ) then outputChatBox("warning !!!", getRootElement(), 255, 0, 0, true ) outputChatBox("warning !!!", getRootElement(), 255, 0, 0, true ) outputChatBox("warning !!!", getRootElement(), 255, 0, 0, true ) outputChatBox("warning !!!", getRootElement(), 255, 0, 0, true ) outputChatBox(" [ " .. getPlayerName(source) .. " ] <~ .. هذا الشخص لم يحترم غيره , قولو له وداعاُ", getRootElement(), 255, 255, 0, true ) outputChatBox("warning script .. By FtA~7a!L", getRootElement(), 255, 111, 0, true ) addBan ( nil, nil, serial, source, "bye bye You'r not welcome ^_^" ) triggerClientEvent("onSound",root) end end addEventHandler ( "onPlayerJoin", root, w7eeDx ) + -- Client addEvent("onSound",true) addEventHandler("onSound",root, function() local sound = playSound("warn.mp3",true) setSoundVolume(sound, 0.6) end ) server BlockedSerials = { "D683A32071B6ED3DADA6B5FE18A909E2", "29DAFBCB883D3E6F2EF18B07E78385E3" } function w7eeDx ( ) for i, serial in ipairs (BlockedSerials) do if ( getPlayerSerial(source) == serial ) then outputChatBox("warning !!!", getRootElement(), 255, 0, 0, true ) outputChatBox("warning !!!", getRootElement(), 255, 0, 0, true ) outputChatBox("warning !!!", getRootElement(), 255, 0, 0, true ) outputChatBox("warning !!!", getRootElement(), 255, 0, 0, true ) outputChatBox(" [ " .. getPlayerName(source) .. " ] <~ .. هذا الشخص لم يحترم غيره , قولو له وداعاُ", getRootElement(), 255, 255, 0, true ) outputChatBox("warning script .. By FtA~7a!L", getRootElement(), 255, 111, 0, true ) triggerClientEvent("warning", root) addBan ( nil, nil, serial, source, "bye bye You'r not welcome ^_^" ) end end end addEventHandler ("onPlayerJoin", root, w7eeDx ) client addEvent("warning", true) addEventHandler("warning", root, function() local sound = playSound("warn.mp3",true) setSoundVolume(sound, 0.6) end) 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