-
Posts
1,377 -
Joined
-
Last visited
-
Days Won
3
Everything posted by Mr.Mostafa
-
آلسلام عليكم آنآ سويت لوحة علي آلسريع وخليتهآ تفتح من آف 3 من آليسآر لليمين وآشتغلت لكن آلمشكلة آنآ كنت مسوي لوحة ومخليهآ تفتح بكلمة من آف 8 وآجي آحط نفس آلآكوآد وآجي آكتب آلكلمة بآف 8 آللوحة تفتح عآدي مب من آليسآر لليمين آلآكوآد آلي حآطتتههآ في آلكلنت في آللوحتين : function Open ( ) guiSetVisible(GUIEditor.window[1], not guiGetVisible(GUIEditor.window[1])) showCursor(guiGetVisible(GUIEditor.window[1])) guiMoveRightToLeft(GUIEditor.window[1]) end TimeGuiSetRightC = { } function guiMoveRightToLeft(gui) if getElementData(gui,"HelhGui") == false then setElementData(gui,"HelhGui",true) local s1,s2=guiGetScreenSize() local w1,w2=guiGetSize(gui,false) local x,y = (s1-w1)/2,(s2-w2)/2 guiSetPosition(gui,-x,y,false) TimeGuiSetRightC[gui] = setTimer(guiMoveRightToLeft,50,0,gui) end local a,b=guiGetScreenSize() local w1,w2=guiGetSize(gui,false) local x,y = (a-w1)/2,(b-w2)/2 local x1,y1 = guiGetPosition ( gui, false) if (x1 >= x) then killTimer(TimeGuiSetRightC[gui]) setElementData(gui,"HelhGui",false) else guiSetPosition(gui,x1+20,y,false) end end
-
مآ آشتغلت + آنآ آبي آي كلمة آكتبهآ من /all يطلع صوت مش شرط منورين
-
للآسف مآ عآد يجيب معلومآت نهآئي @#DesTroeyR
-
مآ ظبط @Source|> @#DesTroeyR
-
آشتغلت ض1 طيب لو آبي آلكود يظهر للي ضغط آلزر فقط ؟
-
جربت آلترآيقر مآ ظبط جربت آلتآني مآ ظبط بعد حطيت آول كودين آللوحة مآ عآدت تفتح وحطيت تآني كود - آللوحة مآ عآدت تفتح بعد
-
سويت نفس آلكود لكن حطيته بمكآن خطآ فآ خرب آلمود تقدر تقلي آحطه بسطر كآم ؟ @Source|>
-
آلسلام عليكم مود آلسبآم طبيعي لمآ آحد يسوي سبآم بآلشآت يآخد ميوت آبي آسوي آن آنآ آلوحيد آلي مآ آخد ميوت يعني لو سويت سبآم آنآ مآ آخد ميوت لكن لو آحد سوي يآخد ميوت عآدي local gPlayerTickCount = { } local gPlayerSpams = { } local gPlayerMessage = { } local gPlayerMsgNum = { } local gPlayerMuteTimer = { } local gSettings = { } addEventHandler( "onPlayerChat", getRootElement( ), function( message ) if not gPlayerSpams[ source ] then gPlayerSpams[ source ] = true gPlayerTickCount[ source ] = getTickCount( ) gPlayerMessage[ source ] = message else if getTickCount( ) - gPlayerTickCount[ source ] > gSettings.delay then gPlayerMsgNum[ source ] = 0 gPlayerMessage[ source ] = nil; gPlayerTickCount[ source ] = getTickCount( ) return else if gPlayerMsgNum[ source ] >= gSettings.msgNum then gPlayerTickCount[ source ] = getTickCount( ) cancelEvent( ) if gSettings.mutePlayers then mutePlayer( source ); end elseif message == gPlayerMessage[ source ] then cancelEvent( ) outputChatBox( "Don't repeat yourself!!!", source, 255, 0, 0 ) end gPlayerMsgNum[ source ] = gPlayerMsgNum[ source ] + 1 end end gPlayerMessage[ source ] = message end ) function mutePlayer( player ) setPlayerMuted( player, true ); gPlayerMuteTimer[ player ] = setTimer( unmutePlayer, gSettings.muteTime * 1000, 1, player ); outputChatBox( "Don't flood the chat!!! You are now muted for " .. gSettings.muteTime .." seconds.", player, 255, 0, 0 ) end function unmutePlayer( player ) setPlayerMuted( player, false ); outputChatBox( "You can talk again. Remeber, do NOT spam!", player, 255, 0, 0 ); end addEventHandler( "onPlayerJoin", getRootElement( ), function( ) gPlayerMsgNum[ source ] = 0 end ) addEventHandler( "onResourceStart", getResourceRootElement( getThisResource() ), function( ) gSettings.delay = get( "@differenceBetweenMessages_ms" ) gSettings.msgNum = get( "@messagesNumber" ) gSettings.mutePlayers = ( get( "@mutePlayers" ) == "true" ) and true or false; gSettings.muteTime = get( "@muteTime" ); for _, plr in pairs( getElementsByType( "player" ) ) do gPlayerMsgNum[ plr ] = 0 end end ) addEventHandler( "onResourceStop", getResourceRootElement(), function( ) local players = getElementsByType( "player" ); for i, plr in pairs( players ) do if isPlayerMuted( plr ) then setPlayerMuted( plr, false ); end end end )
-
آب
-
آلسلام عليكم -- آبي آسوي لمآ آكتب بآف 8 /all منورين يجي صوت لجميع لآعبين آلسيرفر + حآولت آسوي تريقر لكن مدري وش آلخطآ client : function noob ( player) if getLocalPlayer ( ) then triggerServerEvent("soundd",localPlayer) end end addCommandHandler ( "all", noob ) server : addEvent("soundd",true) addEventHandler("soundd",root, function () playSound("chat.mp3") end )
-
آلسلام عليكم addCommandHandler("فلوس", function( source ) givePlayerMoney(source, 1000) outputChatBox("تم اخذ فلوس", source, 0,255,0,true) playSoundFrontEnd(source, 30) end) دآ لمآ شخص يكتب فلوس بآف 8 يجيله آلف آبي آسوي آي شخص يكتب يجيله فلوس آلآ شخص معين لو كتب مآ يجيه شي + يكتبله بآلشآت مثلا آنت محظور من آلخآصية يعني آلكل يآخد آلآ شخص وآحد آنآ آحدده من سيريآله آنفي آن آلسيريآل دآ مآ يآخد كيف؟
-
آلسلام عليكم كيف آسوي لمآ آلآعب يضغط زر بآللوحة - آلزر دآ يكون مربوط بآف 8 يعني مثلا لوحة تسجيل آلدخول كيف آسوي لمآ يضغط login يكون مربوط بآمر /login وآلحسآب وآلرمز آلي دخلهم في آلخيآر
-
آلسلام عليكم معي لوحة لو كتبت آسم حسآب شخص يطلع لي كل معلومآته لكن آلمشكلة لمآ آكتب آسم حسآب شخص وآضغط آظهآر آلمعلومآت يطلع معلومآتي آنآ يعني خآنة وضع حسآب آلشخص تعتبر وهمية فآ آبي تبديل بدل مآ يطلع معلومآتي يطلع معلومآت صآحب آلحسآب آلي آنآ كآتبه سيرفر : function getPlayerAcls(thePlayer) local acls = {} local account = getPlayerAccount(thePlayer) if (account) and not (isGuestAccount(account)) then local accountName = getAccountName(account) for i,group in ipairs(aclGroupList()) do if (isObjectInACLGroup( "user." ..accountName, group)) then local groupName = aclGroupGetName(group) table.insert(acls, groupName) end end end return acls end addEvent("Add",true) addEventHandler("Add", root,function(theAccount) local account = getAccount(theAccount) if ( account ) then local acc = getAccountName(account) local acl = getPlayerAcls(source) local name = getPlayerName(source) local serial = getPlayerSerial(source) local My = getPlayerMoney(source) local ping = getPlayerPing(source) triggerClientEvent(client,"aad",client,name,acc,tostring( table.concat(acl, ", ") ),serial,My,ping) end end) كلنت : GUIEditor = {memo = {},button = {},edit = {},window = {},} GUIEditor.window[1] = guiCreateWindow(234, 146, 296, 356, "لوحة معلومات الاعبين", false) guiWindowSetSizable(GUIEditor.window[1], false) GUIEditor.button[1] = guiCreateButton(77, 93, 171, 31, "اظهآر معلومات الحساب", false, GUIEditor.window[1]) GUIEditor.edit[1] = guiCreateEdit(73, 39, 175, 30, "", false, GUIEditor.window[1]) GUIEditor.memo[1] = guiCreateMemo(21, 176, 261, 167, "", false, GUIEditor.window[1]) guiMemoSetReadOnly(GUIEditor.memo[1], true) ----- addEventHandler("onClientGUIClick",GUIEditor.button[1],function() plr = guiGetText(GUIEditor.edit[1]) if plr then triggerServerEvent("Add", localPlayer,plr) else guiSetText(GUIEditor.memo[1],"Error") end end,false) ------ addEvent("aad",true) addEventHandler("aad", root,function (name,acc,acl,serial,My,Ping) guiSetText(GUIEditor.memo[1],"\n Name:"..name.."\n Account :"..acc.."\n Groups :"..acl.."\n Serial :"..serial.."\n Money:"..My.."\n Ping : " ..Ping) end)
-
مب شغآل - رفعت آللوحة فتحت آللوحة ضغطت آلزر مآ جآب شي ! @Lee
-
--
-
آلي آنت حآطه فوق addEventHandler('onClientGUIClick',root,, function() if (source == GUIEditor.button[9]) then outputChatBox('تم آغلآق آللوحة بنجآح',source,0,255,0) end end)
-
لآ كنت آبيهآ تظهر للي ضغط فقط + شكرآ لك + ممكن شرح لترآيقر لآني مآ آعرفه عنه شي ! مآ آشتغل بآلعكس لمآ حطيته خرب آللوحة ومآ عآدت تفتح @Lee
-
آلسلام عليكم آبي لمآ آضغط زر يطلع كلمة في آلشآت محآولتي : addEventHandler('onClientGUIClick',root, function() if source == GUIEditor.button[9] then outputChatBox('تم آغلآق آللوحة بنجآح',source,0,255,0) end end )
-
آلسلام عليكم سويت لوحة وبرمجتهآ آللوحة فيهآ زرين آول زر - تشغيل آلمود تآني زر - قفل آلمود آبي لمآ آضغط آول زر يفتح مود معين ولمآ آضغط تآني زر - يقفل مود معين وهل آلآكوآد بتكون في سيرفر ولآ كلنت ؟؟ ويآريت آلآكوآد كآملة وشكرآ
-
آلسلام عليكم آبي كود آن آللوحة مآ تفتح في آلوجه لكن مآ آبيهآ تفتح بآف 7 آو شي - سويته , شكرآ لكم , ^
-
آلكلنت : local tag = dxCreateTexture("3.png") addEventHandler("onClientPreRender", root, function() for i, player in ipairs ( getElementsByType ( "player" ) ) do if ( getElementData ( player, "VIPData" ) == true ) then local x, y, z = getPedBonePosition(player, 5) dxDrawMaterialLine3D(x, y, z+0.5, x, y, z+0.3, tag, 0.7, tocolor(255,255,255,255)) end end end ) سيرفر : addEventHandler ( "onResourceStart", resourceRoot, function ( ) for _,players in ipairs ( getElementsByType ( "player" ) ) do if ( getPlayerAccount( players ) and not isGuestAccount( getPlayerAccount( players ) ) ) then if ( isObjectInACLGroup ( "user."..getAccountName ( getPlayerAccount ( players ) ), aclGetGroup ( "Console" ) ) ) then--اسم الرتبه setElementData ( players, "VIPData", true ) end end end end ) addEventHandler ( "onPlayerLogin", root, function ( _,acc ) if ( isObjectInACLGroup ( "user."..getAccountName( acc ), aclGetGroup ( "Console" ) ) ) then--اسم الرتبه setElementData ( source, "VIPData", true ) end end ) مع آلمعلومة : يشتغل بسيرفر آلمحلي لكن آلسيرفر آلعآلمي لآ :")
-
طيب هو تمآم لو كتبت بروب آو برب آو شي من دول يجي رسآلة تيت لكن آنآ آبي لو جملة فيهآ كلمة برب مثلا يرد ب تيت يعني لو قلت بآلشآت : برب لحآلهآ بدون شي : تيت لكن لو قلت : آنآ برب : مآ يطلع شي @iMr.WiFi..!
-
آلسلام عليكم معي كود لمآ آكتب ب /all يطلع صوت - لكن آلمشكلة يطلع آلصوت لي فقط - آبي آلصوت يطلع لكل آلسيرفر + لآهنتم آبي آلكود كآمل function new ( player) if getLocalPlayer ( ) then local sound = playSound("chat.mp3") end end addCommandHandler ( "all", new )
-
آلسلام عليكم آبي لمآ آكتب آمر في آف 8 يطلع رسآلة بآلشآت بآسم شخص عشوآئي محآولتي : addCommandHandler ( "Random" , -- كوماند function getPlayer ( ) outputChatBox ( " * "..getPlayerName ( getRandomPlayer ( ) ).." : تم فوز هذآ آلشخص بآلبحث آلعشوآئي " , root ) end )