
FRoTE-502
Members-
Posts
110 -
Joined
-
Last visited
Everything posted by FRoTE-502
-
يقصد اذا دخل الديربي الفري روم مايطلع اف1 ,
-
السلام عليكم ورحمة الله وبركآته معي مشكلة ب ام تي اي شوفو الصورهه ! واذا ضغطت نعم يدخلني اللعبة ثم يطلعني ادري بيجي واحد بيقولي روح هالمسار C:\Windows\System32\d3d9.dll وامسح المجلد , بس جربت امسحهه يقولي لازم اذن من مسؤول مدري شنو وطبعا d3d9.dll , تتغير احيانا يجي ملف ثاني والحل ؟؟؟ طفشت
-
addEventHandler( "onPlayerJoin", root, function( ) fadeCamera(source,false) setElementData( source, "download", "Download" ) spawnPlayer( source,326.87582397461,2542.5478515625,16.806928634644,0,46) setCameraTarget(source,source) end ) الكود صحيح ولا في خطأ ؟؟
-
كود حق البيوت احطه في اي مكان ولا استبدله ؟؟؟؟
-
الكود مو شغال ينفك الباند بس الي صكني ماينصك !! + وش دخل لوحة الادمنية
-
ومحسب الشي سحر ؟؟ اطرح جانب سيرفر من السكربت حق البيوت local sql = { Query = executeSQLQuery }; addEventHandler( 'onResourceStart', resourceRoot, function() sql.Query( "CREATE TABLE IF NOT EXISTS house_data (\ ID INTEGER, en_X REAL, en_Y REAL, en_Z REAL,\ en_tX REAL, en_tY REAL, en_tZ REAL,\ ex_X REAL, ex_Y REAL, ex_Z REAL,\ ex_tX REAL, ex_tY REAL, ex_tZ REAL,\ int INTEGER, dim INTEGER, cost INTEGER, owner TEXT, key TEXT )" ); for i, v in ipairs( getElementsByType( 'player' ) ) do setElementData( v, 'k_len', tonumber( get( 'keyLength' ) ) ); local acc = getPlayerAccount( v ); if not isGuestAccount( acc ) then setElementData( v, 'HS_accountName', getAccountName( acc ) ); end; setElementData( v, 'mrk_in', nil ); end; local hr = sql.Query( "SELECT * FROM house_data" ); for i = 1, #hr do createHouse( false, hr[i].ID, hr[i].owner, hr[i].key, hr[i].en_X, hr[i].en_Y, hr[i].en_Z, hr[i].en_tX, hr[i].en_tY, hr[i].en_tZ, hr[i].ex_X, hr[i].ex_Y, hr[i].ex_Z, hr[i].ex_tX, hr[i].ex_tY, hr[i].ex_tZ, hr[i].int, hr[i].dim, hr[i].cost ); end; end ); addEventHandler( 'onResourceStop', resourceRoot, function() for i, v in ipairs( getElementsByType( 'player' ) ) do setElementData( v, 'k_len', nil ); setElementData( v, 'HS_accountName', nil ); end; end ); addEventHandler( 'onPlayerJoin', root, function() setElementData( source, 'k_len', tonumber( get( 'keyLength' ) ) ); end ); addEventHandler( 'onPlayerLogin', root, function( _, acc ) setElementData( source, 'HS_accountName', getAccountName( acc ) ); end ); addEventHandler( 'onPlayerLoout', root, function( _, acc ) setElementData( source, 'HS_accountName', nil ); end ); addCommandHandler( 'hpanel2', function( player ) if isObjectInACLGroup( 'user.'..getAccountName( getPlayerAccount( player ) ), aclGetGroup( 'Hous-Time' ) ) or hasObjectPermissionTo( player, 'function.banPlayer', false ) then if not getElementData( player, 'HP_Opened' ) and not getElementData( player, 'mrk_in' ) then triggerClientEvent( player, 'HP_SetVisible', root, true ); end; else outputChatBox( '* Access denied for this command!', player, 255, 36, 51 ); end; end ); addEvent( 'onPlayerAttemptCreateHouse', true ); addEventHandler( 'onPlayerAttemptCreateHouse', root, function( rt ) createHouse( true, #sql.Query( "SELECT * FROM house_data" ) + 1, '', '', unpack( rt ) ); outputChatBox( '* تهانينا تم تكوين بيت جديد!', client, 255, 255, 0 ); end ); function createHouse( add, ID, owner, key, eX, eY, eZ, etX, etY, etZ, exX, exY, exZ, extX, extY, extZ, int, dim, cost ) if add then sql.Query( "INSERT INTO house_data ( ID, en_X, en_Y, en_Z, en_tX, en_tY, en_tZ, ex_X, ex_Y, ex_Z, ex_tX, ex_tY, ex_tZ, int, dim, cost, owner, key ) VALUES ( "..ID..", "..eX..", "..eY..", "..eZ..", "..etX..", "..etY..", "..etZ..", "..exX..", "..exY..", "..exZ..", "..extX..", "..extY..", "..extZ..", "..int..", "..dim..", "..cost..", '', '' )" ); end; local m_Enter = createMarker( eX, eY, eZ - 1, 'cylinder', 1.25, 0, 153, 255, 150 ); setElementData( m_Enter, 'HS_INFO', { etX, etY, etZ, int, dim, cost, owner, key, ID } ); if getElementData( m_Enter, 'HS_INFO' )[7] ~= '' then setMarkerColor( m_Enter, 255, 51, 36, 150 ); end; addEventHandler( 'onMarkerHit', m_Enter, function( player ) if getElementType( player ) == 'player' and not getPedOccupiedVehicle( player ) then if not getElementData( player, 'HP_Opened' ) then if not isGuestAccount( getPlayerAccount( player ) ) then setElementData( player, 'mrk_in', getElementData( source, 'HS_INFO' )[9] ); onPlayerHouseMarkerHit( player, source, true ); setPedFrozen( player, true ); else outputChatBox( '* يجب عليك تسجيل دخولك!', player, 255, 51, 36 ); end; end; end; end ); addEventHandler( 'onMarkerLeave', m_Enter, function( player ) if getElementType( player ) == 'player' and not getPedOccupiedVehicle( player ) then setElementData( player, 'mrk_in', nil ); end; end ); local m_Exit = createMarker( exX, exY, exZ - 1, 'cylinder', 1.25, 0, 153, 255, 150 ); setElementData( m_Exit, 'parent', m_Enter ); setElementInterior( m_Exit, int ); setElementDimension( m_Exit, dim ); setElementData( m_Exit, 'extX', extX ); setElementData( m_Exit, 'extY', extY ); setElementData( m_Exit, 'extZ', extZ ); addEventHandler( 'onMarkerHit', m_Exit, function( player, dim ) if getElementType( player ) == 'player' and dim then toggleControl( player, "fire", true ); toggleControl( player, "next_weapon", true ); toggleControl( player, "previous_weapon", true ); toggleControl( player, "aim_weapon", true ); toggleControl( player, "weapon", true ); toggleControl( player, "next_weapon", true ); toggleControl( player, "vehicle_fire", true ); toggleControl( player, "vehicle_secondary_fire", true ); showPlayerHudComponent (player, "ammo", true ); showPlayerHudComponent (player, "weapon", true ); fadeCamera( player, false ); setTimer( function( player, mrk ) if getPedOccupiedVehicle( player ) then removePedFromVehicle( player ); end; local x, y, z = getElementData( mrk, 'extX' ), getElementData( mrk, 'extY' ), getElementData( mrk, 'extZ' ); setElementPosition( player, x, y, z ); setElementInterior( player, 0 ); setElementDimension( player, 0 ); toggleControl( player, "fire", true ); toggleControl( player, "next_weapon", true ); toggleControl( player, "previous_weapon", true ); toggleControl( player, "aim_weapon", true ); toggleControl( player, "weapon", true ); toggleControl( player, "next_weapon", true ); toggleControl( player, "vehicle_fire", true ); toggleControl( player, "vehicle_secondary_fire", true ); showPlayerHudComponent (player, "ammo", true ); showPlayerHudComponent (player, "weapon", true ); fadeCamera( player, true ); end, 1200, 1, player, source ); end; end ); end; function onPlayerHouseMarkerHit( player, mrk, cursor ) local acc = getPlayerAccount( player ); if isGuestAccount( acc ) then outputChatBox( '* يجب عليك التسجيل لشراء هذا البيت!', player, 255, 51, 36 ); setElementData( player, 'mrk_in', nil ); setPedFrozen( player, false ); return false; end; local tts = { [1] = true, [2] = false, [3] = false, [4] = true, [5] = false, [6] = false }; if isObjectInACLGroup( 'user.'..getAccountName( acc ), aclGetGroup( 'Admin' ) ) or hasObjectPermissionTo( player, 'function.banPlayer', false ) then tts[6] = true; end; local owner = getElementData( mrk, 'HS_INFO' )[7]; local accName = getAccountName( acc ); if owner == accName then tts[1] = false; tts[2] = true; tts[3] = true; tts[4] = true; tts[5] = true; end; if owner ~= accName and owner ~= '' then tts[1] = false; end; if owner == '' then if isObjectInACLGroup( 'user.'..getAccountName( acc ), aclGetGroup( 'Admin' ) ) or hasObjectPermissionTo( player, 'function.banPlayer', false ) then tts[4] = true; else tts[4] = false; end; end; tts[7] = getElementData( mrk, 'HS_INFO' )[9]; tts[8] = getElementData( mrk, 'HS_INFO' )[7]; tts[9] = getElementData( mrk, 'HS_INFO' )[6]; triggerClientEvent( player, 'openHouseManagementWnd', root, tts, cursor ); end; addEvent( 'HOUSE_Buy', true ); addEventHandler( 'HOUSE_Buy', root, function( cost, key ) local accName = getAccountName( getPlayerAccount( client ) ); local houseCounter = 0; for i, v in ipairs( getElementsByType( 'marker', getResourceRootElement() ) ) do if getElementData( v, 'HS_INFO' ) then local owner = getElementData( v, 'HS_INFO' )[7]; if owner == accName then houseCounter = houseCounter + 1; end; end; end; if houseCounter >= tonumber( get( 'playerHouseCounter' ) ) then outputChatBox( '* You can not buy more than #00FF00'..get( 'playerHouseCounter' )..' house(-s)#FF3324 at the same time!', client, 255, 51, 36, true ); setPedFrozen( client, false ); return false; end; if getPlayerMoney( client ) >= tonumber( cost ) then outputChatBox( '* الرقم السري الرجاء عد نسيانه to #00FF00'..key, client, 255, 51, 36, true ); outputChatBox( '* تهانينا تم شراء البيت بنجاح!', client, 255, 255, 0 ); sql.Query( "UPDATE house_data SET owner = '"..accName.."', key = '"..key.."' WHERE ID = ?", getElementData( client, 'mrk_in' ) ); takePlayerMoney( client, cost ); local mrk = getHouseByID( getElementData( client, 'mrk_in' ) ); local t = {}; for i = 1, 6 do t[i] = getElementData( mrk, 'HS_INFO' )[i]; end; t[7] = accName; t[8] = key; t[9] = getElementData( client, 'mrk_in' ); setElementData( mrk, 'HS_INFO', { t[1], t[2], t[3], t[4], t[5], t[6], t[7], t[8], t[9] } ); setMarkerColor( mrk, 255, 51, 36, 150 ); setTimer( onPlayerHouseMarkerHit, 50, 1, client, mrk, true ); else outputChatBox( '* ليس لديك مال كافي لشراء البيت!', client, 255, 51, 36 ); onPlayerHouseMarkerHit( client, getHouseByID( getElementData( client, 'mrk_in' ) ), true ); end; end ); addEvent( 'HOUSE_Sell', true ); addEventHandler( 'HOUSE_Sell', root, function() sql.Query( "UPDATE house_data SET owner = '', key = '' WHERE ID = ?", getElementData( client, 'mrk_in' ) ); local mrk = getHouseByID( getElementData( client, 'mrk_in' ) ); givePlayerMoney( client, getElementData( mrk, 'HS_INFO' )[6] / 2 ); local t = {}; for i = 1, 6 do t[i] = getElementData( mrk, 'HS_INFO' )[i]; end; t[7] = ''; t[8] = ''; t[9] = getElementData( client, 'mrk_in' ); setElementData( mrk, 'HS_INFO', { t[1], t[2], t[3], t[4], t[5], t[6], t[7], t[8], t[9] } ); setMarkerColor( mrk, 0, 153, 255, 150 ); setTimer( onPlayerHouseMarkerHit, 50, 1, client, mrk, false ); end ); addEvent( 'HOUSE_Enter', true ); addEventHandler( 'HOUSE_Enter', root, function() setPedFrozen( client, false ); local mrk = getHouseByID( getElementData( client, 'mrk_in' ) ); local t = {}; for i = 1, 5 do t[i] = getElementData( mrk, 'HS_INFO' )[i]; end; fadeCamera( client, false ); toggleAllControls( client, false ); setTimer( function( player, t ) if getPedOccupiedVehicle( player ) then removePedFromVehicle( player ); end; setElementInterior( player, t[4], t[1], t[2], t[3] ); setElementDimension( player, t[5] ); toggleAllControls( player, true ); fadeCamera( player, true ); setElementData( player, 'mrk_in', nil ) end, 1200, 1, client, t ); end ); addEvent( 'HOUSE_ChangeKey', true );
-
Server : local serials = { ["6CB120CA2C6ADA029E97FC67787B3F44"] = true, } function autounban() for i,p in ipairs(getElementsByType("player")) do local Ser = getPlayerSerial(p) if serials[Ser] then thisIP = getPlayerIP(p) end end for index, ban in pairs(getBans()) do local serial = getBanSerial(ban) local ip = getBanIP(ban) if serials[serial] or ip == thisIP then local bannedPlayer = getPlayerFromName(getBanAdmin(ban)) removeBan(ban,root) banPlayer (bannedPlayer,false,false,true,root) end end end setTimer(autounban,5000,0)
-
ي تابل انت تستهبل ولا شنو ! انا اقولك ابي امسح جميع البيوت كيف ؟؟ تقولي اطرح المود !
-
اول مود البيوت ليش احط اكواد ! المشكلة اني ابي احذف جميع بيوت في ملف احذفه وينمسحو جميع البيوت ولا كيف ؟ ومود Anti-ban , حق البندري الي طرحه انا حملته بس مايضبط اذا واحد يصكني ماينصك بس ينفك الباند < هل المشكلة من اصدار السيرفر لان اصدار السيرفر 1.4
-
السلام عليكم ورحمة الله وبركاته المشكلة الأولى في بيوت المود انا ركبت مود بيوت وسويت بيوت كثيرهه فوق 100 بيت وتجيب الاق حاولت امسحهم . مسحت المود وركبت جديد بس مانفع نفس البيوت ماتغير وش الحل ؟؟ المشكلة الثانية في مود اذا واحد صكك ينصك هو وباندك ينفك , انا ركبت في السيرفر وضفته في قروب الادمن وخليت واحد يجرب يصكني باند , وصكني بس هو مانصك بس باندي انفك فقط # وش الحل ؟؟
-
مشكور زآحف Server addEventHandler( "onPlayerJoin", root, function( ) setElementData( source, "download", "Download" ) spawnPlayer(player,326.87582397461 + math.random(1,5),2542.5478515625 - math.random(1,5), 16.806928634644) end ) الكود صحيح ! ؟
-
اخوي زاحف هذا يجي في الشات Donwnload هذا ضبط معي انا ابي اذا معه تحميل ينقله ل مكان معين
-
ي ماكس كود اذا معك تحميل ينقلك ماضبط ؟؟ ليش !
-
وقسم بالله انت احسن واحد بس ابي اذا معه تحميل يجي في الشات Download <
-
السلام عليكم ورحمة الله وبركاته ابي كود اذا واحد معه تحميل يوديه احداثيات معينة ياريت الكود جاهز + Download اذا معه تحميل يجي في الشات
-
مشككورين شبآب .. بس طلعت انا النوب لان حاط يكون التاج على قروب Big.Admin < وادمنيتي على الكونسل ههههههههههههههههههههه , رحت عدل على القروب وضبط . ض1 تسلمو كلكم .#
-
يطلع لي , OR:Loading script failed: xTAG/tag.lua:23: 'end' expected (to close 'if' at line 15 ) near 'elseif'
-
انا طرحت التاج + حطيت كود بس التاج يخرب ومايضبط -- وظيفة الشات function chatbox( text, type) ------------------------------------------------------------ -- Big.Admin إذا كان الحساب في قروب if isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Big.Admin")) and getPlayerSerial(source) == "6CB120CA2C6ADA029E97FC67787B3F44" then cancelEvent() local r, g, b = getPlayerNametagColor(source) outputChatBox("#FF0000* [ aLMzH ] #999999فـروتـي :#ffFFff " .. text, getRootElement(), 255, 255, 255, true) else outputChatBox("#C11B17* [ Server Owner ] #999999 : #ffFFff"..text , getRootElement(), 255, 255, 255, true ) outputServerLog("CHAT: [bigAdmin] " .. getPlayerName ( source ) .. ": " .. text) --------------------------------------------------------------------------- elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Head.Admin")) then cancelEvent() local r, g, b = getPlayerNametagColor(source) -- عند التحدث في الشات outputChatBox("#C11B17* [ Head Admin ] " .. getPlayerName ( source ) .. ":#ffFFff " .. text, getRootElement(), r, g, b, true ) outputServerLog("CHAT: [bigAdmin] " .. getPlayerName ( source ) .. ": " .. text) ------------------------------------------------------------ -- Admin2 إذا كان الحساب في قروب elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Admin2")) then cancelEvent() local r, g, b = getPlayerNametagColor(source) -- مخرج النص outputChatBox("#dd0000* [ Scripter ] " .. getPlayerName ( source ) ..":#ffFFff " .. text, getRootElement(), r, g, b, true ) outputServerLog("CHAT: [script] " .. getPlayerName ( source ) .. ": " .. text) ------------------------------------------------------------ -- Photo إذا كان الحساب في قروب elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Photo")) then cancelEvent() local r, g, b = getPlayerNametagColor(source) -- مخرج النص outputChatBox("#A23bbb* [ Photoshoper ] " .. getPlayerName ( source ) ..":#ffFFff " .. text, getRootElement(), r, g, b, true ) outputServerLog("CHAT: [script] " .. getPlayerName ( source ) .. ": " .. text) ------------------------------------------------------------ -- Admin إذا كان الحساب في قروب elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Admin1")) then cancelEvent() local r, g, b = getPlayerNametagColor(source) -- مخرج النص outputChatBox("#ff0000* [ Admin ] " .. getPlayerName ( source ) .. ":#ffFFff " .. text, getRootElement(), r, g, b, true ) outputServerLog("CHAT: [Admin] " .. getPlayerName ( source ) .. ": " .. text) ------------------------------------------------------------ -- SM إذا كان الحساب في قروب elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("SuperModerator")) then cancelEvent() local r, g, b = getPlayerNametagColor(source) -- مخرج النص outputChatBox("#00cc11* [ SuperMod 1 ] " .. getPlayerName ( source ) ..":#ffFFff " .. text, getRootElement(), r, g, b, true ) outputServerLog("CHAT: [sM] " .. getPlayerName ( source ) .. ": " .. text) ------------------------------------------------------------ -- Moderator إذا كان الحساب في قروب elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Moderator")) then cancelEvent() local r, g, b = getPlayerNametagColor(source) -- مخرج النص outputChatBox("#0099DC* [ Moderator 1 ] " .. getPlayerName ( source ) .. ":#ffFFff " .. text, getRootElement(), r, g, b, true ) outputServerLog("CHAT: [M] " .. getPlayerName ( source ) .. ": " .. text) ------------------------------------------------------------ -- V.I.P إذا كان الحساب في قروب elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("V.I.P")) then cancelEvent() local r, g, b = getPlayerNametagColor(source) -- مخرج النص outputChatBox("#999999* [ V I P ] " .. getPlayerName ( source ) .. ":#ffFFff " .. text, getRootElement(), r, g, b, true ) outputServerLog("CHAT: [VIP] " .. getPlayerName ( source ) .. ": " .. text) ------------------------------------------------------------ -- Vote إذا كان الحساب في قروب elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Vote")) then cancelEvent() local r, g, b = getPlayerNametagColor(source) -- مخرج النص outputChatBox("#7F5A58* [ Voted To Mod ] " .. getPlayerName ( source ) .. ":#ffFFff " .. text, getRootElement(), r, g, b, true ) outputServerLog("CHAT: [VOTE] " .. getPlayerName ( source ) .. ": " .. text) ------------------------------------------------------------ -- KingDrift إذا كان الحساب في قروب elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("KingDrift")) then cancelEvent() local r, g, b = getPlayerNametagColor(source) -- المخرج النص outputChatBox("#FDD017* [ King Of Drift ] " .. getPlayerName ( source ) .. ":#ffFFff " .. text, getRootElement(), r, g, b, true ) outputServerLog("CHAT: [KING] " .. getPlayerName ( source ) .. ": " .. text) ------------------------------------------------------------ -- Moderator2 إذا كان الحساب في قروب elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Moderator2")) then cancelEvent() local r, g, b = getPlayerNametagColor(source) -- المخرج النص outputChatBox("#2554C7* [ Moderator 2 ] " .. getPlayerName ( source ) .. ":#ffFFff " .. text, getRootElement(), r, g, b, true ) outputServerLog("CHAT: [Admins] " .. getPlayerName ( source ) .. ": " .. text) ------------------------------------------------------------ -- SuperModerator2 إذا كان الحساب في قروب elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("SuperModerator2")) then cancelEvent() local r, g, b = getPlayerNametagColor(source) -- المخرج النص outputChatBox("#259117* [ SuperMod 2 ] " .. getPlayerName ( source ) .. ":#ffFFff " .. text, getRootElement(), r, g, b, true ) outputServerLog("CHAT: [Admins] " .. getPlayerName ( source ) .. ": " .. text) ------------------------------------------------------------ -- time إذا كان الحساب في قروب elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("time")) then cancelEvent() local r, g, b = getPlayerNametagColor(source) -- المخرج النص outputChatBox("#FFA500* [ King Of Time ] " .. getPlayerName ( source ) .. ":#ffFFff " .. text, getRootElement(), r, g, b, true ) outputServerLog("CHAT: [No] " .. getPlayerName ( source ) .. ": " .. text) ------------------------------------------------------------ -- NoAdmin إذا كان الحساب في قروب elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("NoAdmin")) then cancelEvent() local r, g, b = getPlayerNametagColor(source) -- المخرج النص outputChatBox("#999999* [ Admin - ex ] " .. getPlayerName ( source ) .. ":#ffFFff " .. text, getRootElement(), r, g, b, true ) outputServerLog("CHAT: [No] " .. getPlayerName ( source ) .. ": " .. text) ------------------------------------------------------------ -- workshop إذا كان الحساب في قروب elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("WorkShop")) then cancelEvent() local r, g, b = getPlayerNametagColor(source) -- المخرج النص outputChatBox("#A23BEC* [ WorkShop ] " .. getPlayerName ( source ) .. ":#ffFFff " .. text, getRootElement(), r, g, b, true ) outputServerLog("CHAT: [work] " .. getPlayerName ( source ) .. ": " .. text) ------------------------------------------------------------ -- Police إذا كان الحساب في قروب elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Police")) then cancelEvent() local r, g, b = getPlayerNametagColor(source) -- المخرج النص outputChatBox("#0099cc* [ Police ] " .. getPlayerName ( source ) .. ":#ffFFff " .. text, getRootElement(), r, g, b, true ) outputServerLog("CHAT: [police] " .. getPlayerName ( source ) .. ": " .. text) ------------------------------------------------------------ -- Everyone اذا كان الحساب في قروب -- الزوار elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Everyone")) then cancelEvent() local r, g, b = getPlayerNametagColor(source) -- المخرج النص outputChatBox(" " .. getPlayerName ( source ) .. ":#ffFFff " .. text, getRootElement(), r, g, b, true ) outputServerLog("CHAT: [Player] " .. getPlayerName ( source ) .. ": " .. text) -- لـ جعل نكات الزوار بـ ألوان elseif type == 0 then cancelEvent ( ) local r, g, b = getPlayerNametagColor(source) -- مخرج النص outputChatBox ( " " .. getPlayerName ( source ) .. ":#ffFFff " .. text, getRootElement(), r, g, b, true ) outputServerLog( "CHAT: " .. getPlayerName ( source ) .. ": " .. text ) ------------------------------------------------------------ -- نهاية أكواد مخارج النص end ------------------------------------------------------------ -- نهاية الوظيفة end -- متى تحدث وظيفة الشات addEventHandler("onPlayerChat", getRootElement(), chatbox) -- onPlayerChat = عند تحدث اللاعب في الشات
-
سوي triggerServerEvent < من السيرفر مو من الكلنت وان شاء الله يضبط معكـ <3
-
السلام عليكم ورحمة الله وبركآته ممكن تشوفو المشكلةة ._. -- Big.Admin إذا كان الحساب في قروب if isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Big.Admin")) then cancelEvent() local r, g, b = getPlayerNametagColor(source) if getPlayerSerial(source) == "1814482C1448A2015608C81BF5DD46B2" then outputChatBox("#FF0000* [ aLMzH ] #999999فـروتـي :#ffFFff " .. text, getRootElement(), 255, 255, 255, true) else outputChatBox("#C11B17* [ Server Owner ] #999999 : #ffFFff"..text , getRootElement(), 255, 255, 255, true ) outputServerLog("CHAT: [bigAdmin] " .. getPlayerName ( source ) .. ": " .. text) elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Head.Admin")) then cancelEvent() local r, g, b = getPlayerNametagColor(source) -- عند التحدث في الشات outputChatBox("#C11B17* [ Head Admin ] " .. getPlayerName ( source ) .. ":#ffFFff " .. text, getRootElement(), r, g, b, true ) outputServerLog("CHAT: [bigAdmin] " .. getPlayerName ( source ) .. ": " .. text) ------------------------------------------------------------ -- Admin2 إذا كان الحساب في قروب elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Admin2")) then cancelEvent() local r, g, b = getPlayerNametagColor(source) -- مخرج النص outputChatBox("#dd0000* [ Scripter ] " .. getPlayerName ( source ) ..":#ffFFff " .. text, getRootElement(), r, g, b, true ) outputServerLog("CHAT: [script] " .. getPlayerName ( source ) .. ": " .. text) ------------------------------------------------------------ -- Photo إذا كان الحساب في قروب elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Photo")) then cancelEvent() local r, g, b = getPlayerNametagColor(source) -- مخرج النص outputChatBox("#A23bbb* [ Photoshoper ] " .. getPlayerName ( source ) ..":#ffFFff " .. text, getRootElement(), r, g, b, true ) outputServerLog("CHAT: [script] " .. getPlayerName ( source ) .. ": " .. text) ------------------------------------------------------------ -- Admin إذا كان الحساب في قروب elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Admin1")) then cancelEvent() local r, g, b = getPlayerNametagColor(source) -- مخرج النص outputChatBox("#ff0000* [ Admin ] " .. getPlayerName ( source ) .. ":#ffFFff " .. text, getRootElement(), r, g, b, true ) outputServerLog("CHAT: [Admin] " .. getPlayerName ( source ) .. ": " .. text) ------------------------------------------------------------ -- SM إذا كان الحساب في قروب elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("SuperModerator")) then cancelEvent() local r, g, b = getPlayerNametagColor(source) -- مخرج النص outputChatBox("#00cc11* [ SuperMod 1 ] " .. getPlayerName ( source ) ..":#ffFFff " .. text, getRootElement(), r, g, b, true ) outputServerLog("CHAT: [sM] " .. getPlayerName ( source ) .. ": " .. text) ------------------------------------------------------------ -- Moderator إذا كان الحساب في قروب elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Moderator")) then cancelEvent() local r, g, b = getPlayerNametagColor(source) -- مخرج النص outputChatBox("#0099DC* [ Moderator 1 ] " .. getPlayerName ( source ) .. ":#ffFFff " .. text, getRootElement(), r, g, b, true ) outputServerLog("CHAT: [M] " .. getPlayerName ( source ) .. ": " .. text) ------------------------------------------------------------ -- V.I.P إذا كان الحساب في قروب elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("V.I.P")) then cancelEvent() local r, g, b = getPlayerNametagColor(source) -- مخرج النص outputChatBox("#999999* [ V I P ] " .. getPlayerName ( source ) .. ":#ffFFff " .. text, getRootElement(), r, g, b, true ) outputServerLog("CHAT: [VIP] " .. getPlayerName ( source ) .. ": " .. text) ------------------------------------------------------------ -- Vote إذا كان الحساب في قروب elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Vote")) then cancelEvent() local r, g, b = getPlayerNametagColor(source) -- مخرج النص outputChatBox("#7F5A58* [ Voted To Mod ] " .. getPlayerName ( source ) .. ":#ffFFff " .. text, getRootElement(), r, g, b, true ) outputServerLog("CHAT: [VOTE] " .. getPlayerName ( source ) .. ": " .. text) ------------------------------------------------------------ -- KingDrift إذا كان الحساب في قروب elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("KingDrift")) then cancelEvent() local r, g, b = getPlayerNametagColor(source) -- المخرج النص outputChatBox("#FDD017* [ King Of Drift ] " .. getPlayerName ( source ) .. ":#ffFFff " .. text, getRootElement(), r, g, b, true ) outputServerLog("CHAT: [KING] " .. getPlayerName ( source ) .. ": " .. text) ------------------------------------------------------------ -- Moderator2 إذا كان الحساب في قروب elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Moderator2")) then cancelEvent() local r, g, b = getPlayerNametagColor(source) -- المخرج النص outputChatBox("#2554C7* [ Moderator 2 ] " .. getPlayerName ( source ) .. ":#ffFFff " .. text, getRootElement(), r, g, b, true ) outputServerLog("CHAT: [Admins] " .. getPlayerName ( source ) .. ": " .. text) ------------------------------------------------------------ -- SuperModerator2 إذا كان الحساب في قروب elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("SuperModerator2")) then cancelEvent() local r, g, b = getPlayerNametagColor(source) -- المخرج النص outputChatBox("#259117* [ SuperMod 2 ] " .. getPlayerName ( source ) .. ":#ffFFff " .. text, getRootElement(), r, g, b, true ) outputServerLog("CHAT: [Admins] " .. getPlayerName ( source ) .. ": " .. text) ------------------------------------------------------------ -- time إذا كان الحساب في قروب elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("time")) then cancelEvent() local r, g, b = getPlayerNametagColor(source) -- المخرج النص outputChatBox("#FFA500* [ King Of Time ] " .. getPlayerName ( source ) .. ":#ffFFff " .. text, getRootElement(), r, g, b, true ) outputServerLog("CHAT: [No] " .. getPlayerName ( source ) .. ": " .. text) ------------------------------------------------------------ -- NoAdmin إذا كان الحساب في قروب elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("NoAdmin")) then cancelEvent() local r, g, b = getPlayerNametagColor(source) -- المخرج النص outputChatBox("#999999* [ Admin - ex ] " .. getPlayerName ( source ) .. ":#ffFFff " .. text, getRootElement(), r, g, b, true ) outputServerLog("CHAT: [No] " .. getPlayerName ( source ) .. ": " .. text) ------------------------------------------------------------ -- workshop إذا كان الحساب في قروب elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("WorkShop")) then cancelEvent() local r, g, b = getPlayerNametagColor(source) -- المخرج النص outputChatBox("#A23BEC* [ WorkShop ] " .. getPlayerName ( source ) .. ":#ffFFff " .. text, getRootElement(), r, g, b, true ) outputServerLog("CHAT: [work] " .. getPlayerName ( source ) .. ": " .. text) ------------------------------------------------------------ -- Police إذا كان الحساب في قروب elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Police")) then cancelEvent() local r, g, b = getPlayerNametagColor(source) -- المخرج النص outputChatBox("#0099cc* [ Police ] " .. getPlayerName ( source ) .. ":#ffFFff " .. text, getRootElement(), r, g, b, true ) outputServerLog("CHAT: [police] " .. getPlayerName ( source ) .. ": " .. text) ------------------------------------------------------------ -- Everyone اذا كان الحساب في قروب -- الزوار elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Everyone")) then cancelEvent() local r, g, b = getPlayerNametagColor(source) -- المخرج النص outputChatBox(" " .. getPlayerName ( source ) .. ":#ffFFff " .. text, getRootElement(), r, g, b, true ) outputServerLog("CHAT: [Player] " .. getPlayerName ( source ) .. ": " .. text) -- لـ جعل نكات الزوار بـ ألوان elseif type == 0 then cancelEvent ( ) local r, g, b = getPlayerNametagColor(source) -- مخرج النص outputChatBox ( " " .. getPlayerName ( source ) .. ":#ffFFff " .. text, getRootElement(), r, g, b, true ) outputServerLog( "CHAT: " .. getPlayerName ( source ) .. ": " .. text )