
Mr.king
Members-
Posts
113 -
Joined
-
Last visited
Everything posted by Mr.king
-
طيب كذا صح GUIEditor_Window[1] = guiCreateWindow(0.1953,0.2122,0.5947,0.6328,"",true) GUIEditor_Edit[1] = guiCreateEdit(321,246,279,63,"اسمك",false,GUIEditor_Window[1]) GUIEditor_Edit[2] = guiCreateEdit(321,315,248,63,"[email protected]",false,GUIEditor_Window[1]) guiEditSetReadOnly(GUIEditor_Edit[2],true) GUIEditor_Edit[3] = guiCreateEdit(16,244,280,63,"ايميلك",false,GUIEditor_Window[1]) GUIEditor_Edit[4] = guiCreateEdit(15,316,280,63,"رقم البطاقة",false,GUIEditor_Window[1]) GUIEditor_Label[1] = guiCreateLabel(249,38,307,42,"طريقة شراء ",false,GUIEditor_Window[1]) GUIEditor_Label[2] = guiCreateLabel(142,82,307,42,"يجب عليك ادخال اسمك وايميلك ورقم البطاقة",false,GUIEditor_Window[1]) guiLabelSetHorizontalAlign(GUIEditor_Label[2],"center",false) GUIEditor_Label[3] = guiCreateLabel(142,123,307,42,"يجب ان تكون معك بطاقة اس تي سي 10 ريال ",false,GUIEditor_Window[1]) guiLabelSetHorizontalAlign(GUIEditor_Label[3],"center",false) GUIEditor_Label[4] = guiCreateLabel(142,160,307,42,"سوف تصل الى ادارة السيرفر وجب عليك ان تنتظر 24 ساعة",false,GUIEditor_Window[1]) guiLabelSetHorizontalAlign(GUIEditor_Label[4],"center",false) GUIEditor_Button[1] = guiCreateButton(236,407,139,68,"ارسال",false,GUIEditor_Window[1]) guiSetVisible(GUIEditor_Window[1], false) addCommandHandler("h", function() guiSetVisible(GUIEditor_Window[1], true) showCursor(true) guiSetInputEnabled ( true) codecaptcha = generateCaptcha() end) addEventHandler("onClientGUIClick", getRootElement(), function() if (source == send)then local mail_subject = guiGetText(GUIEditor_Edit[1]) local mail_message = guiGetText(GUIEditor_Edit[4]) local mail_target = guiGetText(GUIEditor_Edit[3]) local player = getLocalPlayer() if (codecaptcha == GUIEditor_Button[1])then triggerServerEvent("sendMessage", getLocalPlayer(), player, mail_target, mail_subject, mail_message) cleanInfos() else outputChatBox("Captcha are incorrect !") end end end) function cleanInfos() guiSetText(GUIEditor_Edit[1], "") guiSetText(GUIEditor_Edit[4], "") guiSetText(GUIEditor_Edit[1], "") guiSetVisible(window, false) showCursor(false) guiSetInputEnabled ( false) end سيرفر --[[ Script name: Mail Client Author: FatalTerror Clan: AMG | Awesome Mapping and Gaming Server Side ]] function mail_return(result, player) if result == true then outputChatBox("#ABCDEF* You mail are successfully sended !", player, 255, 255, 255, true) else outputChatBox("Sorry, but we can't send your mail. Reasons: Internal error or PHP error.", player, 255, 255, 255, true) end end addEvent("sendMessage", true) addEventHandler("sendMessage", getRootElement(), function(player, mail_target, mail_subject, mail_message) callRemote ( "http://www.hotmail.com", mail_return, player, mail_target, mail_subject, mail_message ) end)
-
سلام شباب شوفو الصورة ذي ابي زي ما مكتوب في يعني يحط اسمه وايميله ورقم البطاقة بعدين الاسم والايميل والبطاقة كل ترسل لئيميلي يعني رح تجي كلها في رسالة وسلام شباب
-
GUIEditor_Window = {} GUIEditor_TabPanel = {} GUIEditor_Tab = {} GUIEditor_Button = {} GUIEditor_Checkbox = {} GUIEditor_Label = {} GUIEditor_Image = {} GUIEditor_Window[1] = guiCreateWindow(0.1855,0.194,0.6631,0.5859,"لوحة ",true) GUIEditor_TabPanel[1] = guiCreateTabPanel(9,24,661,417,false,GUIEditor_Window[1]) GUIEditor_Tab[1] = guiCreateTab("",GUIEditor_TabPanel[1]) GUIEditor_Image[1] = guiCreateStaticImage(2,3,656,308,"sr/ls.png",false,GUIEditor_Tab[1]) GUIEditor_Button[1] = guiCreateButton(250,334,109,47,"",false,GUIEditor_Tab[1]) GUIEditor_Checkbox[1] = guiCreateCheckBox(64,350,14,14,"",false,false,GUIEditor_Tab[1]) GUIEditor_Label[1] = guiCreateLabel(90,347,152,31,"",false,GUIEditor_Tab[1]) guiLabelSetColor(GUIEditor_Label[1],255,255,2) guiSetFont(GUIEditor_Label[1],"default-bold-small") GUIEditor_Tab[2] = guiCreateTab("",GUIEditor_TabPanel[1]) GUIEditor_Image[2] = guiCreateStaticImage(4,3,654,315,"sr/ls.png",false,GUIEditor_Tab[2]) GUIEditor_Button[2] = guiCreateButton(256,333,118,49,"",false,GUIEditor_Tab[2]) GUIEditor_Checkbox[2] = guiCreateCheckBox(73,348,14,16,"",false,false,GUIEditor_Tab[2]) GUIEditor_Label[2] = guiCreateLabel(29,-174,5,5,"",false,GUIEditor_Checkbox[2]) GUIEditor_Label[3] = guiCreateLabel(90,347,152,31,"",false,GUIEditor_Tab[1]) guiLabelSetColor(GUIEditor_Label[3],255,255,2) guiSetFont(GUIEditor_Label[3],"default-bold-small") GUIEditor_Tab[3] = guiCreateTab("",GUIEditor_TabPanel[1]) GUIEditor_Image[3] = guiCreateStaticImage(5,4,651,315,"sr/ls.png",false,GUIEditor_Tab[3]) GUIEditor_Button[3] = guiCreateButton(261,332,119,51,"",false,GUIEditor_Tab[3]) GUIEditor_Checkbox[3] = guiCreateCheckBox(61,345,15,15,"",false,false,GUIEditor_Tab[3]) GUIEditor_Label[4] = guiCreateLabel(86,342,118,33,"1",false,GUIEditor_Tab[3]) guiLabelSetColor(GUIEditor_Label[4],255,255,2) guiSetFont(GUIEditor_Label[4],"default-bold-small") -------------------------------------- addEventHandler ( "onClientResourceStart", resourceRoot, function () guiSetVisible ( GUIEditor_Window[1] ,true ) showCursor ( true ) guiSetEnabled(GUIEditor_Button[1],false) guiSetEnabled(GUIEditor_Button[2],false) guiSetEnabled(GUIEditor_Button[3],false) end ) -------------------------------------- addEventHandler("onClientGUIClick",root, function () if ( source == GUIEditor_Checkbox[1] ) then if guiCheckBoxGetSelected(GUIEditor_Checkbox[1]) then guiSetEnabled(GUIEditor_Button[1],true) else guiSetEnabled(GUIEditor_Button[1],false) elseif ( source == GUIEditor_Checkbox[2] ) then if guiCheckBoxGetSelected(GUIEditor_Checkbox[2]) then guiSetEnabled(GUIEditor_Button[2],true) else guiSetEnabled(GUIEditor_Button[2],false) elseif ( source == GUIEditor_Checkbox[3] ) then if guiCheckBoxGetSelected(GUIEditor_Checkbox[3]) then guiSetEnabled(GUIEditor_Button[3],true) else guiSetEnabled(GUIEditor_Button[3],false) elseif ( source == GUIEditor_Button[3] ) then guiSetVisible ( GUIEditor_Window[1] ,false ) showCursor ( false ) elseif ( source == GUIEditor_Button[2] ) then guiSetVisible ( GUIEditor_Window[1] ,false ) showCursor ( false ) elseif ( source == GUIEditor_Button[1] ) then guiSetVisible ( GUIEditor_Window[1] ,false ) showCursor ( false ) end end end )
-
طلعت مشكلة جديدة انا عندي ثلاث علامات وثلاث ازرار كل رز وعلامة في تاب والازرار تقفل الوحة وانا خليتها لما يدخل الاعب
-
شكرا شباب الكود شغال %100
-
شباب انا عندي checkbox في النافذة لو علمت عليه صح مداك تضغط زر لو ماعلمت عليه يسير الزر مقفول ظاهر بس مقفول يعني ما يمداك تضغط عليه GUIEditor_Window = {} GUIEditor_TabPanel = {} GUIEditor_Tab = {} GUIEditor_Button = {} GUIEditor_Checkbox = {} GUIEditor_Image = {} GUIEditor_Window[1] = guiCreateWindow(0.1387,0.1693,0.7207,0.6589,"",true) GUIEditor_TabPanel[1] = guiCreateTabPanel(9,21,720,476,false,GUIEditor_Window[1]) GUIEditor_Tab[1] = guiCreateTab("؟",GUIEditor_TabPanel[1]) GUIEditor_Image[1] = guiCreateStaticImage(5,6,708,382,"images/tarkep.png",false,GUIEditor_Tab[1]) GUIEditor_Button[1] = guiCreateButton(275,397,158,45,"الزر",false,GUIEditor_Tab[1]) GUIEditor_Checkbox[1] = guiCreateCheckBox(97,400,139,46,"العلامة",false,false,GUIEditor_Tab[1]) يعني اول مايبدا الزر يكون مقفول لو عملت صح ينفتح الزر
-
عشان لما انا حطيت التيميات في ذاك المود حق النافذة لو مت وانا في الحرب يرجعني في الحرب بعدين يوديني في البداية فهمت يعني بلاي يوديك البداية لما انا اموت بلاي يوديني البداية وانا المفروض اكمل الحرب فهمت ابيك تعدله
-
اناحطيت كود لما يموت يروح مكان المهم بس انا نقلت كد السباون حق التيمات في ملف بلاي على ملف brobh.lua صار زي كذا بس ميبي يشتغل addEventHandler("onResourceStart", resourceRoot, function() resetMapInfo() for i,player in ipairs(getElementsByType("player")) do spawn(player) end end ) function spawn(player) local team = getPlayerTeam (player) if ( team and getTeamName (team) == ("br")) then spawnPlayer ( player, 0, 0, 3) elseif ( team and getTeamName (team) == ("bt")) then spawnPlayer ( player, 0, 0, 3) else if not isElement(player) then return end repeat until spawnPlayer ( player, -3363.2329101563, -3000.2883300781, 106.02993011475, 180, 46, 0, 0) fadeCamera(player, true) setCameraTarget(player, player) showChat(player, true) end addEventHandler("onPlayerJoin", root, function() spawn(source) end ) addEventHandler("onPlayerWasted", root, function() setTimer(spawn, 1800, 1, source) end ) عدله لاهنت
-
ليه حاط كم فنكشن خذ ذا الكود جربة GUIEditor_Window = {} GUIEditor_Button = {} GUIEditor_Label = {} GUIEditor_Image = {} GUIEditor_Window[1] = guiCreateWindow(235,62,356,296,"sond by yaZan",false) GUIEditor_Button[1] = guiCreateButton(38,93,92,42,"B",false,GUIEditor_Window[1]) GUIEditor_Button[2] = guiCreateButton(232,95,92,42,"A",false,GUIEditor_Window[1]) GUIEditor_Button[3] = guiCreateButton(35,174,92,42,"D",false,GUIEditor_Window[1]) GUIEditor_Button[4] = guiCreateButton(236,180,92,42,"C",false,GUIEditor_Window[1]) GUIEditor_Button[5] = guiCreateButton(134,141,100,38,"PLAY\STOP",false,GUIEditor_Window[1]) GUIEditor_Label[1] = guiCreateLabel(9,258,121,32,"by yaZan",false,GUIEditor_Window[1]) GUIEditor_Image[1] = guiCreateStaticImage(9,19,338,73,"yazan/jo.png",false,GUIEditor_Window[1]) function open() guiSetVisible(GUIEditor_Window[1],not guiGetVisible(GUIEditor_Window[1])) showCursor(guiGetVisible(GUIEditor_Window[1])) guiSetInputEnabled(guiGetVisible(GUIEditor_Window[1])) end bindKey("F5","down",open) isOn = true addEventHandler( "onClientGUIClick", function () if ( source == GUIEditor_Button[1] ) then local sound = playSound("sounds/A.mp3") elseif ( source == GUIEditor_Button[2] ) then local sound = playSound("sounds/B.mp3") elseif ( source == GUIEditor_Button[3] ) then local sound = playSound("sounds/C.mp3") elseif ( source == GUIEditor_Button[4] ) then local sound = playSound("sounds/D.mp3") elseif ( source == GUIEditor_Button[5 ) then local sound = playSound or stopSound end end)
-
ليه حاط كم فنكشن خذ ذا الكود جربة GUIEditor_Window = {} GUIEditor_Button = {} GUIEditor_Label = {} GUIEditor_Image = {} GUIEditor_Window[1] = guiCreateWindow(235,62,356,296,"sond by yaZan",false) GUIEditor_Button[1] = guiCreateButton(38,93,92,42,"B",false,GUIEditor_Window[1]) GUIEditor_Button[2] = guiCreateButton(232,95,92,42,"A",false,GUIEditor_Window[1]) GUIEditor_Button[3] = guiCreateButton(35,174,92,42,"D",false,GUIEditor_Window[1]) GUIEditor_Button[4] = guiCreateButton(236,180,92,42,"C",false,GUIEditor_Window[1]) GUIEditor_Button[5] = guiCreateButton(134,141,100,38,"PLAY\STOP",false,GUIEditor_Window[1]) GUIEditor_Label[1] = guiCreateLabel(9,258,121,32,"by yaZan",false,GUIEditor_Window[1]) GUIEditor_Image[1] = guiCreateStaticImage(9,19,338,73,"yazan/jo.png",false,GUIEditor_Window[1]) function open() guiSetVisible(GUIEditor_Window[1],not guiGetVisible(GUIEditor_Window[1])) showCursor(guiGetVisible(GUIEditor_Window[1])) guiSetInputEnabled(guiGetVisible(GUIEditor_Window[1])) end bindKey("F5","down",open) isOn = true addEventHandler( "onClientGUIClick", function () if ( source == GUIEditor_Button[1] ) then local sound = playSound("sounds/A.mp3") if ( source == GUIEditor_Button[2] ) then local sound = playSound("sounds/B.mp3") if ( source == GUIEditor_Button[3] ) then local sound = playSound("sounds/C.mp3") if ( source == GUIEditor_Button[4] ) then local sound = playSound("sounds/D.mp3") if ( source == GUIEditor_Button[5 ) then local sound = playSound or stopSound end end)
-
تقذر تخليها لتيمين كل تيم له محل
-
بس انانسيت حاجة لو حد خش في الحرب لو مات ابيه يرجع من نفسه محل التيم ويظل في نفس العالم بس عطني مثال
-
صدقت والله انك كفو تسلللللللللللللللللللللللللللم على كل الي سويته والله انك كنق
-
انت خربط الكود لازم بعد triggerServerEvent end مو بعد الوظيفة كذا كلها تجي مرة وتخرب النافذة انت حط الصح
-
وين بالضبط احط end في اي سطر
-
طيب ممكن تصححه لي وتعطيني اياه ويارب يوفقك في الدنيا والاخرة
-
طيب انا عدلت فيها بس المشكلة صارت ماتشتغل انا ابيها لما تضغط الصورة حقت الهجولة هذا مافيه شيء بس انا حطيت لو ضغت على حرب تجيك لوحة ثانية عشان تختار تيم واللوحة السابقة تختفي ياريت حد يعدله GUIEditor_Window = {} GUIEditor_Button = {} GUIEditor_Label = {} GUIEditor_Image = {} function guiCreateWindow( x2, y2, width2, height2, titleBarText2, relative2 ) local mainBackground = guiCreateStaticImage ( x2, y2, width2, height2, "s/3.png", relative2 ) guiSetFont ( mainBackgroundLabel, newFont ) guiSetEnabled ( mainBackgroundLabel, false ) return mainBackground end GUIEditor_Window[1] = guiCreateWindow(0,0.0013,1,1,"",true) guiSetAlpha(GUIEditor_Window[1],1) GUIEditor_Image[1] = guiCreateStaticImage(121,188,297,302,"s/1.png",false,GUIEditor_Window[1]) GUIEditor_Image[2] = guiCreateStaticImage(577,188,335,304,"s/2.png",false,GUIEditor_Window[1]) GUIEditor_Label[1] = guiCreateLabel(732,513,275,72,"الحرب",false,GUIEditor_Window[1]) guiSetAlpha(GUIEditor_Label[1],1) guiLabelSetColor(GUIEditor_Label[1],255,65,170) guiSetFont(GUIEditor_Label[1],"default-bold-small") GUIEditor_Label[2] = guiCreateLabel(243,521,379,79,"الهجولة",false,GUIEditor_Window[1]) guiLabelSetColor(GUIEditor_Label[2],36,76,255) guiSetFont(GUIEditor_Label[2],"default-bold-small") ---------------------------------------------------- GUIEditor_Window[2] = guiCreateWindow(0,0.0013,1,1,,"",true) GUIEditor_Button[1] = guiCreateButton(163,200,187,178,"1",false,GUIEditor_Window[1]) guiSetFont(GUIEditor_Button[1],"sa-gothic") GUIEditor_Button[2] = guiCreateButton(630,200,187,178,"2",false,GUIEditor_Window[1]) guiSetFont(GUIEditor_Button[2],"sa-gothic") GUIEditor_Label[1] = guiCreateLabel(696,416,328,65,"الفريق2",false,GUIEditor_Window[1]) guiLabelSetColor(GUIEditor_Label[1],3,255,4) guiSetFont(GUIEditor_Label[1],"default-bold-small") GUIEditor_Label[2] = guiCreateLabel(215,422,145,56,"الفريق 1",false,GUIEditor_Window[1]) guiLabelSetColor(GUIEditor_Label[2],255,23,170) guiSetFont(GUIEditor_Label[2],"default-bold-small") guiSetVisible ( GUIEditor_Window[2] ,false ) ------------------------------------- addEventHandler ( "onPlayerJoin", root, function () guiSetVisible ( GUIEditor_Window[1] ,true ) showCursor ( true ) end ) ------------------------------------- addEventHandler("onClientGUIClick",root, function () if ( source == GUIEditor_Image[1] ) then triggerServerEvent("onClick",localPlayer) guiSetVisible ( GUIEditor_Window[1] ,false ) showCursor ( false ) guiSetInputEnabled( false ) end if ( source == GUIEditor_Button[2] ) then guiSetVisible ( GUIEditor_Window[2] ,false ) triggerServerEvent("onClick2",localPlayer) end if ( source == GUIEditor_Button[1] ) then guiSetVisible ( GUIEditor_Window[2] ,false ) triggerServerEvent("onClick1",localPlayer) end if ( source == GUIEditor_Image[2] ) then guiSetVisible ( GUIEditor_Window[1] ,false ) guiSetVisible ( GUIEditor_Window[2] ,true ) end )
-
كل شيء صح اللاعب لما يدخل تجيه اللوحة بس الماوس مهو ظاهر ليش؟؟هل المشكلة من بلاي او فري روم؟؟
-
ياخي انا اقلك لما يخش الاعب مو لما يبدء المود لو اي لاعب دخل تجيه الوحة له بس مو للبقية او لما يبدا المود