-
Posts
868 -
Joined
-
Last visited
Everything posted by hassan.k.s.a
-
local function getTeam ( team ) return getTeamFromName ( team ) end addEventHandler("onClientRender",root,function() local team1 = getTeam ( "NoTeam" ) local team2 = getTeam ( "Police" ) local team3 = getTeam ( "Grove" ) local count1 = countPlayersInTeam ( team1 ) local count2 = countPlayersInTeam ( team2 ) local count3 = countPlayersInTeam ( team3 ) if ( count1 ) then guiSetText ( GUIEditor.label[3], "No Team Players : ".. tonumber ( count1 ) ) end if ( count2 ) then guiSetText ( GUIEditor.label[4], "Police Players : ".. tonumber ( count2 ) ) end if ( count3 ) then guiSetText ( GUIEditor.label[2], "Grove Players : ".. tonumber ( count3 ) ) end end)
-
راح ينزل بـ مسار نزول المود راح يكون في نفس الملف حق المود لاكن بـ مسار نزول المودآت لما تتحمل ..~!
-
هو جاب كلينت وظفت له بس ! وبعدين مايحتآج تريقر لـ الحفظ لأنه هو حط ترريقر لتسجيل الدخول ليه يكرر ؟ خذ بدون تريقر : GUIEditor_Button = {} GUIEditor_Checkbox = {} GUIEditor_Label = {} GUIEditor_Edit = {} GUIEditor_Image = {} wnd = guiCreateWindow(1,1,799,600,"",false) guiSetAlpha(wnd,1) GUIEditor_Image[2] = guiCreateStaticImage(10,24,781,449,"1.png",false,wnd) GUIEditor_Edit[1] = guiCreateEdit(299,484,166,27,"",false,wnd) GUIEditor_Edit[2] = guiCreateEdit(299,520,166,27,"",false,wnd) guiEditSetMasked(GUIEditor_Edit[2],true) GUIEditor_Label[1] = guiCreateLabel(238,487,106,18,"username",false,wnd) GUIEditor_Label[2] = guiCreateLabel(238,521,106,18,"password",false,wnd) GUIEditor_Button[1] = guiCreateButton(279,559,78,24,"login",false,wnd) GUIEditor_Button[2] = guiCreateButton(432,559,78,24,"register",false,wnd) GUIEditor_Checkbox[1] = guiCreateCheckBox(474,522,123,22,"تذكرني",false,false,wnd) addEventHandler("onClientGUIClick",getRootElement(), function () local user = guiGetText(GUIEditor_Edit[1]) local pass = guiGetText(GUIEditor_Edit[2]) if ( source == GUIEditor_Button[1] ) then if ( guiCheckBoxGetSelected ( GUIEditor_Checkbox[1] ) ) then local file = xmlLoadFile("account.xml") or xmlCreateFile("account.xml","account") xmlNodeSetValue(xmlCreateChild(file,"name"),""..user.."") xmlNodeSetValue(xmlCreateChild(file,"pass"),""..pass.."") xmlSaveFile(file) triggerServerEvent('onlogin',localPlayer,user,pass) end elseif ( source == GUIEditor_Button[2] ) then triggerServerEvent('onre',localPlayer,user,pass) end end ) function show() guiSetVisible(wnd, not guiGetVisible(wnd)) showCursor(guiGetVisible(wnd)) end bindKey ("F2", "down", show)
-
GUIEditor_Button = {} GUIEditor_Checkbox = {} GUIEditor_Label = {} GUIEditor_Edit = {} GUIEditor_Image = {} wnd = guiCreateWindow(1,1,799,600,"",false) guiSetAlpha(wnd,1) GUIEditor_Image[2] = guiCreateStaticImage(10,24,781,449,"1.png",false,wnd) GUIEditor_Edit[1] = guiCreateEdit(299,484,166,27,"",false,wnd) GUIEditor_Edit[2] = guiCreateEdit(299,520,166,27,"",false,wnd) guiEditSetMasked(GUIEditor_Edit[2],true) GUIEditor_Label[1] = guiCreateLabel(238,487,106,18,"username",false,wnd) GUIEditor_Label[2] = guiCreateLabel(238,521,106,18,"password",false,wnd) GUIEditor_Button[1] = guiCreateButton(279,559,78,24,"login",false,wnd) GUIEditor_Button[2] = guiCreateButton(432,559,78,24,"register",false,wnd) GUIEditor_Checkbox[1] = guiCreateCheckBox(474,522,123,22,"تذكرني",false,false,wnd) addEventHandler("onClientGUIClick",getRootElement(), function () local user = guiGetText(GUIEditor_Edit[1]) local pass = guiGetText(GUIEditor_Edit[2]) if ( source == GUIEditor_Button[1] ) then if ( guiCheckBoxGetSelected ( GUIEditor_Checkbox[1] ) ) then triggerServerEvent('save',localPlayer) local file = xmlLoadFile("account.xml") or xmlCreateFile("account.xml","account") xmlNodeSetValue(xmlCreateChild(file,"name"),""..user.."") xmlNodeSetValue(xmlCreateChild(file,"pass"),""..pass.."") xmlSaveFile(file) triggerServerEvent('onlogin',localPlayer,user,pass) else triggerServerEvent('onlogin',localPlayer,user,pass) end elseif ( source == GUIEditor_Button[2] ) then triggerServerEvent('onre',localPlayer,user,pass) end end ) function show() guiSetVisible(wnd, not guiGetVisible(wnd)) showCursor(guiGetVisible(wnd)) end bindKey ("F2", "down", show)
-
العفو , اهم شي صاحب الموضوع نشوف جآته الأفآده ولا لا ..ٍ~#
-
triggerServerEvent('save',localPlayer) addEventHandler('save',root, function ( player, user, pass ) local account = getAccount ( user, pass ) if ( account ~= false ) then if (logIn ( player, account, pass ) == true) then triggerClientEvent(player, 'xml', player) else outputChatBox ( "Error Login...", player, 255, 0, 0 ) end end end) !!!! التريقر ماحطيت فيه الباس وألأسم
-
هات المود حقك وهو شغال واسويه لك او خذ مثال : b = guiCreateButton(9,157,102,29,"save",false) e1 = guiCreateEdit(78,39,181,29,"name",false) e2 = guiCreateEdit(78,77,181,29,"pass",false) addEventHandler("onClientGUIClick",getRootElement(),function() if source == b then user = guiGetText(e1) pass = guiGetText(e2) local file = xmlLoadFile("account.xml") or xmlCreateFile("account.xml","account") xmlNodeSetValue(xmlCreateChild(file,"name"),""..user.."") xmlNodeSetValue(xmlCreateChild(file,"pass"),""..pass.."") xmlSaveFile(file) end end) اذا ماعرفت هات المود حقك او ملف كلينت واسويه لك ..~#
-
بيكون سيرفر وماراح يشوفه العضو راح يشوفه صاحب السيرفر في الملفات بس ^.^ لازم كلينت + ملف ألأكسمل كلينت
-
خخخخخخخخخخخخخخخ خرابيط قال تسجل دخول خذ تعلم من مود طلال مو مشفر وسهل مرا : https://community.multitheftauto.com/ind ... ls&id=5660
-
ناقص end جرب كذا addEventHandler("onClientGUIClick", getRootElement(),function() local Edit = guiGetText(mEdit) if source == mClose then guiSetVisible(mWin, false) showCursor(false) guiSetInputEnabled(false) elseif source == mSend then if guiCheckBoxGetSelected(mCheck) == true then triggerServerEvent("tSend", getLocalPlayer(),Edit) else triggerServerEvent("fSend", getLocalPlayer(),Edit) end elseif source == mFake then if guiCheckBoxGetSelected(mCheck) == true then triggerServerEvent("tFake", getLocalPlayer(),Edit) else triggerServerEvent("fFake", getLocalPlayer(),Edit) end end end)
-
انت فنان ماشاء الله عليك .
-
موضوع مكرر ! روح دور وبتشوف نفس طلبك ليه الكسل ؟
-
خخخخخخ عاد ماقال هو يبي الكل يشووفونه ^.^
-
وش ذي الردود 100000 رد ومافيه الا 1 صح ! لو تروح الويكي موجود مثال واضح يعني يمديك تنسخه تلصقه وخلاص ماله داعي موضوع ^.^
-
^.^ مرا سهل حاول تعتمد على نفسك وانا بصلحه + اهم شي دور رقم ألأوبجكت حق السهم ..~#
-
خخخخخخخخ قيمة يعني شي من عقلك يمديك تحط رقم كلامي اي شي تبيه ^.^ شي وهمي ! وانا حطيت if x == 0 then اذا كان x يسآوي الرقم الوهمي او الكلام الوهمي الي انت حطيته يسآوي يعني يطآبق راح يكون الشي التالي .. الخ الزبده ^.^ عجيبه مافهمت انا حاط شرح واضح
-
local x = 0 -- قيمه الي هي 0 x نعطي addEventHandler("onClientGUIClick",guiRoot,function() if source == but then if x == 0 then -- 0 == xاذا كانت قيمة setPedHeadless(localPlayer,true) -- ننقطع الراس x = 1 -- ونخلي القيمة 1 else -- واذا ماكانت القيمة == 0 setPedHeadless(localPlayer,false) -- نركب الراس x = 0 -- ونرجع القيمة 0 end end end)
-
if ( killer ) and ( killer ~= source ) and ( killer == localPlayer ) then
-
تم تعريب ام تي اي من قبلي اهداء لكل الاعضاء مع شرح التركيب
hassan.k.s.a replied to HITLER_AL3NAZI's topic in المساهمات
مشكور على الطرح ان شاء الله يستفيدون منه بالتوفيق -
for i,v in ipairs(getElementsByType("player")) do -- + getPlayerName(v) -- + guiCreateGridList -- + guiGridListAddColumn -- + guiGridListSetItemText