Jump to content

saef

Members
  • Posts

    97
  • Joined

  • Last visited

Everything posted by saef

  1. saef

    مشكله

    عيال انا الان معي قيم مود فيه كذا سباون مثل الدآيريء و النخيل و الساحه و البدايه لم ارسبن في الدآيري او الساحه او النخيل يرجعني محل سباون الباديه ابي لم انتحر يرجعني الحل الى انتحرت فيه و كمان لم انتحر الشخصيه تروح ابيه م تروح
  2. يالحبيب الكود مجربه انا وشغال بمجرد ما المس المنطقة تنسحب السيارة او الطيارة وعدلت الكود ترا مب حرب هي الكل جاي يتعلم ويستفيد وشكرا لتابل علي التوضيح addEventHandler ( "onColShapeHit", اسم المتغير حق المنطة, function (HE) if getElementType (HE) == "vehicle" then destroyElement (HE) end end ) طيب وين احط الكود في اي ملف و وين موقع بين الكواد
  3. م طلع شيء ي خوي المود ييشتغل بس م تنسحب السياره لو جا بي المنطقه المحميه
  4. السلام عليكم كيفكمء شباب عسسآكم بخير انا اليوم معي مود الحمايه من الضرب لكن ي عيال المود هو لم تضرب احد في المنطقه المحدده م ينقص دمه ولا يتضرر و كمان ينسحب موتره بس انا عندي م ينسحب ابيكم تضيفون سب السياره الكلنت addEvent("enableGodMode", true) addEvent("disableGodMode", true) addEventHandler ("enableGodMode", getRootElement(), function() addEventHandler ("onClientPlayerDamage", getRootElement(), cancelEventEvent) end) addEventHandler ("disableGodMode", getRootElement(), function() removeEventHandler ("onClientPlayerDamage", getRootElement(), cancelEventEvent) end) function cancelEventEvent () cancelEvent() end --liedje in piratenschip pirShipMusicCol = createColCuboid (1997.58,1523.16,8,6,17.66,4) addEventHandler ("onClientColShapeHit", getRootElement(), function(hitElement, matchingDimension) if (source == pirShipMusicCol) and (hitElement == getLocalPlayer()) then setRadioChannel (7) end end) addEventHandler ("onClientColShapeLeave", getRootElement(), function(leaveElement, matchingDimension) if (source == pirShipMusicCol) and (leaveElement == getLocalPlayer()) then setRadioChannel (0) end end) السيرفر addEventHandler ("onResourceStart", getRootElement(), function() setTimer (moneyZoneTimerFunction, 2500, 0) local allGreenzones = getElementsByType ("radararea") for i,v in ipairs (allGreenzones) do local r,g,b,a = getRadarAreaColor (v) if (r == 0) and (g == 255) and (b == 0) and (a == 127) then local x,y = getElementPosition (v) local sx,sy = getRadarAreaSize (v) local col = createColCuboid (x,y, -50, sx,sy, 7500) setElementID (col, "greenzoneColshape") end end end) addEventHandler ("onColShapeHit", getRootElement(), function(hitElement, matchingDimension) if (getElementType (hitElement) == "player") and (getElementID (source) == "greenzoneColshape") then outputChatBox ("", hitElement, 255, 0, 0, false) toggleControl (hitElement, "fire", false) toggleControl (hitElement, "next_weapon", false) toggleControl (hitElement, "previous_weapon", false) showPlayerHudComponent (hitElement, "car", false) toggleControl (hitElement, "sprint", true) toggleControl (hitElement, "aim_weapon", false) toggleControl (hitElement, "vehicle_fire", false) toggleControl (hitElement, "vehicle", false) showPlayerHudComponent (hitElement, "ammo", false) showPlayerHudComponent (hitElement, "weapon", false) triggerClientEvent (hitElement, "enableGodMode", hitElement) end if (source == moneyZoneCol) and (getElementType (hitElement) == "vehicle") then setElementVelocity (hitElement, 0, 0, 0) setElementPosition (hitElement, 2018.33, 1534.77, 12.37) setVehicleRotation (hitElement, 0,0,270) if (getVehicleOccupant (hitElement, 0)) then outputChatBox ("You can't enter the moneyzone with your car!", getVehicleOccupant (hitElement, 0), 255, 0, 0, false) end end end) addEventHandler ("onColShapeLeave", getRootElement(), function(leaveElement, matchingDimension) if (getElementType (leaveElement) == "player") and (getElementID (source) == "greenzoneColshape") then outputChatBox ("", leaveElement, 255, 0, 0, false) toggleControl (leaveElement, "fire", true) toggleControl (leaveElement, "next_weapon", true) toggleControl (leaveElement, "previous_weapon", true) toggleControl (leaveElement, "sprint", true) toggleControl (leaveElement, "aim_weapon", true) toggleControl (leaveElement, "vehicle_fire", true) showPlayerHudComponent (leaveElement, "ammo", true) showPlayerHudComponent (leaveElement, "weapon", true) triggerClientEvent (leaveElement, "disableGodMode", leaveElement) end end) --money zone col moneyZoneCol = createColCuboid (1993.12, 1519.14, -100, 17.43, 54.24, 117) --stop moneyzone col function moneyZoneTimerFunction () local allPlayersInCol = getElementsWithinColShape (moneyZoneCol, "player") for i,v in ipairs (allPlayersInCol) do givePlayerMoney (v, 5) end end -- marker bij hospital createMarker (1607.36, 1814.24, -10, "cylinder", 24, 0, 255, 0, 190, getRootElement())
  5. انت ضفت بس ذا الكود؟ function removeGroups ( element ) if ( element and isElement ( element ) ) then if ( getPlayerAccount ( element ) and not isGuestAccount ( getPlayerAccount ( element ) ) ) then for _, v in ipairs ( aclGroupList ( ) ) do g = aclGroupGetName ( v ) if g ~= "Managers-ACl" and g ~= "Console" and g ~= "Managers" and g ~= "Maps" then if ( isObjectInACLGroup ( "user." .. getAccountName ( getPlayerAccount ( element ) ), v ) ) then aclGroupRemoveObject ( v, "user." .. getAccountName ( getPlayerAccount ( element ) ) ) end end end end end end
  6. انت ضفت بس ذا الكود؟ function removeGroups ( element ) if ( element and isElement ( element ) ) then if ( getPlayerAccount ( element ) and not isGuestAccount ( getPlayerAccount ( element ) ) ) then for _, v in ipairs ( aclGroupList ( ) ) do g = aclGroupGetName ( v ) if g ~= "Managers-ACl" and g ~= "Console" and g ~= "Managers" and g ~= "Maps" then if ( isObjectInACLGroup ( "user." .. getAccountName ( getPlayerAccount ( element ) ), v ) ) then aclGroupRemoveObject ( v, "user." .. getAccountName ( getPlayerAccount ( element ) ) ) end end end end end end
  7. سويته م جانيي لا شيء
  8. يعني اكتب بدل 3 اسم المود ؟
  9. السلام عليكمءء كيفكم ي شباب عسسآك بخيرر اليوم انا اخذت اف7 و عدلت عليه و صار يشتغل بس م يرقي و ضفته بي روب الادمن و سويت له رستارت و م زبط ^__________________________^ كلنت ---------------------- -- Setting ---------------------- local Key = "F7" local Admin = { {"King.Drift","20"}, {"V.I.P","40"}, {"Police","70"}, {"ADMIN","200"}, {"Head.Admin","300"}, {"Professional.Admin","400"}, {"Admin.MFA","500"}, {"Super.Admin","600"}, {"BesT.Admin","650"}, {"V.I.P-Admi","700"}, {"Leader.Admin","750"}, {"Admin.BOOS","800"}, {"Admin.Black","900"}, {"Admin.TOP","1100"}, {"KinG.Admin","1300"}, {"Prince.Server","1600"}, {"Prince.admin","2000"}, {"Prince.V.I.P","2200"}, {"Admin.Plus","2500"}, {"Big.Admin","2800"}, {"Admin.FeatUreD","3000"}, {"Prote.Admin","3500"}, {"KinG.SeRvEr","4000"}, } ---------------------- -- Setting ---------------------- GiveAdmin = { Window = {}, gridlist = {}, button = {}, label = {}, } function centerWindow(center_window) local screenW,screenH=guiGetScreenSize() local windowW,windowH=guiGetSize(center_window,false); local x,y = (screenW-windowW)/2,(screenH-windowH)/2 guiSetPosition(center_window,x,y,false); end GiveAdmin.Window[1] = guiCreateWindow(445, 132, 390, 339, "=[نــظًًـأم الرتبـً بأًلسـًًـاعأت ]=", false); centerWindow(GiveAdmin.Window[1]); guiSetVisible(GiveAdmin.Window[1],false); guiWindowSetSizable(GiveAdmin.Window[1], false); guiSetAlpha(GiveAdmin.Window[1], 1.00); guiSetProperty(GiveAdmin.Window[1], "CaptionColour", "FFF70000"); guiSetFont(GiveAdmin.label[1], "default-bold-small") guiLabelSetColor(GiveAdmin.label[1], 255, 0, 0) GiveAdmin.gridlist[1] = guiCreateGridList(9, 51, 267, 397, false, GiveAdmin.Window[1]); guiGridListAddColumn(GiveAdmin.gridlist[1], "#", 0.2) guiGridListAddColumn(GiveAdmin.gridlist[1], "الرتبة #", 0.4); guiGridListAddColumn(GiveAdmin.gridlist[1], "الساعات #", 0.5); guiSetFont(GiveAdmin.label[2], "default-bold-small"); guiLabelSetColor(GiveAdmin.label[2], 41, 255, 0); GiveAdmin.button[1] = guiCreateButton(281, 268, 105, 26, ":;|اترقـًـية ", false, GiveAdmin.Window[1]); guiSetFont(GiveAdmin.button[1], "default-bold-small"); guiSetProperty(GiveAdmin.button[1], "NormalTextColour", "FFF70000"); for k,v in ipairs ( Admin ) do row = guiGridListAddRow(GiveAdmin.gridlist[1]); guiGridListSetItemText(GiveAdmin.gridlist[1],row,1,''..k..'-',false,false); guiGridListSetItemText(GiveAdmin.gridlist[1],row,2,v[1],false,false); guiGridListSetItemText(GiveAdmin.gridlist[1],row,3,v[2],false,false); guiGridListSetItemText(GiveAdmin.gridlist[1],row,4,v[3],false,false); guiGridListSetItemColor(GiveAdmin.gridlist[1],row,2,0,255,0); guiGridListSetItemColor(GiveAdmin.gridlist[1],row,1,255,0,0) guiGridListSetItemColor(GiveAdmin.gridlist[1],row,1,255,0,0); guiGridListSetItemColor(GiveAdmin.gridlist[1],row,1,255,0,0); end xMainFunctions_ = function ( ) local row, col = guiGridListGetSelectedItem ( GiveAdmin.gridlist[1] ) local Group = tostring ( guiGridListGetItemText(GiveAdmin.gridlist[1],row,3 )); local Price = tostring ( guiGridListGetItemText(GiveAdmin.gridlist[1],row,4 )); local Name = tostring ( guiGridListGetItemText(GiveAdmin.gridlist[1],row,2 )); if ( row and col and row ~= -1 and col ~= -1 ) then triggerServerEvent("Accept:the:request",localPlayer,Group,Price,Name); else outputChatBox("* الرجاء اختيار رتبةة !",255,0,0,true); end end addEventHandler("onClientGUIClick",GiveAdmin.button[1],xMainFunctions_,false); xBindFunction_ = function () guiSetVisible(GiveAdmin.Window[1],not guiGetVisible(GiveAdmin.Window[1])); showCursor(guiGetVisible(GiveAdmin.Window[1])); end bindKey(Key,"down",xBindFunction_); سيرفر xAddToGroupFunction_ = function ( Group,Price,Name ) local account = getAccountName(getPlayerAccount(source)); if isGuestAccount(getPlayerAccount(source)) then return outputChatBox(" * يجب عليك التسجيل اولاَ",source,255,0,255,true); end if isObjectInACLGroup("user."..account, aclGetGroup(tostring(Group))) then return outputChatBox("** لديك هذهـ الرتبة فعـلا ! ",source,255,0,255,true); end local sValue = getElementData( source,'PlayTime' ) if not sValue then sValue = '0:0:0' end local data = split(sValue,':') local hour = tonumber( data[1] ) if hour == nil or not tonumber(hour) then hour = 0 end if ( hour >= tonumber(Price)) then aclGroupAddObject (aclGetGroup( tostring(Group)),"user."..account); outputChatBox("** تم اضافة الرتبة بنجاح | "..Name,source,0,255,255,true); else outputChatBox("**ليس لديك ساعات كافية",source,255,0,0,true); end end addEvent("Accept:the:request",true) addEventHandler("Accept:the:request",root,xAddToGroupFunction_) + ابيكمء تحطون اذا احد رتبه م تتكرر + اذا اخذ مخالف م يترقى ي ليت تساعدون #_# ب آنتظآر حل الشمكله_(:
  10. اخوي عدله لي والله م افهم شيء وين احطه طيب
  11. لسسسسلآم عليكمء كيفكمء شباب عسسسآكم بخير^^ اليوم معي مود ساعات حق واي فاي ابي لم اسوي له رسترت م تروح الساعات تبقي اكواد كلنت GUIEditor = { checkbox = {}, staticimage = {}, edit = {}, button = {}, window = {}, label = {}, gridlist = {} } function cr() GUIEditor.window[1] = guiCreateWindow(384, 91, 524, 553, "Give Time By #[iMr]-W[i]Fi,!", false) guiWindowSetSizable(GUIEditor.window[1], false) guiSetVisible(GUIEditor.window[1],false) GUIEditor.gridlist[1] = guiCreateGridList(10, 56, 206, 327, false, GUIEditor.window[1]) local PlayerName = guiGridListAddColumn(GUIEditor.gridlist[1], "آسـم الاعــب", 0.4) local PlayerTime = guiGridListAddColumn(GUIEditor.gridlist[1], "ســآعآآت", 0.4) GUIEditor.edit[1] = guiCreateEdit(247, 86, 246, 32, "", false, GUIEditor.window[1]) GUIEditor.label[1] = guiCreateLabel(443, 57, 209, 19, "آلــعــدد :", false, GUIEditor.window[1]) GUIEditor.checkbox[1] = guiCreateCheckBox(243, 149, 151, 18, "تــحــديــد آلــكــل", false, false, GUIEditor.window[1]) GUIEditor.button[1] = guiCreateButton(240, 322, 107, 45, "زيــادةة ++", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FF00FF00") GUIEditor.button[2] = guiCreateButton(394, 322, 107, 45, "ســحــب - -", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[2], "NormalTextColour", "FFFF0000") GUIEditor.edit[2] = guiCreateEdit(12, 29, 204, 21, "بــحــث ....", false, GUIEditor.window[1]) GUIEditor.label[2] = guiCreateLabel(1, 390, 566, 15, "_______________________________________________________________________________________________________________________", false, GUIEditor.window[1]) guiSetFont(GUIEditor.label[2], "default-bold-small") guiLabelSetColor(GUIEditor.label[2], 255, 0, 0) GUIEditor.label[3] = guiCreateLabel(421, 427, 90, 15, "آلــكــلــمـةة :", false, GUIEditor.window[1]) GUIEditor.edit[3] = guiCreateEdit(385, 452, 129, 18, "", false, GUIEditor.window[1]) GUIEditor.label[4] = guiCreateLabel(62, 427, 90, 15, "آلــســآآعــآآت :", false, GUIEditor.window[1]) GUIEditor.edit[4] = guiCreateEdit(47, 452, 129, 18, "", false, GUIEditor.window[1]) GUIEditor.button[3] = guiCreateButton(216, 500, 133, 37, "مـوآفــق", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[3], "NormalTextColour", "FF00FF00") GUIEditor.edit[5] = guiCreateEdit(216, 452, 129, 18, "", false, GUIEditor.window[1]) GUIEditor.label[5] = guiCreateLabel(245, 427, 90, 15, "آلــمـدةة :", false, GUIEditor.window[1]) GUIEditor.staticimage[1] = guiCreateStaticImage(321, 187, 117, 96, "logo.png", false, GUIEditor.window[1]) end addEventHandler("onClientResourceStart", resourceRoot,cr) addEventHandler("onClientGUIClick",root, function () if source == GUIEditor.checkbox[1] then if guiCheckBoxGetSelected(source) then guiGridListSetSelectedItem(GUIEditor.gridlist[1],-1,-1) end elseif source == GUIEditor.gridlist[1] then if guiCheckBoxGetSelected(GUIEditor.checkbox[1]) then guiCheckBoxSetSelected(GUIEditor.checkbox[1],false) end elseif source == GUIEditor.edit[2] then if guiGetText(source) == "بــحــث ...." then guiSetText(source,"") end elseif source == GUIEditor.button[1] and guiGetText(GUIEditor.edit[1]) ~= "" and tonumber(guiGetText(GUIEditor.edit[1])) then if guiCheckBoxGetSelected(GUIEditor.checkbox[1]) then triggerServerEvent("addTime",root,"all",tonumber(guiGetText(GUIEditor.edit[1]))) else triggerServerEvent("addTime",root,guiGridListGetItemText(GUIEditor.gridlist[1],guiGridListGetSelectedItem(GUIEditor.gridlist[1]),1),tonumber(guiGetText(GUIEditor.edit[1]))) end elseif source == GUIEditor.button[2] and guiGetText(GUIEditor.edit[1]) ~= "" and tonumber(guiGetText(GUIEditor.edit[1])) then showCursor(not guiGetVisible(GUIEditor.window[1])) guiSetVisible(GUIEditor.window[1],not guiGetVisible(GUIEditor.window[1])) if guiCheckBoxGetSelected(GUIEditor.checkbox[1]) then triggerServerEvent("removeTime",root,"all",tonumber(guiGetText(GUIEditor.edit[1]))) else triggerServerEvent("removeTime",root,guiGridListGetItemText(GUIEditor.gridlist[1],guiGridListGetSelectedItem(GUIEditor.gridlist[1]),1),tonumber(guiGetText(GUIEditor.edit[1]))) end elseif source == GUIEditor.button[3] and guiGetText(GUIEditor.label[3]) ~= "" and guiGetText(GUIEditor.label[4]) ~= "" and guiGetText(GUIEditor.label[5]) ~= "" then triggerServerEvent("ToServer",root,guiGetText(GUIEditor.edit[3]),guiGetText(GUIEditor.edit[4]),guiGetText(GUIEditor.edit[5])) showCursor(not guiGetVisible(GUIEditor.window[1])) guiSetVisible(GUIEditor.window[1],not guiGetVisible(GUIEditor.window[1])) end end ) addEventHandler("onClientGUIChanged",root, function () if source == GUIEditor.edit[2] then searchgd(GUIEditor.gridlist[1],guiGetText(source)) end end ) function getPlayerTime(plr) return getElementData(plr,"PlayTime") end function SetPlayersInGD( GridList ) if GridList then if getElementType ( GridList ) == "gui-gridlist" then if guiGridListClear ( GridList ) then for i, v in next, getElementsByType ( "player" ) do local Row = guiGridListAddRow ( GridList ) guiGridListSetItemText ( GridList, Row, 1, getPlayerName ( v ), false, false ) guiGridListSetItemText ( GridList, Row, 2, getPlayerTime( v ), false, false ) end end end end end function searchgd(GridList,name) if guiGridListClear ( GridList ) then for i, v in next, getElementsByType ( "player" ) do if not string.find(getPlayerName(v),name) then return end local Row = guiGridListAddRow ( GridList ) guiGridListSetItemText ( GridList, Row, 1, getPlayerName ( v ), false, false ) guiGridListSetItemText ( GridList, Row, 2, getPlayerTime( v ), false, false ) end end end addEvent('openn',true) addEventHandler('openn',root, function () showCursor(not guiGetVisible(GUIEditor.window[1])) guiSetVisible(GUIEditor.window[1],not guiGetVisible(GUIEditor.window[1])) SetPlayersInGD(GUIEditor.gridlist[1]) guiSetText(GUIEditor.edit[1],"") guiSetText(GUIEditor.edit[2],"بــحــث ....") guiSetText(GUIEditor.edit[3],"") guiSetText(GUIEditor.edit[4],"") guiSetText(GUIEditor.edit[5],"") end ) وهذا اكواد حق السيرفر exports.scoreboard:addScoreboardColumn('PlayTime') addEvent("addTime",true) addEvent("removeTime",true) addEvent("ToServer",true) local t = { } local w = {} addEventHandler("ToServer",root, function (word,get,time) if word and tonumber(get) and tonumber(time) then table.insert(w,{word,get}) setTimer(function () for _,v in ipairs(w) do if v[1] == word and v[2] == get then table.remove(w,i) end end end,time*60*60*1000,1) end end ) addEventHandler("onConsole",root, function (msg) for _,v in ipairs(w) do if msg == v[1] then local playeraccount = getPlayerAccount ( source ) if ( playeraccount ) and not isGuestAccount ( playeraccount ) then if not getAccountData ( playeraccount, "time-"..msg) then addPlayerTime(source,v[2]) setAccountData( playeraccount, "time-"..msg,true) end end end end end ) addEventHandler("addTime",root, function (to,time) if to == "all" then for _,v in ipairs(getElementsByType("player")) do addPlayerTime(v,time) end else plr = getPlayerFromName(to) if plr then addPlayerTime(plr,time) end end end ) addEventHandler("removeTime",root, function (to,time) if to == "all" then for _,v in ipairs(getElementsByType("player")) do removePlayerTime(v,time) end else plr = getPlayerFromName(to) if plr then removePlayerTime(plr,time) end end end ) function addPlayerTime(plr,time) time = math.floor(time) t[plr]['hour'] = tonumber(t[plr]['hour'] or 0) + time end function removePlayerTime(plr,time) time = math.floor(time) t[plr]['hour'] = tonumber(t[plr]['hour'] or 0) - time end function checkValues( source,arg1,arg2) if (arg2 >= 60) then t[ source ][ 'min' ] = tonumber( t[ source ][ 'min' ] or 0 ) + 1 t[ source ][ 'sec' ] = 0 end if (arg1 >= 60) then t[ source ][ 'min' ] = 0 t[ source ][ 'hour' ] = tonumber( t[ source ][ 'hour' ] or 0 ) + 1 end return arg1, arg2 end setTimer( function( ) for _, v in pairs( getElementsByType( "player" ) ) do if (not t[ v ]) then t[ v ] = { ["hour"] = 0, ["min"] = 0, ["sec"] = 0 } end t[ v ][ 'sec' ] = tonumber( t[ v ][ 'sec' ] or 0 ) + 1 local min,sec = checkValues ( v, t[ v ][ 'min' ] or 0, t[ v ][ 'sec' ] or 0 ) local hour = tonumber( t[ v ][ 'hour' ] or 0 ) setElementData( v, "PlayTime", tostring( hour )..':'..tostring( min )..':'..tostring( sec ) ) end end, 1000, 0 ) function onPlayerQuit ( ) local playeraccount = getPlayerAccount ( source ) if ( playeraccount ) and not isGuestAccount ( playeraccount ) then local sValue = getElementData( source,'PlayTime' ) local hour = tonumber( t[ source ][ 'hour' ] or 0 ) local min = tonumber( t[ source ][ 'min' ] or 0 ) local sec = tonumber( t[ source ][ 'sec' ] or 0 ) setAccountData ( playeraccount, "PlayTime-hour", tostring(hour) ) setAccountData ( playeraccount, "PlayTime-min", tostring(min) ) setAccountData ( playeraccount, "PlayTime-sec", tostring(sec) ) setAccountData ( playeraccount, "PlayTime", tostring(sValue) ) end t[ source ] = nil end function onPlayerLogin (_, playeraccount ) if ( playeraccount ) then local time = getAccountData ( playeraccount, "PlayTime" ) local hou = getAccountData ( playeraccount, "PlayTime-hour") local min = getAccountData ( playeraccount, "PlayTime-min") local sec = getAccountData ( playeraccount, "PlayTime-sec") if ( time ) then setElementData ( source, "PlayTime", time ) t[ source ]["hour"] = tonumber(hou) t[ source ]["min"] = tonumber(min) t[ source ]["sec"] = tonumber(sec) else setElementData ( source, "PlayTime",0 ) setAccountData ( playeraccount, "PlayTime",0 ) end end end addEventHandler ( "onPlayerQuit", root, onPlayerQuit ) addEventHandler ( "onPlayerLogin", root, onPlayerLogin ) local Serial = { "8523AD61CFF15B5F74785FF90960DA43", "26E5822441E3E178C15C2BA5848576F2", } addCommandHandler('لوحة', function(thePlayer) if getPlayerSerial(thePlayer) ~= Serial then outputChatBox('* Welcome !',thePlayer,0,155,255,true) triggerClientEvent(thePlayer,'openn',thePlayer) else outputChatBox('* You not have permission to Access',thePlayer,255,0,0,true) end end )
  12. تفكون التاجات متظره في الشات تشتغل بسسسس م تظهر يشتغل بسسسسسسس م تجي بي الشات ذا الاكواد شوفو: function chatbox( text, type) if ( getSerialData ( getPlayerSerial ( source ), "TagState" ) == "Enable" ) then return end if isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("NO")) then cancelEvent() local r, g, b = getPlayerNametagColor(source) outputChatBox("*#FFFFFF[ #CC0000NO]" .. getPlayerName ( source ) .. ":#ffFFff " .. text, getRootElement(), r, g, b, true ) outputServerLog("CHAT: [NO] " .. getPlayerName ( source ) .. ": " .. text) elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Console")) then cancelEvent() local r, g, b = getPlayerNametagColor(source) outputChatBox("*#00FF00[Console]" .. getPlayerName ( source ) ..":#ffFFff " .. text, getRootElement(), r, g, b, true ) outputServerLog("CHAT: [Console] " .. getPlayerName ( source ) .. ": " .. text) elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("ManagerS")) then cancelEvent() local r, g, b = getPlayerNametagColor(source) outputChatBox("*#ff0000[ṂᾋƝᾋ#FFFF33ƓἝȒṨ]" .. getPlayerName ( source ) .. ":#ffFFff " .. text, getRootElement(), r, g, b, true ) outputServerLog("CHAT: [ManagerS] " .. getPlayerName ( source ) .. ": " .. text) elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Criminal")) then cancelEvent() local r, g, b = getPlayerNametagColor(source) outputChatBox("*#33FFCC[Crim#663300inal]" .. getPlayerName ( source ) .. ":#ffFFff " .. text, getRootElement(), r, g, b, true ) outputServerLog("CHAT: [Criminal] " .. getPlayerName ( source ) .. ": " .. text) elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Dieputy.Admin")) then cancelEvent() local r, g, b = getPlayerNametagColor(source) outputChatBox("*#FF6666[Dieputy.#FF0000Admin]" .. getPlayerName ( source ) .. ":#ffFFff " .. text, getRootElement(), r, g, b, true ) outputServerLog("CHAT: [besT.Admin] " .. getPlayerName ( source ) .. ": " .. text) elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Dieputy.SeRvEr")) then cancelEvent() local r, g, b = getPlayerNametagColor(source) outputChatBox("*#FFF500[Dieputy.#009999SeRvEr]" .. getPlayerName ( source ) .. ":#ffFFff " .. text, getRootElement(), r, g, b, true ) outputServerLog("CHAT: [Dieputy.SeRvEr] " .. getPlayerName ( source ) .. ": " .. text) elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Manager")) then cancelEvent() local r, g, b = getPlayerNametagColor(source) outputChatBox("*#FF6600[MƛƝƛ#999999ƓЄƦ#FF6600]" .. getPlayerName ( source ) .. ":#ffFFff " .. text, getRootElement(), r, g, b, true ) outputServerLog("CHAT: [Manager] " .. getPlayerName ( source ) .. ": " .. text) elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Manager-Acl")) then cancelEvent() local r, g, b = getPlayerNametagColor(source) outputChatBox("*#33FFCC[Manager#660000-Acl#33FFCC]" .. getPlayerName ( source ) .. ":#ffFFff " .. text, getRootElement(), r, g, b, true ) outputServerLog("CHAT: [Manager-Acl] " .. getPlayerName ( source ) .. ": " .. text) elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Leader.Admin")) then cancelEvent() local r, g, b = getPlayerNametagColor(source) outputChatBox("*#660000[Leader.Admin]" .. getPlayerName ( source ) .. ":#ffFFff " .. text, getRootElement(), r, g, b, true ) outputServerLog("CHAT: [Leader.Admin] " .. getPlayerName ( source ) .. ": " .. text) elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("V.I.P-Admin")) then cancelEvent() local r, g, b = getPlayerNametagColor(source) outputChatBox("*#66FFYY[V.I.P-Admin]" .. getPlayerName ( source ) .. ":#ffFFff " .. text, getRootElement(), r, g, b, true ) outputServerLog("CHAT: [V.I.P-Admin] " .. getPlayerName ( source ) .. ": " .. text) elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("BesT.Admin")) then cancelEvent() local r, g, b = getPlayerNametagColor(source) outputChatBox("*#000066[besT.Admin]" .. getPlayerName ( source ) .. ":#ffFFff " .. text, getRootElement(), r, g, b, true ) outputServerLog("CHAT: [besT.Admin] " .. getPlayerName ( source ) .. ": " .. text) elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Super.Admin")) then cancelEvent() local r, g, b = getPlayerNametagColor(source) outputChatBox("*#0GG066[super.Admin]" .. getPlayerName ( source ) .. ":#ffFFff " .. text, getRootElement(), r, g, b, true ) outputServerLog("CHAT: [super.Admin] " .. getPlayerName ( source ) .. ": " .. text) elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("KinG.SeRvEr")) then cancelEvent() local r, g, b = getPlayerNametagColor(source) outputChatBox("*#00FFFF[KinG.SeRvEr]" .. getPlayerName ( source ) .. ":#ffFFff " .. text, getRootElement(), r, g, b, true ) outputServerLog("CHAT: [KinG.SeRvEr] " .. getPlayerName ( source ) .. ": " .. text) elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Prote.Admin")) then cancelEvent() local r, g, b = getPlayerNametagColor(source) outputChatBox("*#00FF00[Prote.Admin]" .. getPlayerName ( source ) ..":#ffFFff " .. text, getRootElement(), r, g, b, true ) outputServerLog("CHAT: [Prote.Admin] " .. getPlayerName ( source ) .. ": " .. text) elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Admin.FeatUreD")) then cancelEvent() local r, g, b = getPlayerNametagColor(source) outputChatBox("*#00FF0F[Admin.FeatUreD]" .. getPlayerName ( source ) ..":#ffFFff " .. text, getRootElement(), r, g, b, true ) outputServerLog("CHAT: [Admin.FeatUreD] " .. getPlayerName ( source ) .. ": " .. text) elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Big.Admin")) then cancelEvent() local r, g, b = getPlayerNametagColor(source) outputChatBox("*#990033[big.Admin]" .. getPlayerName ( source ) ..":#ffFFff " .. text, getRootElement(), r, g, b, true ) outputServerLog("CHAT: [big.Admin] " .. getPlayerName ( source ) .. ": " .. text) elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Admin.Plus")) then cancelEvent() local r, g, b = getPlayerNametagColor(source) outputChatBox("*#FF6666[Admin.Plus]" .. getPlayerName ( source ) ..":#ffFFff " .. text, getRootElement(), r, g, b, true ) outputServerLog("CHAT: [Admin.Plus] " .. getPlayerName ( source ) .. ": " .. text) elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Prince.V.I.P")) then cancelEvent() local r, g, b = getPlayerNametagColor(source) outputChatBox("*#FF6FF6[Prince.V.I.P]" .. getPlayerName ( source ) ..":#ffFFff " .. text, getRootElement(), r, g, b, true ) outputServerLog("CHAT: [Prince.V.I.P] " .. getPlayerName ( source ) .. ": " .. text) elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Prince.Server")) then cancelEvent() local r, g, b = getPlayerNametagColor(source) outputChatBox("*#666633[Prince.Server]" .. getPlayerName ( source ) ..":#ffFFff " .. text, getRootElement(), r, g, b, true ) outputServerLog("CHAT: [Prince.Server] " .. getPlayerName ( source ) .. ": " .. text) elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("KinG.Admin")) then cancelEvent() local r, g, b = getPlayerNametagColor(source) outputChatBox("*#6655FF[KinG.Admin]" .. getPlayerName ( source ) ..":#ffFFff " .. text, getRootElement(), r, g, b, true ) outputServerLog("CHAT: [KinG.Admin] " .. getPlayerName ( source ) .. ": " .. text) elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Admin.TOP")) then cancelEvent() local r, g, b = getPlayerNametagColor(source) outputChatBox("*#CC3300[Admin.TOP]" .. getPlayerName ( source ) ..":#ffFFff " .. text, getRootElement(), r, g, b, true ) outputServerLog("CHAT: [Admin.TOP] " .. getPlayerName ( source ) .. ": " .. text) elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Admin.Black")) then cancelEvent() local r, g, b = getPlayerNametagColor(source) outputChatBox("*#CC3CCC[Admin.Black]" .. getPlayerName ( source ) ..":#ffFFff " .. text, getRootElement(), r, g, b, true ) outputServerLog("CHAT: [Admin.Black] " .. getPlayerName ( source ) .. ": " .. text) elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Admin.SPORT")) then cancelEvent() local r, g, b = getPlayerNametagColor(source) outputChatBox("*#0066CC[Admin.SPORT]" .. getPlayerName ( source ) ..":#ffFFff " .. text, getRootElement(), r, g, b, true ) outputServerLog("CHAT: [Admin.SPORT] " .. getPlayerName ( source ) .. ": " .. text) elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Admin.BOOS")) then cancelEvent() local r, g, b = getPlayerNametagColor(source) outputChatBox("*#006699[Admin.BOOS]" .. getPlayerName ( source ) ..":#ffFFff " .. text, getRootElement(), r, g, b, true ) outputServerLog("CHAT: [Admin.BOOS] " .. getPlayerName ( source ) .. ": " .. text) elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Admin.MFA")) then cancelEvent() local r, g, b = getPlayerNametagColor(source) outputChatBox("*#00CC66["Admin.MFA]" .. getPlayerName ( source ) ..":#ffFFff " .. text, getRootElement(), r, g, b, true ) outputServerLog("CHAT: [Admin.MFA] " .. getPlayerName ( source ) .. ": " .. text) elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Admin.General")) then cancelEvent() local r, g, b = getPlayerNametagColor(source) outputChatBox("*#CC66FF[Admin.General]" .. getPlayerName ( source ) ..":#ffFFff " .. text, getRootElement(), r, g, b, true ) outputServerLog("CHAT: [Admin.General] " .. getPlayerName ( source ) .. ": " .. text) elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Professional.Admin")) then cancelEvent() local r, g, b = getPlayerNametagColor(source) outputChatBox("*#CCCFFF[Professional.Admin]" .. getPlayerName ( source ) ..":#ffFFff " .. text, getRootElement(), r, g, b, true ) outputServerLog("CHAT: [Professional.Admin] " .. getPlayerName ( source ) .. ": " .. text) elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Head.Admin")) then cancelEvent() local r, g, b = getPlayerNametagColor(source) outputChatBox("*#FF0066[Head.Admin]" .. getPlayerName ( source ) ..":#ffFFff " .. text, getRootElement(), r, g, b, true ) outputServerLog("CHAT: [Head.Admin] " .. getPlayerName ( source ) .. ": " .. text) elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("ADMIN")) 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) elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("SuperModerator")) then cancelEvent() local r, g, b = getPlayerNametagColor(source) outputChatBox("*#FFFF00[SuperModerator]" .. getPlayerName ( source ) ..":#ffFFff " .. text, getRootElement(), r, g, b, true ) outputServerLog("CHAT: [Console] " .. getPlayerName ( source ) .. ": " .. text) elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Moderator")) then cancelEvent() local r, g, b = getPlayerNametagColor(source) outputChatBox("*#FF0055[Moderator]" .. getPlayerName ( source ) ..":#ffFFff " .. text, getRootElement(), r, g, b, true ) outputServerLog("CHAT: [Moderator] " .. getPlayerName ( source ) .. ": " .. text) elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Police")) then cancelEvent() local r, g, b = getPlayerNametagColor(source) outputChatBox("*#0000FF[Police]" .. getPlayerName ( source ) ..":#ffFFff " .. text, getRootElement(), r, g, b, true ) outputServerLog("CHAT: [Police] " .. getPlayerName ( source ) .. ": " .. text) elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("V.I.P")) then cancelEvent() local r, g, b = getPlayerNametagColor(source) outputChatBox("*#003300[V.I.P]" .. getPlayerName ( source ) ..":#ffFFff " .. text, getRootElement(), r, g, b, true ) outputServerLog("CHAT: [V.I.P] " .. getPlayerName ( source ) .. ": " .. text) elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("King.Drift")) then cancelEvent() local r, g, b = getPlayerNametagColor(source) outputChatBox("*#00FFFF[King.Drift]" .. getPlayerName ( source ) ..":#ffFFff " .. text, getRootElement(), r, g, b, true ) outputServerLog("CHAT: [King.Drift] " .. 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) function s3d() outputChatBox ( "#00bbcc=#000000= #Ff0000Script #00bbccTAG #ff0000v.3 #000000By #ff0000An6onyo=#00bbcc=", source, 0, 0, 0, true ) end addEventHandler("onPlayerJoin", getRootElement(), s3d) function getSerialData(serial,key) if ( key and type(serial) == "string") then value = getElementData(root,serial.."&"..key) end return value end
  13. طيب انت وش تسوي تاخد قيم مودات وتعدل الحقوق ؟ يب و يطل هنا مودات مثل مود التاج و كذا و يروح ينزله و يشفرهـ ام الدلخه
  14. طيب انت وش تسوي تاخد قيم مودات وتعدل الحقوق ؟ صبر صبر اول شيء شوف ود اليزر انا زرفه من وزراه ذا اول شيء من خويي م اخذه هو مستر سبورت و ثاني شيء الوحه غير هذا ثالثث شيء قناتك كله مزروفه و عدل عليه و اجحد ي حليلك قال اغير حقوق قال رح بس مستر قراند اصل الي يقول انك بمرج هذا كذاب اول شيء ههه انت بي تعرف تجهز اكواد يعني تخذ اكواد جاهز لاتكثر كلام ولا مشاركات اذا معك حل هات م معه لاتكلم فيه غيرك^^
  15. وش قلت لي و ثاني شيء ملك شغل زرفه مو زرفه لو من شغلك او ضارك تكلم ^^ و شكراآ
  16. قصدك اني احطك لكل لوحه ملف؟ و اربكهم بي تقريت؟ بالله ابي تشوف لي حل^^
  17. طيب انا ابي حل عيال تكفون ي شباب دور لي حل ^^
×
×
  • Create New...