-
Posts
1,363 -
Joined
-
Last visited
Everything posted by Max+
-
guiSetText Required Arguments guiElement: The GUI element you wish to change the text of text: The new text ------
-
-- Like this , GUIEditor_Window = {} addEventHandler ( 'onClientGUIClick', resourceRoot, function ( ) if ( source == GUIEditor.button[1] ) then outputChatBox("Colt-45", 255, 255, 0 ) end end ) ----- bindKey("F6","down", function ( ) if guiGetVisible ( GUIEditor_Window[1] ) == true then guiSetVisible ( GUIEditor_Window[1], false ) showCursor(false) guiSetInputEnabled(false) else guiSetVisible ( GUIEditor_Window[1], true ) showCursor(true) guiSetInputEnabled(true) end end )
-
[quote name=™!>VàLéNTiNô العلامة ذي مالها اي فائدة مجرد علامة يمكن يبي يوضح انه محترف يمكن يبى يوضح شى او رمز يساعده ويعرفه وش اللى مرتبط ببعضه انا شفت برستيج حاطتها بمود شراء الرتب بالساعات والفلوس برستيج كمان يبى يوضح انه محترف ؟ ذي مالها اي شغل بالسكربت ذي علامه " او بصمة ان الكود له " بس حركة كذا تقدر تشيلها . .
-
شوف السكربت ذا , function saveWeaponStats(player) if (not player or not isElement(player)) then return end local account = getPlayerAccount(player) if (account and not isGuestAccount(account)) then local stats = "" for stat=69, 81 do local value = getPedStat(player, stat) stats = stats ..",".. stat ..";".. value end setAccountData(account, "weaponStats", stats) end end function loadWeaponStats(player) if (not player or not isElement(player)) then return end local account = getPlayerAccount(player) if (account and not isGuestAccount(account)) then local statsData = getAccountData(account,"weaponStats") local stats = split(statsData, ",") for k, v in ipairs(stats) do local stat = split(v, ";") setPedStat(player, tonumber(stat[1]), tonumber(stat[2])) end end end addEventHandler("onPlayerQuit",root,function () saveWeaponStats(source) end) addEventHandler("onPlayerLogin",root,function () loadWeaponStats(source) end)
-
no way i fixed it , make sure it's utf 8 without bom in NP++
-
التحديث#1# Panel Control Account ||=|| مود التحكم بالحساب #
Max+ replied to #=|>[A]sMr,\~>'s topic in المساهمات
يعطيك العافية يفتح للكونسل فقط يفضل تغييرها الى ادمن + اضافة تغيير اليوزر والباس عشان لو احد يبي يغير بيانات حسابه مايروح F8 مشوار + اضافة صور + اصوات يكون رائع :] -
guiWindowSetMovable ( GUIEditor.window[1], false )
-
LoginWindow = guiCreateWindow(370, 257, 306, 213, "cP~//Login Panel", false) guiWindowSetMovable(LoginWindow, false) guiWindowSetSizable(LoginWindow, false) userlabel = guiCreateLabel(21, 49, 75, 26, "Username:", false, LoginWindow) local font_0 = guiCreateFont(":font/digital.ttf") guiSetFont(userlabel, font_0) passlabel = guiCreateLabel(21, 93, 75, 26, "Password:", false, LoginWindow) guiSetFont(passlabel, font_0) useredit = guiCreateEdit(86, 49, 164, 30, "", false, LoginWindow) passedit = guiCreateEdit(86, 89, 164, 30, "", false, LoginWindow) registerbutton = guiCreateButton(37, 142, 102, 42, "Register", false, LoginWindow) guiSetFont(registerbutton, font_0) loginbutton = guiCreateButton(158, 142, 102, 42, "Login", false, LoginWindow) guiSetFont(loginbutton, font_0) function ImagenFondo() dxDrawImage(1, 0, 1023, 768, ":image/fondo.png", 0, 0, 0, tocolor(255, 255, 255, 255), false) end addEventHandler("onClientResourceStart",resourceRoot,ImagenFondo ) function Login () local PlayerUser = guiGetText ( useredit ) local PlayerPass = guiGetText ( passedit ) if PlayerUser ~= "" and PlayerPass ~= "" then triggerServerEvent("onRequestLogin",getLocalPlayer(),PlayerUser,PlayerPass) else outputChatBox("#FF9e00Can't Login, if the problem persists contact an admin.",255,255,255,true) end end function Register () local PlayerUser = guiGetText ( useredit ) local PlayerPass = guiGetText ( passedit ) if PlayerUser ~= "" and PlayerPass ~= "" then triggerServerEvent("onRequestRegister",getLocalPlayer(),login,pass,conf) else outputChatBox("#FF9e00Can't Register, if the problem persists contact an admin.",255,255,255,true) end end function xmlCheckFile() local xmlFile = xmlLoadFile("account.xml") if not xmlFile then xmlFile = xmlCreateFile("account.xml","settings") xmlNodeSetAttribute(xmlFile,"save",tostring(false)) xmlNodeSetAttribute(xmlFile,"username","") xmlNodeSetAttribute(xmlFile,"password","") end xmlSaveFile(xmlFile) xmlUnloadFile(xmlFile) end function loadXMLInfo() local xmlFile = xmlLoadFile("account.xml") if xmlFile then local login = xmlNodeGetAttribute(xmlFile,"username") local password = xmlNodeGetAttribute(xmlFile,"password") local save = xmlNodeGetAttribute(xmlFile,"save") if save == "true" then guiSetText(loginEdit,login) guiSetText(passwordEdit,password) guiCheckBoxSetSelected(remember, true) end end xmlSaveFile(xmlFile) xmlUnloadFile(xmlFile) end function saveXmlFile() local xmlFile = xmlLoadFile("account.xml") if not xmlFile then xmlFile = xmlCreateFile("account.xml") end xmlNodeSetAttribute(xmlFile,"username",tostring(guiGetText(loginEdit))) xmlNodeSetAttribute(xmlFile,"password",tostring(guiGetText(passwordEdit))) if (guiCheckBoxGetSelected(remember)) then xmlNodeSetAttribute(xmlFile,"save",tostring(true)) else xmlNodeSetAttribute(xmlFile,"save",tostring(false)) end xmlSaveFile(xmlFile) xmlUnloadFile(xmlFile) end
-
ياذكي لو يكتب مثلا kill او يموت بقنبلته
-
والله ذي مشوار ويبي لها مخمخه اوك شكرا لك ,
-
addEventHandler ( 'onClientGUIClick', resourceRoot, function ( ) if ( source == button ) then local user = guiGetText ( Edit[1] ) local pass = guiGetText ( Edit[2] ) triggerServerEvent ( 'Login', localPlayer, user, pass ) end end )
-
حلو والله بس انا مابي اخزن السيريالات انا عندي لوحة لتفعيل الاعبين في السيرفر عن طريق getElementData setElementData اسوي نفس النظام صح
-
طيب كذا حلو , اسوي اللوحة والاسماء وحدث الدخول بس كيف اجيبهم وادخله داخل اللسته + لو كانو مثلا 20 لاعب يصير باللسته شي يعني على كثر الاعبين ولا لازم اطول اللسته ؟
-
زاحف يقدر يضيفهم بدون SQL ? يعني انا ودي اسوي لوحة وابي الاعبين يضافون مثل ماقال بس مابي SQL كيف ؟ فيه اكثر من طريقة للحفظ ممكن تستخدم مثلاً: XML File Account data كويس , اكاونت دااتا اسهل لي بس طريقة تحديث اللسته عند الخروج وتغيير النك نفس طريقة الجريد لست العادية اسوي لوب + تايمر ؟
-
زاحف يقدر يضيفهم بدون SQL ? يعني انا ودي اسوي لوحة وابي الاعبين يضافون مثل ماقال بس مابي SQL كيف ؟
-
هههههههههههههه والله اني مشفر اليومين ذي نسيت والله مانتبهت ابو شنب هات بوسه
-
والله ماشوف شي بالكود بس تأكد انه سيرفر + تأكد انك بقروب Class يكون كبتل مو سمول + معطي المود صلاحية بقروب الادمن + ذا مختصر شوي Marker = createMarker ( 1326.0477294922, -1067.8569335938, 30.5546875, "cylinder", 1.5, 0, 104, 246 ) createBlip ( 1326.0477294922, -1067.8569335938, 30.5546875, 58 ) addEventHandler("onMarkerHit",Marker, function ( player ) if ( getElementType ( player ) == 'player' ) then local accName = getAccountName ( getPlayerAccount ( player ) ) if isObjectInACLGroup ( "user." .. accName, aclGetGroup ( "Class" ) ) then setElementPosition ( player, 1302.2878417969, -789.06280517578, 1083.9079589844 ) setElementInterior ( player , 5 ) setElementDimension ( player , 12345 ) else outputChatBox("* Classic & Prince House", player, 255, 0 , 0 ) end end end )
-
Required Arguments theVehicle: The vehicle you wish to change the override lights setting of. Change source to veh #
-
---ClientSide GUIEditor = { tab = {}, tabpanel = {}, label = {}, button = {}, combobox = {} } addEventHandler("onClientResourceStart", resourceRoot, function( ) RoomWin = guiCreateWindow(263, 161, 303, 273, "آلمقر آلشخصي", false) guiSetVisible(RoomWin, false ) guiWindowSetSizable(RoomWin, false) GUIEditor.tabpanel[1] = guiCreateTabPanel(10, 26, 283, 237, false, RoomWin) GUIEditor.tab[1] = guiCreateTab("مميزات آلمقر", GUIEditor.tabpanel[1]) GUIEditor.label[1] = guiCreateLabel(136, 0, 28, 33, "*", false, GUIEditor.tab[1]) guiSetFont(GUIEditor.label[1], "sa-gothic") guiLabelSetColor(GUIEditor.label[1], 91, 0, 0) GUIEditor.label[2] = guiCreateLabel(137, 13, 103, 30, "", false, GUIEditor.tab[1]) GUIEditor.label[3] = guiCreateLabel(62, 10, 107, 30, "مميزات المقر", false, GUIEditor.tab[1]) guiSetFont(GUIEditor.label[3], "default-bold-small") guiLabelSetColor(GUIEditor.label[3], 129, 129, 129) GUIEditor.label[4] = guiCreateLabel(226, 42, 14, 44, "", false, GUIEditor.tab[1]) GUIEditor.label[5] = guiCreateLabel(133, 50, 107, 53, "* شوب داخل المقر\n \n * صرافه داخل المقر", false, GUIEditor.tab[1]) guiSetFont(GUIEditor.label[5], "default-bold-small") guiLabelSetColor(GUIEditor.label[5], 129, 129, 129) GUIEditor.label[6] = guiCreateLabel(48, 103, 202, 33, " * تستطيع إضافة 2 من آصدقائك للمقر", false, GUIEditor.tab[1]) guiSetFont(GUIEditor.label[6], "default-bold-small") guiLabelSetColor(GUIEditor.label[6], 129, 129, 129) GUIEditor.label[7] = guiCreateLabel(87, 131, 208, 31, "* ماركر يومي بدآخله 100 ألف", false, GUIEditor.tab[1]) guiSetFont(GUIEditor.label[7], "default-bold-small") guiLabelSetColor(GUIEditor.label[7], 129, 129, 129) GUIEditor.label[8] = guiCreateLabel(-8, 152, 303, 15, "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~", false, GUIEditor.tab[1]) guiSetFont(GUIEditor.label[8], "sa-gothic") guiLabelSetColor(GUIEditor.label[8], 91, 0, 0) GUIEditor.tab[2] = guiCreateTab("طريقة الشراء", GUIEditor.tabpanel[1]) GUIEditor.label[9] = guiCreateLabel(208, 13, 15, 30, "", false, GUIEditor.tab[2]) GUIEditor.label[10] = guiCreateLabel(73, 3, 125, 24, "بطائق شحن ( موبايلي )", false, GUIEditor.tab[2]) guiSetFont(GUIEditor.label[10], "default-bold-small") guiLabelSetColor(GUIEditor.label[10], 129, 129, 129) GUIEditor.combobox[1] = guiCreateComboBox(44, 23, 179, 69, "", false, GUIEditor.tab[2]) guiComboBoxAddItem(GUIEditor.combobox[1], "مقر لمدة شهر = 30 ريال") guiComboBoxAddItem(GUIEditor.combobox[1], "مقر لمدة شهرين = 60 ر يال") GUIEditor.label[11] = guiCreateLabel(0, 95, 288, 15, "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~", false, GUIEditor.tab[2]) guiSetFont(GUIEditor.label[11], "sa-gothic") guiLabelSetColor(GUIEditor.label[11], 91, 0, 0) GUIEditor.combobox[2] = guiCreateComboBox(44, 128, 179, 69, "مقر لمدة شهرين = 15$", false, GUIEditor.tab[2]) guiComboBoxAddItem(GUIEditor.combobox[2], "مقر لمدة شهر = 5$") guiComboBoxAddItem(GUIEditor.combobox[2], "مقر لمدة شهرين = 15$") GUIEditor.label[12] = guiCreateLabel(98, 105, 125, 24, "كاش يو", false, GUIEditor.tab[2]) guiSetFont(GUIEditor.label[12], "default-bold-small") guiLabelSetColor(GUIEditor.label[12], 129, 129, 129) GUIEditor.tab[3] = guiCreateTab("للدفع", GUIEditor.tabpanel[1]) GUIEditor.label[13] = guiCreateLabel(42, 17, 177, 26, "آرسل رقم آلبطاقه الكود لـ الإيميل", false, GUIEditor.tab[3]) GUIEditor.label[14] = guiCreateLabel(66, 47, 193, 28, "[email protected]", false, GUIEditor.tab[3]) GUIEditor.label[15] = guiCreateLabel(32, 70, 212, 32, "إكتب في آلرساله آسمك وآسم حسآبك", false, GUIEditor.tab[3]) GUIEditor.label[16] = guiCreateLabel(0, 106, 295, 15, "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~", false, GUIEditor.tab[3]) guiSetFont(GUIEditor.label[16], "sa-gothic") GUIEditor.button[1] = guiCreateButton(252, 26, 41, 26, "X", false, RoomWin) end ) ----------------------------- زر إغلاق النافذه ------------------------- function onGuiClick ( ) if ( source == GUIEditor.button[1] ) then guiSetVisible(RoomWin, false ) showCursor(false) end end addEventHandler ("onClientGUIClick", getRootElement(), onGuiClick) local Rooms = createMarker ( 1309.81640625, -1367.9173583984, 12.54178237915, "cylinder", 2, 0, 159, 183 ) createBlip ( 1310.1215820313, -1369.0294189453, 13.209540367126, 32 ) -------------------------------- وظيفة الماركر ---------------------------------- addEventHandler('onClientMarkerHit', Rooms , function ( hitPlayer ) if ( hitPlayer == localPlayer ) then guiSetVisible ( RoomWin ,true ) showCursor( true ) guiSetInputEnabled(false) end end )
-
الجبهه ي مآكس الجبهة ياماكس ؟ وضايف لي فنكشن سيرفر مع اكواد كلينت ويقول مجرب ؟ " هجمة مرتدة "