Dr.Xen Posted January 18, 2014 Share Posted January 18, 2014 السلام عليكم ورحمة الله وبركاته.. ابيكم تعدلو على الكود outputChatBox("* #0069c7Jump Mode By#ff0000 0.o",255,0,0,true) key = "lshift" -- You Can Change This player = localPlayer bindKey(key,"down", function () if isPedInVehicle(player) then local veh = getPedOccupiedVehicle(player) if isPedOnGround(player) then local vx,vy,vz = getElementVelocity(veh) setElementVelocity(veh,vx,vy,vz + 0.3) end end end ) تخلو كذا : المود يشتغل بآي بي السيرفر يعني لمن تحط اي بي سيرفرك تشتغل في سيرفرك اما غيرها لأ Link to comment
xX|KeMo|Xx Posted January 18, 2014 Share Posted January 18, 2014 ما تقدر على اي بي السيرفر ممكن من اسمه getServerName() والكود فيهـ اخطآء Link to comment
Dr.Xen Posted January 18, 2014 Author Share Posted January 18, 2014 يب مافي مشكلة بالإسم .. ممكن تعدل لي علشاني مبتدئ ما اعرف اسوي كود Link to comment
xX|KeMo|Xx Posted January 18, 2014 Share Posted January 18, 2014 (edited) outputChatBox("* #0069c7Jump Mode By#ff0000 0.o",root,255,0,0,true) key = "lshift" function xx(x) if isPedInVehicle(x) then local veh = getPedOccupiedVehicle(x) if isPedOnGround(x) then local vx,vy,vz = getElementVelocity(veh) setElementVelocity(veh,vx,vy,vz + 0.3) end end end addEventHandler("onResourceStart", resourceRoot, function () if getServerName() == "اسم سيرفركـ" then bindKey ( source, key, "down", xx ) else unbindKey ( source, key, "down", xx ) end end ) جرب سيرفر (تم اضافهـ قوس مفقود) Edited January 18, 2014 by Guest Link to comment
Dr.Xen Posted January 18, 2014 Author Share Posted January 18, 2014 ابيه كذا لو تشغل من اللوحة ما تشتغل ! Link to comment
K1NG Posted January 18, 2014 Share Posted January 18, 2014 (edited) outputChatBox("* #0069c7Jump Mode By#ff0000 0.o",root,255,0,0,true) key = "lshift" function xx(x) if isPedInVehicle(x) then local veh = getPedOccupiedVehicle(x) if isPedOnGround(x) then local vx,vy,vz = getElementVelocity(veh) setElementVelocity(veh,vx,vy,vz + 0.3) end end end addEventHandler("onResourceStart", resourceRoot, function () if getServerName() == "اسم سيرفركـ" then bindKey ( source, key, "down", xx ) else unbindKey ( source, key, "down", xx ) end end جرب سيرفر غلط شغلكـ اخوي، ياليت تتأكد من أكوادكـ قبل لاتحطها --- بالنسبة لصاحب الموضوع فيه وظيفة مسويها الأخ "مجنون فيك" ع اساس انها تجيب أيبي السيرفر، انا ماقد جربتها بس اذا ماضبطت يكون الغلط بالموقع الي يجلب الأيبي https://forum.multitheftauto.com/viewtopic.php?f=160&t=50111&start=45#p600340 + على كل حال انا رتبت لك الوظيفة عشان اسهل عليكـ فهمها : وع العموم هذا الكود كامل بجانب سيرفر، الي عليك تحط أيبي السيرفر بأول سطر وجرب originalServerIP = "ايبي السيرفر" local key = "lshift" function getServerIP ( ) callRemote ( "http://www.nub.hj.cx/getServerIp.php", function ( value ) if ( value ~= "ERROR" ) then ip = value end end ) return ip end addEventHandler ( "onResourceStart", resourceRoot, function ( ) if ( getServerIP ( ) ~= originalServerIP ) then cancelEvent ( ) outputChatBox ( "ممنوع سرقة المودات", root, 255, 0, 0, true ) else outputChatBox ( "* #0069c7Jump Mode By #ff00000.o", root, 255, 0, 0, true ) for _, v in ipairs ( getElementsByType ( "player" ) ) do bindKey ( v, key, "down", Jump ) end end end ) addEventHandler ( "onPlayerJoin", root, function ( ) bindKey ( source, key, "down", Jump ) end ) function Jump ( player ) if ( isPedInVehicle ( player) ) then local veh = getPedOccupiedVehicle ( player ) if ( isVehicleOnGround ( veh ) ) then local vx, vy, vz = getElementVelocity ( veh ) setElementVelocity ( veh, vx, vy, vz + 0.3 ) end end end Edited January 18, 2014 by Guest Link to comment
TAPL Posted January 18, 2014 Share Posted January 18, 2014 دائما false راح يعطي isPedOnGround اعتقد إذا كان راكب سيارة الفنكشن هذا isVehicleOnGround المفروض تستخدم هذا الفنكشن Link to comment
xX|KeMo|Xx Posted January 18, 2014 Share Posted January 18, 2014 غلط شغلكـ اخوي، ياليت تتأكد من أكوادكـ قبل لاتحطها كنت نآسي قوس اضفتهـ ابيه كذا لو تشغل من اللوحة ما تشتغل ! تقصد يوم يشتغل المود اذا كان اسم السيرفر غلط يسكر ثآني؟ ولا تبي اذا كان اسم السيرفر غلط ما يقدر يضغط الزر؟ Link to comment
Dr.Xen Posted January 18, 2014 Author Share Posted January 18, 2014 يب لو في غلط ما يشتغل ويطلع كلأم في الشات : ممنوع سرقة مودات Link to comment
</Mr.Tn6eL> Posted January 18, 2014 Share Posted January 18, 2014 كود النافذة كلنت كود كيمو سيرفر هذا هو الغلط Link to comment
K1NG Posted January 18, 2014 Share Posted January 18, 2014 دائما false راح يعطي isPedOnGround اعتقد إذا كان راكب سيارة الفنكشن هذاisVehicleOnGround المفروض تستخدم هذا الفنكشن صراحة انا ماشيكت ع الكود هذا لانه منتشر بالكوميونيتي ومجربه الكثير وكذا لأنه لو تلاحظ بالويكي مكتوب true رح يعطي false حسب خبرتي مارح يعطي + This function is used to determine whether or not a ped is on the ground. This is for on-foot usage only. .true عشان كذا الفنكشن ما بيجيب النتيجة الصحيحة لذلكـ رح يعطي دائماً غلط شغلكـ اخوي، ياليت تتأكد من أكوادكـ قبل لاتحطها كنت نآسي قوس اضفتهـ ابيه كذا لو تشغل من اللوحة ما تشتغل ! تقصد يوم يشتغل المود اذا كان اسم السيرفر غلط يسكر ثآني؟ ولا تبي اذا كان اسم السيرفر غلط ما يقدر يضغط الزر؟ .اخوي انت مو ناسي قوس، اكوادكـ كلها مو راكبه ع بعضها يب لو في غلط ما يشتغل ويطلع كلأم في الشات : ممنوع سرقة مودات .راجع ردي الي فوق عدلته وضفت له مخرج الشات Link to comment
TAPL Posted January 18, 2014 Share Posted January 18, 2014 دائما false راح يعطي isPedOnGround اعتقد إذا كان راكب سيارة الفنكشن هذاisVehicleOnGround المفروض تستخدم هذا الفنكشن صراحة انا ماشيكت ع الكود هذا لانه منتشر بالكوميونيتي ومجربه الكثير وكذا لأنه لو تلاحظ بالويكي مكتوب true رح يعطي false حسب خبرتي مارح يعطي + This function is used to determine whether or not a ped is on the ground. This is for on-foot usage only. .true عشان كذا الفنكشن ما بيجيب النتيجة الصحيحة لذلكـ رح يعطي دائماً كلام الويكي واضح جداً Returns true if the ped is on foot and on the ground, false otherwise, even if he is in a car that stands still. Link to comment
K1NG Posted January 18, 2014 Share Posted January 18, 2014 دائما false راح يعطي isPedOnGround اعتقد إذا كان راكب سيارة الفنكشن هذاisVehicleOnGround المفروض تستخدم هذا الفنكشن صراحة انا ماشيكت ع الكود هذا لانه منتشر بالكوميونيتي ومجربه الكثير وكذا لأنه لو تلاحظ بالويكي مكتوب true رح يعطي false حسب خبرتي مارح يعطي + This function is used to determine whether or not a ped is on the ground. This is for on-foot usage only. .true عشان كذا الفنكشن ما بيجيب النتيجة الصحيحة لذلكـ رح يعطي دائماً كلام الويكي واضح جداً Returns true if the ped is on foot and on the ground, false otherwise, even if he is in a car that stands still. أدري، لكن الآن جربت الوظيفة بالهوست وطلع كلامي صحيح .. صار كل ماتضغط على زر "شفت" يطير السيارة ويوم تكبس مرة ثانية يطير السيارة أكثر وأكثر true وهذا معنآهـ انه الوظيفة ماتجيب النتيجة الصحيحة يوم تستخدمها واللاعب داخل السيارة وبما إنه كانت السيارة تطير يوم اضغط "شفت" هذا معنآهـ انه يعطي ! "كان السيارة ماتطير أصلاً يوم اضغط "شفت false بينما لو يعطي Link to comment
TAPL Posted January 19, 2014 Share Posted January 19, 2014 و من قال ان السيارة تطير لما تضغط شفت اساساً و السيارة ما تتحرك من مكانها نهائياً isPedOnGround انا جربت الكود مع الفنكشن السيارة تنقز مره وحده و لما تنزل للأرض تقدر تنقزها مره ثانية isVehicleOnGround بينما لما جربت مع الكود راجع معلوماتك Link to comment
K1NG Posted January 19, 2014 Share Posted January 19, 2014 و من قال ان السيارة تطير لما تضغط شفت اساساًو السيارة ما تتحرك من مكانها نهائياً isPedOnGround انا جربت الكود مع الفنكشن السيارة تنقز مره وحده و لما تنزل للأرض تقدر تنقزها مره ثانية isVehicleOnGround بينما لما جربت مع الكود راجع معلوماتك تطير = تنقز ^ انا توي مجربها وما صار معي الي صار معك، والآن جربتها مرة ثانية ونفس الشي صار معي مثل ماقلت بردي الي قبل ذا + : جرب هالكود عندكـ وردلي خبر وش يصير معكـ local key = "lshift" function Jump ( player ) if ( isPedInVehicle ( player ) ) then local veh = getPedOccupiedVehicle ( player ) if ( isPedOnGround ( player ) ) then local vx, vy, vz = getElementVelocity ( veh ) setElementVelocity ( veh, vx, vy, vz + 0.3 ) end end end addEventHandler ( "onResourceStart", resourceRoot, function ( ) for _, v in ipairs ( getElementsByType ( "player" ) ) do bindKey ( v, key, "down", Jump ) end end ) addEventHandler ( "onPlayerJoin", root, function ( ) bindKey ( source, key, "down", Jump ) end ) . وجربه مرة ثانية /reconnect لو ركبت الكود وجربته ومانقزت المركبة سو Link to comment
TAPL Posted January 19, 2014 Share Posted January 19, 2014 ما يحتاج اروح اجرب شي امسك الكود هذا و روح حطه بالأدمنية في تاب ريسورس و اضغط زر سيرفر و انت مو راكب سيارة + وانت واقف على الأرض isPedOnGround(source) true بتشوف انه بيقول لك جرب نفس الكود مره ثانية بس المره ذي اركب سيارة عاد تطير ولا بالأرض ولا في المريخ مو مهم بس اضغط الزر سيرفر و شوف وش يقول لك false و طبعاً النتيجة مؤكده Link to comment
K1NG Posted January 19, 2014 Share Posted January 19, 2014 ما يحتاج اروح اجرب شيامسك الكود هذا و روح حطه بالأدمنية في تاب ريسورس و اضغط زر سيرفر و انت مو راكب سيارة + وانت واقف على الأرض isPedOnGround(source) true بتشوف انه بيقول لك جرب نفس الكود مره ثانية بس المره ذي اركب سيارة عاد تطير ولا بالأرض ولا في المريخ مو مهم بس اضغط الزر سيرفر و شوف وش يقول لك false و طبعاً النتيجة مؤكده حتى وانا طاير فيها بعد نفس الشي true وأنا بداخل السيارة عطاني Command executed! Result: true -- true وانا بخارج السيارة ( على الأرض ) عطاني نفس الشي Command executed! Result: true -- false يعطني ( JetPack )لكن وانا طاير بالجو بدون سيارة ولا شي، لكن طاير بالـ Command executed! Result: false .جرب الكود الي عطيتكـ يآهـ فوق ورد خبر + Link to comment
TAPL Posted January 19, 2014 Share Posted January 19, 2014 true انا جربت سيارة ثانية و طلع لي دائماً مثل سيارة رقم 402 false و بعض السيارات دائماً يعطي ._. اثره الفنكشن نفسه مخرف مو حنا Link to comment
K1NG Posted January 19, 2014 Share Posted January 19, 2014 true انا جربت سيارة ثانية و طلع لي دائماًمثل سيارة رقم 402 false و بعض السيارات دائماً يعطي ._. اثره الفنكشن نفسه مخرف مو حنا .( يب عشان كذا حاطين بالويكي ممنوع استخدام الفنكشن غير اذا كان البيد خارج المركبة ( على الأقدام Link to comment
Dr.Xen Posted January 19, 2014 Author Share Posted January 19, 2014 outputChatBox("* #0069c7Jump Mode By#ff0000 0.o",root,255,0,0,true) key = "lshift" function xx(x) if isPedInVehicle(x) then local veh = getPedOccupiedVehicle(x) if isPedOnGround(x) then local vx,vy,vz = getElementVelocity(veh) setElementVelocity(veh,vx,vy,vz + 0.3) end end end addEventHandler("onResourceStart", resourceRoot, function () if getServerName() == "اسم سيرفركـ" then bindKey ( source, key, "down", xx ) else unbindKey ( source, key, "down", xx ) end end جرب سيرفر غلط شغلكـ اخوي، ياليت تتأكد من أكوادكـ قبل لاتحطها --- بالنسبة لصاحب الموضوع فيه وظيفة مسويها الأخ "مجنون فيك" ع اساس انها تجيب أيبي السيرفر، انا ماقد جربتها بس اذا ماضبطت يكون الغلط بالموقع الي يجلب الأيبي https://forum.multitheftauto.com/viewtopic.php?f=160&t=50111&start=45#p600340 + على كل حال انا رتبت لك الوظيفة عشان اسهل عليكـ فهمها : وع العموم هذا الكود كامل بجانب سيرفر، الي عليك تحط أيبي السيرفر بأول سطر وجرب originalServerIP = "ايبي السيرفر" local key = "lshift" function getServerIP ( ) callRemote ( "http://www.nub.hj.cx/getServerIp.php", function ( value ) if ( value ~= "ERROR" ) then ip = value end end ) return ip end addEventHandler ( "onResourceStart", resourceRoot, function ( ) if ( getServerIP ( ) ~= originalServerIP ) then cancelEvent ( ) outputChatBox ( "ممنوع سرقة المودات", root, 255, 0, 0, true ) else outputChatBox ( "* #0069c7Jump Mode By #ff00000.o", root, 255, 0, 0, true ) for _, v in ipairs ( getElementsByType ( "player" ) ) do bindKey ( v, key, "down", Jump ) end end end ) addEventHandler ( "onPlayerJoin", root, function ( ) bindKey ( source, key, "down", Jump ) end ) function Jump ( player ) if ( isPedInVehicle ( player) ) then local veh = getPedOccupiedVehicle ( player ) if ( isVehicleOnGround ( veh ) ) then local vx, vy, vz = getElementVelocity ( veh ) setElementVelocity ( veh, vx, vy, vz + 0.3 ) end end end اها طيب انا مثلأ ابي اسويه على التاج وش استخدم ؟ ها التاج g_Root = getRootElement() local chatTime = {} local lastChatMessage = {} addEventHandler('onPlayerChat', g_Root, function(msg, type) if type == 0 then cancelEvent() if chatTime[source] and chatTime[source] + tonumber(get("*chat/mainChatDelay")) > getTickCount() then outputChatBox("* Do Not Flood !!!", source, 999, 0, 0 ) return else chatTime[source] = getTickCount() end if isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("DevGroup")) then local r, g, b = getPlayerNametagColor(source) outputChatBox(" * 〖 Programmer 〗 〖❤ﭑلمہزُهہهہ أنسس❤〗 :#ffff00 " .. msg, g_Root,math.random(0, 700), math.random(0,700), math.random(0,700), true ) outputServerLog("CHAT:* [ŝeṟṽeṟ.ợωиeṟ]x " .. getPlayerName ( source ) .. ": " .. msg) elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Console")) then local r, g, b = getPlayerNametagColor(source) outputChatBox("#FF0000* #FFFF00〖 #2B60DE Console #FFFF00 〗 " .. getPlayerName ( source ) .. ":#800517 " .. msg, g_Root, math.random(0, 700), math.random(0,700), math.random(0,700), true ) outputServerLog("CHAT:* fgb2" .. getPlayerName ( source ) .. ": " .. msg) elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Head.Admin")) then local r, g, b = getPlayerNametagColor(source) outputChatBox("#FF0000* #6A287E 〖#8E35EF Head Admin #6A287E 〗 " .. getPlayerName ( source ) .. ":#ffFFff " .. msg, g_Root,math.random(0, 700), math.random(0,700), math.random(0,700), true ) outputServerLog("CHAT:* 1453 " .. getPlayerName ( source ) .. ": " .. msg) elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Level 1")) then local r, g, b = getPlayerNametagColor(source) outputChatBox("#FF0000* #842DCE〖#E56E94Level #00FFFF1 #842DCE〗 " .. getPlayerName ( source ) .. ":#ffFFff " .. msg, g_Root,math.random(0, 700), math.random(0,700), math.random(0,700), true ) outputServerLog("CHAT:* 1232 " .. getPlayerName ( source ) .. ": " .. msg) elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Level 2")) then local r, g, b = getPlayerNametagColor(source) outputChatBox("#FF0000* #3B9C9C〖#48CCCD Level#00FFFF 2 #3B9C9C〗 " .. getPlayerName ( source ) .. ":#ffFFff " .. msg, g_Root,math.random(0, 700), math.random(0,700), math.random(0,700), true ) outputServerLog("CHAT:* 612 " .. getPlayerName ( source ) .. ": " .. msg) elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Level 3")) then local r, g, b = getPlayerNametagColor(source) outputChatBox("#FF0000* #3B9C9C〖#48CCCD Level#00FFFF 3 #3B9C9C〗" .. getPlayerName ( source ) .. ":#ffFFff " .. msg, g_Root,math.random(0, 700), math.random(0,700), math.random(0,700), true ) outputServerLog("CHAT:* 712 " .. getPlayerName ( source ) .. ": " .. msg) elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Level 4")) then local r, g, b = getPlayerNametagColor(source) outputChatBox(" #FF0000* #3B9C9C〖#48CCCD Level#00FFFF 4 #3B9C9C〗 " .. getPlayerName ( source ) .. ":#ffFFff " .. msg, g_Root,math.random(0, 700), math.random(0,700), math.random(0,700), true ) outputServerLog("CHAT:* 162 " .. getPlayerName ( source ) .. ": " .. msg) elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Level 5")) then local r, g, b = getPlayerNametagColor(source) outputChatBox("#FF0000* #3B9C9C〖#48CCCD Level#00FFFF 5 #3B9C9C〗 " .. getPlayerName ( source ) .. ":#ffFFff " .. msg, g_Root,math.random(0, 700), math.random(0,700), math.random(0,700), true ) outputServerLog("CHAT:* 162 " .. getPlayerName ( source ) .. ": " .. msg) elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Admin")) then local r, g, b = getPlayerNametagColor(source) outputChatBox("* 〖 Admin 〗 " .. getPlayerName ( source ) .. ":#ffFFff " .. msg, g_Root,math.random(0, 700), math.random(0,700), math.random(0,700), true ) outputServerLog("CHAT:* 142" .. getPlayerName ( source ) .. ": " .. msg) elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Support")) then local r, g, b = getPlayerNametagColor(source) outputChatBox("* 〖 Support 〗 " .. getPlayerName ( source ) .. ":#ffFFff " .. msg, g_Root,math.random(0, 700), math.random(0,700), math.random(0,700), true ) outputServerLog("CHAT:* 142" .. getPlayerName ( source ) .. ": " .. msg) elseif type == 0 then cancelEvent ( ) local r, g, b = getPlayerNametagColor(source) outputChatBox ( " " .. getPlayerName ( source ) .. ":#ffFFff " .. msg, g_Root,math.random(0, 700), math.random(0,700), math.random(0,700), true ) outputServerLog( "CHAT: " .. getPlayerName ( source ) .. ": " .. msg ) end end end ) Link to comment
K1NG Posted January 20, 2014 Share Posted January 20, 2014 outputChatBox("* #0069c7Jump Mode By#ff0000 0.o",root,255,0,0,true) key = "lshift" function xx(x) if isPedInVehicle(x) then local veh = getPedOccupiedVehicle(x) if isPedOnGround(x) then local vx,vy,vz = getElementVelocity(veh) setElementVelocity(veh,vx,vy,vz + 0.3) end end end addEventHandler("onResourceStart", resourceRoot, function () if getServerName() == "اسم سيرفركـ" then bindKey ( source, key, "down", xx ) else unbindKey ( source, key, "down", xx ) end end جرب سيرفر غلط شغلكـ اخوي، ياليت تتأكد من أكوادكـ قبل لاتحطها --- بالنسبة لصاحب الموضوع فيه وظيفة مسويها الأخ "مجنون فيك" ع اساس انها تجيب أيبي السيرفر، انا ماقد جربتها بس اذا ماضبطت يكون الغلط بالموقع الي يجلب الأيبي https://forum.multitheftauto.com/viewtopic.php?f=160&t=50111&start=45#p600340 + على كل حال انا رتبت لك الوظيفة عشان اسهل عليكـ فهمها : وع العموم هذا الكود كامل بجانب سيرفر، الي عليك تحط أيبي السيرفر بأول سطر وجرب originalServerIP = "ايبي السيرفر" local key = "lshift" function getServerIP ( ) callRemote ( "http://www.nub.hj.cx/getServerIp.php", function ( value ) if ( value ~= "ERROR" ) then ip = value end end ) return ip end addEventHandler ( "onResourceStart", resourceRoot, function ( ) if ( getServerIP ( ) ~= originalServerIP ) then cancelEvent ( ) outputChatBox ( "ممنوع سرقة المودات", root, 255, 0, 0, true ) else outputChatBox ( "* #0069c7Jump Mode By #ff00000.o", root, 255, 0, 0, true ) for _, v in ipairs ( getElementsByType ( "player" ) ) do bindKey ( v, key, "down", Jump ) end end end ) addEventHandler ( "onPlayerJoin", root, function ( ) bindKey ( source, key, "down", Jump ) end ) function Jump ( player ) if ( isPedInVehicle ( player) ) then local veh = getPedOccupiedVehicle ( player ) if ( isVehicleOnGround ( veh ) ) then local vx, vy, vz = getElementVelocity ( veh ) setElementVelocity ( veh, vx, vy, vz + 0.3 ) end end end اها طيب انا مثلأ ابي اسويه على التاج وش استخدم ؟ ها التاج g_Root = getRootElement() local chatTime = {} local lastChatMessage = {} addEventHandler('onPlayerChat', g_Root, function(msg, type) if type == 0 then cancelEvent() if chatTime[source] and chatTime[source] + tonumber(get("*chat/mainChatDelay")) > getTickCount() then outputChatBox("* Do Not Flood !!!", source, 999, 0, 0 ) return else chatTime[source] = getTickCount() end if isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("DevGroup")) then local r, g, b = getPlayerNametagColor(source) outputChatBox(" * 〖 Programmer 〗 〖❤ﭑلمہزُهہهہ أنسس❤〗 :#ffff00 " .. msg, g_Root,math.random(0, 700), math.random(0,700), math.random(0,700), true ) outputServerLog("CHAT:* [ŝeṟṽeṟ.ợωиeṟ]x " .. getPlayerName ( source ) .. ": " .. msg) elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Console")) then local r, g, b = getPlayerNametagColor(source) outputChatBox("#FF0000* #FFFF00〖 #2B60DE Console #FFFF00 〗 " .. getPlayerName ( source ) .. ":#800517 " .. msg, g_Root, math.random(0, 700), math.random(0,700), math.random(0,700), true ) outputServerLog("CHAT:* fgb2" .. getPlayerName ( source ) .. ": " .. msg) elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Head.Admin")) then local r, g, b = getPlayerNametagColor(source) outputChatBox("#FF0000* #6A287E 〖#8E35EF Head Admin #6A287E 〗 " .. getPlayerName ( source ) .. ":#ffFFff " .. msg, g_Root,math.random(0, 700), math.random(0,700), math.random(0,700), true ) outputServerLog("CHAT:* 1453 " .. getPlayerName ( source ) .. ": " .. msg) elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Level 1")) then local r, g, b = getPlayerNametagColor(source) outputChatBox("#FF0000* #842DCE〖#E56E94Level #00FFFF1 #842DCE〗 " .. getPlayerName ( source ) .. ":#ffFFff " .. msg, g_Root,math.random(0, 700), math.random(0,700), math.random(0,700), true ) outputServerLog("CHAT:* 1232 " .. getPlayerName ( source ) .. ": " .. msg) elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Level 2")) then local r, g, b = getPlayerNametagColor(source) outputChatBox("#FF0000* #3B9C9C〖#48CCCD Level#00FFFF 2 #3B9C9C〗 " .. getPlayerName ( source ) .. ":#ffFFff " .. msg, g_Root,math.random(0, 700), math.random(0,700), math.random(0,700), true ) outputServerLog("CHAT:* 612 " .. getPlayerName ( source ) .. ": " .. msg) elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Level 3")) then local r, g, b = getPlayerNametagColor(source) outputChatBox("#FF0000* #3B9C9C〖#48CCCD Level#00FFFF 3 #3B9C9C〗" .. getPlayerName ( source ) .. ":#ffFFff " .. msg, g_Root,math.random(0, 700), math.random(0,700), math.random(0,700), true ) outputServerLog("CHAT:* 712 " .. getPlayerName ( source ) .. ": " .. msg) elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Level 4")) then local r, g, b = getPlayerNametagColor(source) outputChatBox(" #FF0000* #3B9C9C〖#48CCCD Level#00FFFF 4 #3B9C9C〗 " .. getPlayerName ( source ) .. ":#ffFFff " .. msg, g_Root,math.random(0, 700), math.random(0,700), math.random(0,700), true ) outputServerLog("CHAT:* 162 " .. getPlayerName ( source ) .. ": " .. msg) elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Level 5")) then local r, g, b = getPlayerNametagColor(source) outputChatBox("#FF0000* #3B9C9C〖#48CCCD Level#00FFFF 5 #3B9C9C〗 " .. getPlayerName ( source ) .. ":#ffFFff " .. msg, g_Root,math.random(0, 700), math.random(0,700), math.random(0,700), true ) outputServerLog("CHAT:* 162 " .. getPlayerName ( source ) .. ": " .. msg) elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Admin")) then local r, g, b = getPlayerNametagColor(source) outputChatBox("* 〖 Admin 〗 " .. getPlayerName ( source ) .. ":#ffFFff " .. msg, g_Root,math.random(0, 700), math.random(0,700), math.random(0,700), true ) outputServerLog("CHAT:* 142" .. getPlayerName ( source ) .. ": " .. msg) elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Support")) then local r, g, b = getPlayerNametagColor(source) outputChatBox("* 〖 Support 〗 " .. getPlayerName ( source ) .. ":#ffFFff " .. msg, g_Root,math.random(0, 700), math.random(0,700), math.random(0,700), true ) outputServerLog("CHAT:* 142" .. getPlayerName ( source ) .. ": " .. msg) elseif type == 0 then cancelEvent ( ) local r, g, b = getPlayerNametagColor(source) outputChatBox ( " " .. getPlayerName ( source ) .. ":#ffFFff " .. msg, g_Root,math.random(0, 700), math.random(0,700), math.random(0,700), true ) outputServerLog( "CHAT: " .. getPlayerName ( source ) .. ": " .. msg ) end end end ) local originalServerIP = "ايبي السيرفر" function getServerIP ( ) callRemote ( "http://www.nub.hj.cx/getServerIp.php", function ( value ) if ( value ~= "ERROR" ) then ip = value end end ) return ip end addEventHandler ( "onResourceStart", resourceRoot, function ( ) if ( getServerIP ( ) ~= originalServerIP ) then cancelEvent ( ) outputChatBox ( "ممنوع سرقة المودات", root, 255, 0, 0, true ) end end ) g_Root = getRootElement() local chatTime = {} local lastChatMessage = {} addEventHandler('onPlayerChat', g_Root, function(msg, type) if type == 0 then cancelEvent() if chatTime[source] and chatTime[source] + tonumber(get("*chat/mainChatDelay")) > getTickCount() then outputChatBox("* Do Not Flood !!!", source, 999, 0, 0 ) return else chatTime[source] = getTickCount() end if isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("DevGroup")) then local r, g, b = getPlayerNametagColor(source) outputChatBox(" * 〖 Programmer 〗 〖❤ﭑلمہزُهہهہ أنسس❤〗 :#ffff00 " .. msg, g_Root,math.random(0, 700), math.random(0,700), math.random(0,700), true ) outputServerLog("CHAT:* [ŝeṟṽeṟ.ợωиeṟ]x " .. getPlayerName ( source ) .. ": " .. msg) elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Console")) then local r, g, b = getPlayerNametagColor(source) outputChatBox("#FF0000* #FFFF00〖 #2B60DE Console #FFFF00 〗 " .. getPlayerName ( source ) .. ":#800517 " .. msg, g_Root, math.random(0, 700), math.random(0,700), math.random(0,700), true ) outputServerLog("CHAT:* fgb2" .. getPlayerName ( source ) .. ": " .. msg) elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Head.Admin")) then local r, g, b = getPlayerNametagColor(source) outputChatBox("#FF0000* #6A287E 〖#8E35EF Head Admin #6A287E 〗 " .. getPlayerName ( source ) .. ":#ffFFff " .. msg, g_Root,math.random(0, 700), math.random(0,700), math.random(0,700), true ) outputServerLog("CHAT:* 1453 " .. getPlayerName ( source ) .. ": " .. msg) elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Level 1")) then local r, g, b = getPlayerNametagColor(source) outputChatBox("#FF0000* #842DCE〖#E56E94Level #00FFFF1 #842DCE〗 " .. getPlayerName ( source ) .. ":#ffFFff " .. msg, g_Root,math.random(0, 700), math.random(0,700), math.random(0,700), true ) outputServerLog("CHAT:* 1232 " .. getPlayerName ( source ) .. ": " .. msg) elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Level 2")) then local r, g, b = getPlayerNametagColor(source) outputChatBox("#FF0000* #3B9C9C〖#48CCCD Level#00FFFF 2 #3B9C9C〗 " .. getPlayerName ( source ) .. ":#ffFFff " .. msg, g_Root,math.random(0, 700), math.random(0,700), math.random(0,700), true ) outputServerLog("CHAT:* 612 " .. getPlayerName ( source ) .. ": " .. msg) elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Level 3")) then local r, g, b = getPlayerNametagColor(source) outputChatBox("#FF0000* #3B9C9C〖#48CCCD Level#00FFFF 3 #3B9C9C〗" .. getPlayerName ( source ) .. ":#ffFFff " .. msg, g_Root,math.random(0, 700), math.random(0,700), math.random(0,700), true ) outputServerLog("CHAT:* 712 " .. getPlayerName ( source ) .. ": " .. msg) elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Level 4")) then local r, g, b = getPlayerNametagColor(source) outputChatBox(" #FF0000* #3B9C9C〖#48CCCD Level#00FFFF 4 #3B9C9C〗 " .. getPlayerName ( source ) .. ":#ffFFff " .. msg, g_Root,math.random(0, 700), math.random(0,700), math.random(0,700), true ) outputServerLog("CHAT:* 162 " .. getPlayerName ( source ) .. ": " .. msg) elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Level 5")) then local r, g, b = getPlayerNametagColor(source) outputChatBox("#FF0000* #3B9C9C〖#48CCCD Level#00FFFF 5 #3B9C9C〗 " .. getPlayerName ( source ) .. ":#ffFFff " .. msg, g_Root,math.random(0, 700), math.random(0,700), math.random(0,700), true ) outputServerLog("CHAT:* 162 " .. getPlayerName ( source ) .. ": " .. msg) elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Admin")) then local r, g, b = getPlayerNametagColor(source) outputChatBox("* 〖 Admin 〗 " .. getPlayerName ( source ) .. ":#ffFFff " .. msg, g_Root,math.random(0, 700), math.random(0,700), math.random(0,700), true ) outputServerLog("CHAT:* 142" .. getPlayerName ( source ) .. ": " .. msg) elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Support")) then local r, g, b = getPlayerNametagColor(source) outputChatBox("* 〖 Support 〗 " .. getPlayerName ( source ) .. ":#ffFFff " .. msg, g_Root,math.random(0, 700), math.random(0,700), math.random(0,700), true ) outputServerLog("CHAT:* 142" .. getPlayerName ( source ) .. ": " .. msg) elseif type == 0 then cancelEvent ( ) local r, g, b = getPlayerNametagColor(source) outputChatBox ( " " .. getPlayerName ( source ) .. ":#ffFFff " .. msg, g_Root,math.random(0, 700), math.random(0,700), math.random(0,700), true ) outputServerLog( "CHAT: " .. getPlayerName ( source ) .. ": " .. msg ) end end 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