Jump to content

#Mr.Pop

Members
  • Posts

    233
  • Joined

  • Last visited

  • Days Won

    5

Everything posted by #Mr.Pop

  1. مبرمج لكن تساعدني انا شوي مبرمج 10 او %30 لكن بساعدك
  2. اه صح ض نستها مشكور راجعت كثير من مرة ونسيت then تسلم اخي يسلمك #Killer Project #BrosS نفس المشكل مو حابة تضهر اللوحة addEventHandler("onClientResourceStart",getResourceRootElement(getThisResource()),main) function main() GUIEditor.window[1] = guiCreateWindow(209, 126, 632, 359, "Panel Login", false) guiWindowSetSizable(GUIEditor.window[1], false) guiSetAlpha(GUIEditor.window[1], 1.00) -----------------------------|Login|----------------------------- GUIEditor.edit[1] = guiCreateEdit(218, 88, 226, 36, "", false, GUIEditor.window[1]) GUIEditor.label[1] = guiCreateLabel(-103, 6, 87, 30, "", false, GUIEditor.edit[1]) GUIEditor.label[2] = guiCreateLabel(14, 82, 204, 42, "UserName :", false, GUIEditor.window[1]) guiSetFont(GUIEditor.label[2], "sa-header") guiLabelSetVerticalAlign(GUIEditor.label[2], "center") GUIEditor.label[3] = guiCreateLabel(14, 183, 204, 42, "PassWord :", false, GUIEditor.window[1]) guiSetFont(GUIEditor.label[3], "sa-header") guiLabelSetVerticalAlign(GUIEditor.label[3], "center") GUIEditor.edit[2] = guiCreateEdit(218, 189, 226, 36, "", false, GUIEditor.window[1]) GUIEditor.button[3] = guiCreateButton(59, 267, 234, 63, "Register", false, GUIEditor.window[1]) GUIEditor.button[1] = guiCreateButton(355, 267, 234, 63, "Login", false, GUIEditor.window[1]) -----------------------------|Register|----------------------------- GUIEditor.window[2] = guiCreateWindow(841, 126, 435, 359, "Panel Register", false) guiWindowSetSizable(GUIEditor.window[2], false) guiSetAlpha(GUIEditor.window[2], 1.00) GUIEditor.label[3] = guiCreateLabel(6, 47, 204, 36, "UserName :", false, GUIEditor.window[2]) guiSetFont(GUIEditor.label[3], "sa-header") GUIEditor.label[4] = guiCreateLabel(6, 123, 204, 34, "PassWord :", false, GUIEditor.window[2]) guiSetFont(GUIEditor.label[4], "sa-header") GUIEditor.label[5] = guiCreateLabel(6, 203, 210, 33, "Confirm PassWord :", false, GUIEditor.window[2]) guiSetFont(GUIEditor.label[5], "sa-header") GUIEditor.button[4] = guiCreateButton(10, 296, 196, 47, "Back", false, GUIEditor.window[2]) GUIEditor.button[2] = guiCreateButton(216, 296, 196, 47, "Making an account ", false, GUIEditor.window[2]) ------------------------------------------------------------------------------------------------------ ممكن كيف اعطي سكين اي باد سلاح ويطلق ؟
  3. يقولي place = مكان الملف ( انا ختصرتها ) هيك "Error" script failed ..Place.. GM_2/client:210:"end" expected (to close "if" at line 202 ) near "elseif"
  4. addEventHandler("onClientGUIClick", root, function() if source == GUIEditor.button[1] then local userName = guiGetText(GUIEditor.edit[1]) local passWord = guiGetText(GUIEditor.edit[2]) if userName ~= "" and passWord ~= "" then triggerServerEvent("Login-Register", localPlayer, "Login", userName, passWord) guiSetEnabled(GUIEditor.button[1], false) setTimer(function() guiSetEnabled(GUIEditor.button[1], true) end, 3000, 1) end elseif source == GUIEditor.button[2] then local userName = guiGetText(GUIEditor.edit[3]) local passWord1 = guiGetText(GUIEditor.edit[4]) local passWord2 = guiGetText(GUIEditor.edit[5]) if userName ~= "" and passWord1 ~= "" and passWord2 ~= "" then if #passWord1 < 4 then outputChatBox("The Password should be at least 4 characters long.", 255, 100, 0) elseif passWord1 ~= passWord2 then outputChatBox("The password does not match.", 255, 0, 0) else guiSetEnabled(GUIEditor.button[2], false) setTimer(function() guiSetEnabled(GUIEditor.button[2], true) end, 3000, 1) triggerServerEvent("Login-Register", localPlayer, "Register", userName, passWord1) elseif source == GUIEditor.button[3] guiSetVisible(GUIEditor.window[2],true) showCursor(true) end end end end end)
  5. ----------------=====_ Server _=====---------------- ----------------Safe1 function outButDxChat ( text, element, r, g, b, vaule ) exports["guimessages"]:outputServer(element, text, r, g, b) end x, y, size = 970.03174, -1134.88831 , 100, 55 local greenzone = createColRectangle (970.03174, -1134.88831 , 100, 55 ) local greenzonemaparea = createRadarArea ( 970.03174, -1134.88831 , 100, 55,0, 255, 0, 120) function greenzoneEnter ( thePlayer, matchingDimension ) if getElementType( thePlayer ) ~= "player" then return end triggerClientEvent("Safe",localPlayer) toggleControl ( thePlayer, "fire", false ) toggleControl ( thePlayer, "next_weapon", false ) toggleControl ( thePlayer, "previous_weapon", false ) setPedWeaponSlot ( thePlayer, 0 ) toggleControl ( thePlayer, "aim_weapon", false ) toggleControl ( thePlayer, "vehicle_fire", false ) toggleControl ( thePlayer, "vehicle_secondary_fire", false ) end addEventHandler ( "onColShapeHit", greenzone, greenzoneEnter ) function greenzoneExit ( thePlayer, matchingDimension ) if getElementType( thePlayer ) ~= "player" then return end outButDxChat ( "* You Left The Greenzone!", thePlayer, 50, 252, 3 ) toggleControl ( thePlayer, "fire", true ) toggleControl ( thePlayer, "next_weapon", true ) toggleControl ( thePlayer, "previous_weapon", true ) toggleControl ( thePlayer, "aim_weapon", true ) toggleControl ( thePlayer, "vehicle_fire", true ) toggleControl ( thePlayer, "vehicle_secondary_fire", true ) end addEventHandler ( "onColShapeLeave", greenzone, greenzoneExit ) ----------------=====_ Client _=====---------------- addEvent("Safe",true) addEventHandler("Safe",root, function() dxDrawRectangle(1009, 485, 256, 87, tocolor(16, 15, 15, 179), false) dxDrawText("Safe Zoon", 1029, 503, 1245, 558, tocolor(70, 254, 13, 179), 2.00, "pricedown", "left", "top", false, false, false, false, false) end ) انا رجعتها بس مفهمة الامثلة الامثلة كلها حق الشت output
  6. جربت من قبل ومنجح ض شو الحل ؟
  7. الكود ابي حق تيجير سيرفر ال triggerClientEvent وتصحيح كود Server x, y, size = 970.03174, -1134.88831 , 100, 55 local greenzone = createColRectangle (970.03174, -1134.88831 , 100, 55 ) local greenzonemaparea = createRadarArea ( 970.03174, -1134.88831 , 100, 55,0, 255, 0, 120) function greenzoneEnter ( thePlayer, matchingDimension ) if getElementType( thePlayer ) ~= "player" then return end triggerClientEvent(localPlayer,"Safe",localPlayer) Client addEvent("Safe",true) addEventHandler("Safe",root, function() dxDrawRectangle(1009, 485, 256, 87, tocolor(16, 15, 15, 179), false) dxDrawText("Safe Zoon", 1029, 503, 1245, 558, tocolor(70, 254, 13, 179), 2.00, "pricedown", "left", "top", false, false, false, false, false) end )
  8. كيف اسوي تايم الوقت الوقت من هون guiComboBoxAddItem(Cb_Time, "1 Min") كل الاكودا كلينت ------------------------------Gui_1-- addEventHandler("onClientResourceStart", resourceRoot, function() Pl_Ad = guiCreateWindow(321, 29, 600, 454, "Panel_Admin", false) guiWindowSetSizable(Pl_Ad, false) guiGetVisible(Pl_Ad,false) Gr_Player = guiCreateGridList(9, 22, 279, 423, false, Pl_Ad) guiSetVisible (Pl_Ad,false) guiGridListAddColumn(Gr_Player, "Players", 0.5) guiGridListAddColumn(Gr_Player, "Jail", 0.2) guiGridListAddColumn(Gr_Player, "Time", 0.2) guiGridListAddColumn(Gr_Player, "Reason", 0.2) Jail = guiCreateButton(306, 38, 249, 56, "Jail", false, Pl_Ad) guiSetFont(Jail, "default-bold-small") guiSetProperty(Jail, "NormalTextColour", "FFFF0000") UnJail = guiCreateButton(306, 108, 249, 56, "UnJail", false, Pl_Ad) guiSetFont(UnJail, "default-bold-small") guiSetProperty(UnJail, "NormalTextColour", "FF4DFF00") Kick = guiCreateButton(306, 179, 249, 56, "Kick", false, Pl_Ad) guiSetFont(Kick, "default-bold-small") guiSetProperty(Kick, "NormalTextColour", "FF7C1350") Slap = guiCreateButton(306, 249, 249, 56, "Slap", false, Pl_Ad) guiSetFont(Slap, "default-bold-small") guiSetProperty(Slap, "NormalTextColour", "FF000A8E") OADJ = guiCreateButton(306, 325, 249, 56, "OpenAllDoorJail", false, Pl_Ad) guiSetFont(OADJ, "default-bold-small") guiSetProperty(OADJ, "NormalTextColour", "FF8E7100") Exit = guiCreateButton(359, 392, 152, 52, "Exit ", false, Pl_Ad) -----------Gui_2--- Pl_Ad_2 = guiCreateWindow(921, 34, 325, 448, "Jail", false) guiWindowSetSizable(Pl_Ad_2, false) guiSetProperty(Pl_Ad_2, "CaptionColour", "FFDD4800") guiGetVisible(Pl_Ad_2,false) Lb_Reason = guiCreateLabel(10, 23, 86, 19, "~~~ Reason :", false, Pl_Ad_2) guiLabelSetColor(Lb_Reason, 253, 1, 66) Mo_Reason = guiCreateMemo(9, 52, 306, 35, "", false, Pl_Ad_2) Cb_Time = guiCreateComboBox(15, 114, 301, 165, "30 Min", false, Pl_Ad_2) guiComboBoxAddItem(Cb_Time, "1 Min") guiComboBoxAddItem(Cb_Time, "5 Min") guiComboBoxAddItem(Cb_Time, "10 Min") guiComboBoxAddItem(Cb_Time, "15 Min") guiComboBoxAddItem(Cb_Time, "30 Min") guiComboBoxAddItem(Cb_Time, "45 Min") guiComboBoxAddItem(Cb_Time, "60 Min") guiComboBoxAddItem(Cb_Time, "1,5 H") guiComboBoxAddItem(Cb_Time, "2 H") guiSetVisible(Pl_Ad_2,false) Lb_Time = guiCreateLabel(17, 92, 239, 17, "~~~ Time : ", false, Pl_Ad_2) guiLabelSetColor(Lb_Time, 240, 13, 13) Bt_Ok = guiCreateButton(19, 284, 287, 40, "~~~|> Ok <|~~~", false, Pl_Ad_2) guiSetProperty(Bt_Ok, "NormalTextColour", "FF3542E5") Bt_Exit_2 = guiCreateButton(19, 361, 287, 40, "~~~|> Exit <|~~~", false, Pl_Ad_2) guiSetProperty(Bt_Exit_2, "NormalTextColour", "FF727272") end ) ----- Function -------------------------------------------------- bindKey("O", "down",function() guiSetVisible(Pl_Ad, not guiGetVisible (Pl_Ad) ) showCursor ( guiGetVisible (Pl_Ad) ) putPlayers() end) ----------------------GridList_Player-------------------- function putPlayers() guiGridListClear(Gr_Player) for i,player in ipairs(getElementsByType("player")) do local row = guiGridListAddRow(Gr_Player) guiGridListSetItemText(Gr_Player,row,1,getPlayerName(player),false,false) guiGridListGetSelectedItem(Gr_Player) if ( source == Gr_Player )then guiGridListSetItemColor(Gr_Player,row, 1, 0, 255, 0) end end end ------------------------------Exit---------- addEventHandler("onClientGUIClick",root, function () if source == Exit then guiSetVisible(Pl_Ad,false) showCursor(false) guiSetVisible(Pl_Ad_2,false) end end ) ----------------------------------Jail----- addEventHandler("onClientGUIClick",root, function () if source == Jail then guiSetVisible(Pl_Ad_2,true) showCursor(true) end end ) ---------------------------------Bt_Exit_2------ addEventHandler("onClientGUIClick",root, function () if source == Bt_Exit_2 then guiSetVisible(Pl_Ad_2,false) showCursor(true) end end ) --------------------------------------------------------- addEventHandler("onClientGUIClick",resourceRoot, function () if source == Bt_Ok then if ( guiGridListGetSelectedItem (Gr_Player ) ~= -1 ) then local Bt_Ok = guiGridListGetItemText ( Gr_Player , guiGridListGetSelectedItem ( Gr_Player ) , 1 ) triggerServerEvent("Jail",localPlayer) end end end) addEventHandler("onClientGUIClick",resourceRoot, function () if source == UnJail then if ( guiGridListGetSelectedItem (Gr_Player ) ~= -1 ) then local UnJail = guiGridListGetItemText ( Gr_Player , guiGridListGetSelectedItem ( Gr_Player ) , 1 ) triggerServerEvent("UnJail",localPlayer) end end end) addEventHandler("onClientGUIClick",resourceRoot, function () if source == Slap then local Slap = guiGridListGetItemText(Gr_Player,guiGridListGetSelectedItem(Gr_Player),1) if Slap ~= -1 and Slap ~= false and Slap ~= nil then local Slap = getPlayerFromName(Slap) triggerServerEvent("Slap",localPlayer) end end end) addEventHandler("onClientGUIClick",resourceRoot, function () if source == Kick then if ( guiGridListGetSelectedItem (Gr_Player ) ~= -1 ) then local Kick = guiGridListGetItemText ( Gr_Player , guiGridListGetSelectedItem ( Gr_Player ) , 1 ) triggerServerEvent("Kick",localPlayer) end end end) سيرفر local Object = createObject(8661,182.19999694824,155.10000610352,1002) local Object2 = createObject(3095,195.80000305176,164,1006.200012207,0,90,90) local Object3 = createObject(3095,195.60000610352,164.80000305176,1006.200012207,0,90,0) local Object1 = createObject(3095,191.39999389648,164.80000305176,1006.200012207,0,90,0) setElementInterior(Object,3) setElementInterior(Object2,3) setElementInterior(Object3,3) setElementInterior(Object1,3) addCommandHandler("Console", function(player) if isObjectInACLGroup("user."..getAccountName(getPlayerAccount(player)),aclGetGroup("Console")) then triggerClientEvent(player, "OpenAdminManager", player) end end) addEvent("Slap",true) addEventHandler("Slap",root, function () killPed(source) end) addEvent("Jail",true) addEventHandler("Jail",root, function () setElementPosition(source,193.89998 ,161.28836 ,1003.00000) setElementInterior(source,3) end) addEvent("UnJail",true) addEventHandler("UnJail",root, function () setElementPosition(source,1522.00610, -1701.17517, 13.54688) setElementInterior(source,0) end) addEvent("Kick",true) addEventHandler("Kick",root, function () kickPlayer ( source, "Kick By Console" ) end) اعطوني للفكشن بس اجرب الوو ؟ هيك ؟ guiComboBoxSetSelected
  9. اه نجح خلاص فهمتك والفكشن الاول ؟ حق الانتقال خلاص مشكورين شباب حلت المشكل اسف اذا اتعبتكم مساعدة انا الحين سويت الانتقال ابي لم يكتب في الخانة المدة و السبب هاهي لوحة Gui Pl_Ad_2 = guiCreateWindow(921, 34, 325, 448, "Jail", false) guiWindowSetSizable(Pl_Ad_2, false) guiSetProperty(Pl_Ad_2, "CaptionColour", "FFDD4800") guiGetVisible(Pl_Ad_2,false) Lb_Reason = guiCreateLabel(10, 23, 86, 19, "~~~ Reason :", false, Pl_Ad_2) guiLabelSetColor(Lb_Reason, 253, 1, 66) Mo_Reason = guiCreateMemo(9, 52, 306, 35, "", false, Pl_Ad_2) Cb_Time = guiCreateComboBox(15, 114, 301, 165, "30 Min", false, Pl_Ad_2) guiComboBoxAddItem(Cb_Time, "1 Min") guiComboBoxAddItem(Cb_Time, "5 Min") guiComboBoxAddItem(Cb_Time, "10 Min") guiComboBoxAddItem(Cb_Time, "15 Min") guiComboBoxAddItem(Cb_Time, "30 Min") guiComboBoxAddItem(Cb_Time, "45 Min") guiComboBoxAddItem(Cb_Time, "60 Min") guiComboBoxAddItem(Cb_Time, "1,5 H") guiComboBoxAddItem(Cb_Time, "2 H") guiSetVisible(Pl_Ad_2,false) Lb_Time = guiCreateLabel(17, 92, 239, 17, "~~~ Time : ", false, Pl_Ad_2) guiLabelSetColor(Lb_Time, 240, 13, 13) Bt_Ok = guiCreateButton(19, 284, 287, 40, "~~~|> Ok <|~~~", false, Pl_Ad_2) guiSetProperty(Bt_Ok, "NormalTextColour", "FF3542E5") Bt_Exit_2 = guiCreateButton(19, 361, 287, 40, "~~~|> Exit <|~~~", false, Pl_Ad_2) guiSetProperty(Bt_Exit_2, "NormalTextColour", "FF727272") end ) و Function Client addEventHandler("onClientGUIClick",resourceRoot, function () if source == Bt_Ok then if ( guiGridListGetSelectedItem (Gr_Player ) ~= -1 ) then local Bt_Ok = guiGridListGetItemText ( Gr_Player , guiGridListGetSelectedItem ( Gr_Player ) , 1 ) triggerServerEvent("Jail",localPlayer) end end end) Function Server addEvent("Jail",true) addEventHandler("Jail",root, function () setElementPosition(source,193.89998 ,161.28836 ,1003.00000) setElementInterior(source,3) end) This Function & Gui
  10. لوحة مثل حق الادمن لكن فيه بوتن سجن
  11. addEventHandler("onClientGUIClick",resourceRoot, function () if ( guiGridListGetSelectedItem (Gr_Player ) ~= -1 ) then local Bt_Ok = guiGridListGetItemText ( Gr_Player , guiGridListGetSelectedItem ( Gr_Player ) , -1 ) setElementPosition(source,150.49068, -47.33965, 12.16697) end end) -----------Slab addEventHandler("onClientGUIClick",resourceRoot, function () local Slap = guiGridListGetItemText(Gr_Player,guiGridListGetSelectedItem(Gr_Player),1) if Slap ~= -1 and Slap ~= false and Slap ~= nil then local Slap = getPlayerFromName(Slap) triggerServerEvent("Slap",localPlayer) end end) لم اضغط اي زر في لوحة يموت لان عامل فكشن حق زر سلاب لكن هو يموت في كل الازرا
  12. او مشكور كيف اعملو لم اللعب يدخل للكول ميقدر بمعنى مثل في حاجز
  13. اعطيني سكايبك ؟
  14. اوك اسف ان شاء الله لكن شوف local Reder = createRadarArea(2985.03662 ,416.0650,55,260,0,0,255) local Reder1 = createColRectangle(2985.03662 ,416.0650,55,260) addEventHandler("onColShapeHit",Reder1, function (hitPlayer) setPlayerWantedLevel(hitPlayer,6) outputChatBox (getPlayerName ( hitPlayer ) "لقد دخلة منطقة حكومية ") end end)
  15. ممكن مثال يا غالي
  16. مشكور يا غالي موفق ان شاء الله
  17. السلا م عليكم كيفكم شباب ان شاء الله بخير ابي كود لم اللعب يدخل الى colsh.. او المربع او مثل منقطة الاحتلال المهم بيعطوه نجوم مو جوائز ذذ رمضان كريم وافطار لذيذ سلاااام
  18. مشكور راح بجرب يا غالي + Skype You ?
  19. Bato6 = createObject(هنا الاوبجيكت ...) Mar = createMarker(هنا المركر .... ) addEventHandler("OnMarkerHit",Mar, function () if source == Mar moveObject(Bato6,....) end end) انا مو بحاسوبي لكن انا حافضو شوف شو صار ؟
  20. عملت هيك لكن لم ادخل المركر يتحرك الاوبجيكت قبل مابضغط+ يقولي باد اغقيمو
  21. ابي كود لماللعب يدخل المركر يضغط على زر مثل Tab يتحرك الاوبجيكت لكل مو لي فقط لزم سيرفر بس انا تعقدة معي ان شاء الله تفيدوني
  22. triggerServerEvent دا بس شو فيدة باقي الكل عرفتها + ممكن مثال
×
×
  • Create New...