Jump to content

HelpGuys

Members
  • Posts

    106
  • Joined

  • Last visited

Everything posted by HelpGuys

  1. الله عليك ذا لى حبيت افهمك ايه طيب مافي حل اخوي الغالي
  2. أفهمو يا شباب هسه انا حطيت سريالي وسويت رستار للوحة تمام؟ قلت لشخص يسحبني ميقدر يسحبني تمام كفو بس المشكلة انا لما افتح اللوحة وبدي انتقل لشخص من لوحة مبقدر You have warped to Ahmed يطلع لى كذا بس مبقدر انتقل له ارجو الحل
  3. مبقدر warp يخي سويت حطيت سريال ميقدر يسحبني تمام بس انا لما انتقل من كلمة
  4. شكرا على كلامك الجميل بس باقي نفس المشكلة صح ميقدر يسحبني بس المشكلة انا مبقدر انتقل من لوحة
  5. لا والله موجود بساعات كمان تعال لسيرفر T.M ورح تلقي صاحب هنيك واطلب منه وتشوف والله مبكذب انا اول مره شفته تفجأة يرحم امك سعدني
  6. aAdminSerial = '123456789'; -- سيريال الأدمن اللي ماتبي احد يسحبه elseif ( action == "warp" ) or ( action == "warpto" ) then function warpPlayer ( p, to ) function warp ( p, to ) local x, y, z = getElementPosition ( to ) local r = getPedRotation ( to ) x = x - math.sin ( math.rad ( r ) ) * 2 y = y + math.cos ( math.rad ( r ) ) * 2 if ( getPlayerSerial( p ) == aAdminSerial ) then return end setTimer ( setElementPosition, 1000, 1, p, x, y, z + 1 ) fadeCamera ( p, false, 1, 0, 0, 0 ) setElementDimension ( p, getElementDimension ( to ) ) setElementInterior ( p, getElementInterior ( to ) ) setTimer ( fadeCamera, 1000, 1, p, true, 1 ) end شباب زبطت معي مااحد يقدر يسحبني ببس المشكلة شباب مبقدر انتقل من لوحة ولما اضيف شخص ثاني سرياله يصير يشتغل على سريال فقط اكثر من سريال بقولك لا
  7. لا تسويه مشفر هه في سيرفر اسمه T.M فخامة للانظمة الواقعية شفته قسم بالله
  8. addCommandHandler("قفل", function( plr ) local acc = getPlayerAccount( plr ) local accName = getAccountName ( acc ) if isGuestAccount(acc) then return end if isObjectInACLGroup ("user."..accName, aclGetGroup ( "Console" ) ) then if ( getElementData(plr, "ChatL") == true ) then setElementData(plr, "ChatL", false) outputChatBox("تم اغلاق العاجل",root,255,0,0,true) else setElementData(plr, "ChatL", true) outputChatBox("تم فتح العاجل",root,255,255,255,true) end else end end) addCommandHandler("IM",function ( source,_,...) if ( getElementData(source, "ChatL") == false ) then return outputChatBox("مغلق",source,255,0,0,true) end local message = table.concat ( veve, " " ) for i, v in ipairs ( Groups ) do if isObjectInACLGroup ( "user."..accName, aclGetGroup ( v ) ) then setElementData(resourceRoot,"Msg_",msg) setElementData(resourceRoot,"Have_",true) setElementData(resourceRoot,"By_",getPlayerName(source)) else end end) شباب تكفون حطو لى لى يقفل العاجل ويفتحو تكون على سريال وجروب المسوحة لها بالكتوب Msg+Console
  9. local allowedGroups = {"Console", "Msg"} --الكتابة فالعاجل addCommandHandler("قفل", function( plr ) local acc = getPlayerAccount( plr ) local accName = getAccountName ( acc ) if isGuestAccount(acc) then return end if isObjectInACLGroup ("user."..accName, aclGetGroup ( "Console" ) ) then if ( getElementData(plr, "ChatL") == true ) then setElementData(plr, "ChatL", false) OutPut("تم اغلاق العاجل",root,255,0,0,true) addEventHandler("onPlayerDamage",root,plr) addEventHandler("onClientPlayerDamage", localPlayer, cancelEvent) else setElementData(plr, "ChatL", true) OutPut("تم فتح العاجل",root,255,0,0,true) addEventHandler("onPlayerDamage",root,plr) addEventHandler("onClientPlayerDamage", localPlayer, cancelEvent) end else end end) addCommandHandler("IM",function ( source,_,...) if ( getElementData(source, "ChatL") == false ) then return outputChatBox("مغلق",source,255,0,0,true) end local msg = table.concat({...} , " ") if i, v in ipairs(allowedGroups) do if isObjectInACLGroup("user."..getAccountName(getPlayerAccount(player)), aclGetGroup(v)) then setElementData(resourceRoot,"Msg_",msg) setElementData(resourceRoot,"Have_",true) setElementData(resourceRoot,"By_",getPlayerName(source)) else end end) وش الخطا؟
  10. addCommandHandler("قفل", function( plr ) local acc = getPlayerAccount( plr ) local accName = getAccountName ( acc ) if isGuestAccount(acc) then return end if isObjectInACLGroup ("user."..accName, aclGetGroup ( "Console" ) ) ---- الرتبة الي تقدر تقفل وتفك العاجل then if ( getElementData(plr, "ChatL") == true ) then setElementData(plr, "ChatL", false) outputChatBox("تم اغلاق العاجل",root,255,0,0,true) else setElementData(plr, "ChatL", true) outputChatBox("تم فتح العاجل",root,255,0,0,true) end else outputChatBox ("You ! :o",plr,255,255,255,true) end end ) addCommandHandler("IM", function ( source,_,...) if ( getElementData(source, "ChatL") == true ) then local msg = table.concat({...} , " ") if isObjectInACLGroup ("user."..getAccountName(getPlayerAccount(source)), aclGetGroup ( "Console" ) ) ---- الرتبة الي تقدر تتكلم بالعاجل حتى لو مقفل then setElementData(resourceRoot,"Msg_",msg) setElementData(resourceRoot,"Have_",true) setElementData(resourceRoot,"By_",getPlayerName(source)) else end else outputChatBox("مغلق",source,255,0,0,true) end end) addCommandHandler("IM", function ( source,_,...) if ( getElementData(source, "ChatL") == true ) then local msg = table.concat({...} , " ") if isObjectInACLGroup ("user."..getAccountName(getPlayerAccount(source)), aclGetGroup ( "Msg" ) ) ---- الرتبة لى متقدر تتكلم فالعاجل بعد إغلاقه then setElementData(resourceRoot,"Msg_",msg) setElementData(resourceRoot,"Have_",true) setElementData(resourceRoot,"By_",getPlayerName(source)) else end else outputChatBox("مغلق",source,255,0,0,true) end end) --Client زبطلي اخر فكنشت انا سويتها هيك عشن احد يسعدني فيها
  11. addCommandHandler("قفل", function( plr ) local acc = getPlayerAccount( plr ) local accName = getAccountName ( acc ) if isGuestAccount(acc) then return end if isObjectInACLGroup ("user."..accName, aclGetGroup ( "Console" ) ) ---- الرتبة الي تقدر تقفل وتفك العاجل then if ( getElementData(plr, "ChatL") == true ) then setElementData(plr, "ChatL", false) outputChatBox("تم اغلاق العاجل",root,255,0,0,true) else setElementData(plr, "ChatL", true) outputChatBox("تم فتح العاجل",root,255,0,0,true) end else outputChatBox ("You ! :o",plr,255,255,255,true) end end ) addCommandHandler("IM", function ( source,_,...) if ( getElementData(source, "ChatL") == true ) then local msg = table.concat({...} , " ") if isObjectInACLGroup ("user."..getAccountName(getPlayerAccount(source)), aclGetGroup ( "Console" ) ) ---- الرتبة الي تقدر تتكلم بالعاجل حتى لو مقفل then setElementData(resourceRoot,"Msg_",msg) setElementData(resourceRoot,"Have_",true) setElementData(resourceRoot,"By_",getPlayerName(source)) else end else outputChatBox("مغلق",source,255,0,0,true) end end) addCommandHandler("IM", function ( source,_,...) if ( getElementData(source, "ChatL") == true ) then local msg = table.concat({...} , " ") if isObjectInACLGroup ("user."..getAccountName(getPlayerAccount(source)), aclGetGroup ( "Msg" ) ) ---- الرتبة لى متقدر تتكلم فالعاجل بعد إغلاقه then setElementData(resourceRoot,"Msg_",msg) setElementData(resourceRoot,"Have_",true) setElementData(resourceRoot,"By_",getPlayerName(source)) else end else outputChatBox("مغلق",source,255,0,0,true) end end) --Client عدل لى اخر واحد
  12. يب مزبط ارجو الحل اخوي فقط الكنسول يقدر يكتب بالعاجل تمام حبي زبط زبط تسلم ي حب بدي فقط رتبة الكنسول تقدر تكتب بالعاجل لما مقفل ولما ينفتح العاجل رتبة msg تصير تكتب تقدر تكتب Msgمبدي رتبة تقدر تتكلم بالعاجل بدي فقط لما تقل العاجل ولا حد يقدر يكتب ولما ينفتح العاجل بدي رتبة يرحم امك رد
  13. addCommandHandler("قفل", function( plr ) local acc = getPlayerAccount( plr ) local accName = getAccountName ( acc ) if isGuestAccount(acc) then return end if isObjectInACLGroup ("user."..accName, aclGetGroup ( "Console" ) ) then ---- الرتبة الي تقدر تقفل وتفك العاجل if ( getElementData(plr, "ChatL") == true ) then setElementData(plr, "ChatL", false) outputChatBox("تم اغلاق العاجل",root,255,0,0,true) else setElementData(plr, "ChatL", true) outputChatBox("تم فتح العاجل",root,255,0,0,true) end else outputChatBox (":O You :!",plr,255,0,0,true) end end ) addCommandHandler("IM", function ( source,_,...) if ( getElementData(source, "ChatL") == true ) then local msg = table.concat({...} , " ") if isObjectInACLGroup("user."..getAccountName(getPlayerAccount(source)), aclGetGroup("Console")) then ----- الرتبة الي تقدر تتكلم بالعاجل حتى لو مقفل setElementData(resourceRoot,"Msg_",msg) setElementData(resourceRoot,"Have_",true) setElementData(resourceRoot,"By_",getPlayerName(source)) else outputChatBox("لاتملك الصلاحية للكتابة هنا",source,255,0,0,true) end else outputChatBox("مغلق",source,255,0,0,true) end end) --Client بس ياريت تخليها كمان على رتبة Msg
  14. يب لما اكتب ميطلع شيء --Server Command = { ['IM'] = true; } addCommandHandler("LockC", function( plr ) local acc = getPlayerAccount( plr ) local accName = getAccountName ( acc ) if isGuestAccount(acc) then return end if isObjectInACLGroup ("user."..accName, aclGetGroup ( "Console" ) ) then ---- الرتبة الي تقدر تقفل وتفك العاجل ( getElementData(plr, "ChatL") == false ) then setElementData(plr, "ChatL", true) outputChatBox("تم اغلاق العاجل",root,255,0,0,true) else setElementData(plr, "ChatL", false) outputChatBox("تم فتح العاجل",root,255,0,0,true) end else outputChatBox (":O You :!",plr,255,0,0,true) end end ) addEventHandler ( 'onPlayerCommand',getRootElement ( ), function ( cmd , msg , ... ) if ( getElementData(source, "ChatL") == true ) then local msg = table.concat({...} , " ") if isObjectInACLGroup("user."..getAccountName(getPlayerAccount(source)), aclGetGroup("Console")) then ----- الرتبة الي تقدر تتكلم بالعاجل حتى لو مقفل else if Command [ cmd ] then cancelEvent ( ); outputChatBox("العاجل مغلق",source,255,0,0,true) end end end end) --Client local sX, sY = guiGetScreenSize () addEventHandler("onClientRender", root, function () if ( getElementData ( resourceRoot, "Have_" ) == true ) then local Lines = getChatboxLayout ()["chat_lines"] if ( Lines <= 10 ) then Lines = Lines + 1 elseif ( Lines >= 20 ) then Lines = Lines - 1 else Lines = Lines end if ( getElementData ( resourceRoot, "Msg_" ) == "delete" ) then setElementData ( resourceRoot, "Have_", false ) else dxDrawBorderedText ( "Admin : #FFFFFF" .. getElementData ( resourceRoot, "Msg_" ).. "", 15, 240, 205, 242, tocolor(255, 255, 255, 255), 1.0,"default-bold", "left", "top", false, false, false, true, false ) end end end) bindKey("u", "down", "chatbox","IM") function dxDrawBorderedText ( text, x, y, w, h, color, scale, font, alignX, alignY, clip, wordBreak, postGUI, color2 ) local wh = 1 local msg_gsub = text:gsub ( '#%x%x%x%x%x%x', '' ) dxDrawText ( msg_gsub, x - wh, y - wh, w - wh, h - wh, tocolor ( 0, 0, 0, 0 ), scale, font, alignX, alignY, clip, wordBreak, false ) -- black dxDrawText ( msg_gsub, x + wh, y - wh, w + wh, h - wh, tocolor ( 0, 0, 0, 0 ), scale, font, alignX, alignY, clip, wordBreak, false ) dxDrawText ( msg_gsub, x - wh, y + wh, w - wh, h + wh, tocolor ( 0, 0, 0, 0 ), scale, font, alignX, alignY, clip, wordBreak, false ) dxDrawText ( msg_gsub, x + wh, y + wh, w + wh, h + wh, tocolor ( 0, 0, 0, 0 ), scale, font, alignX, alignY, clip, wordBreak, false ) dxDrawText ( msg_gsub, x - wh, y, w - wh, h, tocolor ( 0, 0, 0, 0 ), scale, font, alignX, alignY, clip, wordBreak, false ) dxDrawText ( msg_gsub, x + wh, y, w + wh, h, tocolor ( 0, 0, 0, 0 ), scale, font, alignX, alignY, clip, wordBreak, false ) dxDrawText ( msg_gsub, x, y - wh, w, h - wh, tocolor ( 0, 0, 0, 0 ), scale, font, alignX, alignY, clip, wordBreak, false ) dxDrawText ( msg_gsub, x, y + wh, w, h + wh, tocolor ( 0, 0, 0, 0 ), scale, font, alignX, alignY, clip, wordBreak, false ) dxDrawText ( text, x, y, w, h, color, scale, font, alignX, alignY, clip, wordBreak, postGUI, color2 ) end --meta <meta> <script src="1.lua" type="client" cache="false"/> <script src="2.lua" /> <script src="client.lua" type="client"/> </meta> شوف ي اخوي
×
×
  • Create New...