Jump to content

iMr.WiFi..!

Members
  • Posts

    2,382
  • Joined

  • Last visited

  • Days Won

    57

Everything posted by iMr.WiFi..!

  1. شوف الارقمنتات وبتفهم بنسبة سوي الفونت ب dxCreateFont وسميه باسم وحطه الاسم في 10 ارقمنت
  2. --Client addEventHandler ( "onClientGUIClick", resourceRoot,function () if ( source == GUIEditor.button[1] ) then local Sdit = guiGetText(GUIEditor.edit[1]) if Sdit ~= '' then triggerServerEvent("Out", localPlayer, Sdit) setTimer(function () guiSetText(GUIEditor.edit[1], " ") end,600,1) elseif Sdit == '' then triggerServerEvent("SsS", localPlayer) end end end) --Server addEvent("Out",true) addEventHandler("Out", root, function ( msg ) outputChatBox(" "..msg.." ",root, 255, 0, 0,true) end ) addEvent("SsS",true) addEventHandler("SsS", root, function ( ) outputChatBox(" ",root, 255, 0, 0,true) end )
  3. جرب ردي + اطرح الاكواد الكاملة /:
  4. addEventHandler ( "onClientGUIClick", resourceRoot,function () if ( source == GUIEditor.button[1] ) then local Sdit = guiGetText(GUIEditor.edit[1]) if Sdit ~= '' then triggerServerEvent("Out", localPlayer, Sdit) setTimer(function () guiSetText(GUIEditor.edit[1], " ") end,600,1) end end end) [/lua] s addEvent("Out",true) addEventHandler("Out", root, function ( msg ) outputChatBox" "..msg.." ",root, 255, 0, 0,true) end )
  5. كلنت addEventHandler ( "onClientGUIClick", resourceRoot,function () local Sdit = guiGetText(GUIEditor.edit[1]) if ( source == GUIEditor.button[1] ) then if Sdit ~= '' then triggerServerEvent("Out", localPlayer, Sdit) guiSetText(GUIEditor.edit[1], " ") end end end) سرفر addEvent("Out",true) addEventHandler("Out", root, function ( Sdit ) outputChatBox(" "..Sdit.." ", 255, 0, 0) end )
  6. addEventHandler ( "onClientGUIClick", resourceRoot,function () local Sdit = guiGetText(edit) if ( source == GUIEditor.button[1] ) then if Sdit ~= ' ' then triggerServerEvent("Out", localPlayer, Sdit) setTimer ( guiSetText, 1000, 1, edit, "" ) end end end) server addEvent("Out",true) addEventHandler("Out", root, function ( Sdit ) outputChatBox(" "..Sdit.." ", 255, 0, 0) end )
  7. -- احذف ال usefull function -- ثم سوي تالي -- Client bindKey("k","down", function () guiSetVisible(supportsystem, not guiGetVisible(supportsystem)) showCursor(guiSetVisible(supportsystem)) guiSetInputEnabled(guiGetVisible(supportsystem)) triggerServerEvent("IsSupp", localPlayer) end ) addEvent("Yes",true) addEventHandler("Yes", root, function () guiSetEnabled(aMessagesForm,true) end ) سيرفر addEvent("isSupp",true) addEventHandler("isSupp",root, function ( ) if isObjectInACLGroup ("user."..getAccountName ( getPlayerAccount ( source ) ),aclGetGroup ("support") ) then triggerClientEvent ( source,"Yes",source ) end end ); -- لم تتم التجربةة
  8. كلينت ---------------------- -- Setting ---------------------- local Admin = { {"VIP","1500"}, {"LVL1","4000"}, {"LVL2","6000"}, {"LVL3","8000"}, {"LVL4","11000"}, {"LVL5","16000"}, {"TheGamer","20000"}, {"TheStronger","25000"}, {"TheKiller","32000"}, {"Professional","43000"}, {"Admin","110000"}, } ---------------------- -- Setting ---------------------- GUIEditor = { gridlist = {}, staticimage = {}, button = {}, label = {} } GUIEditor.staticimage[1] = guiCreateStaticImage(236, 113, 308, 379, "Back.png", false) guiSetVisible(GUIEditor.staticimage[1], false) guiWindowSetSizable(GUIEditor.staticimage[1], false) guiWindowSetMovable(GUIEditor.staticimage[1], true) GUIEditor.label[1] = guiCreateLabel(11, 59, 159, 18, "rank system :", false, GUIEditor.staticimage[1]) guiSetFont(GUIEditor.label[1], "clear-normal") guiLabelSetColor(GUIEditor.label[1], math.random(0,255),math.random(0,255),math.random(0,255)) GUIEditor.label[2] = guiCreateLabel(28, 10, 252, 17, "Welcome To Z.P server", false, GUIEditor.staticimage[1]) guiSetFont(GUIEditor.label[2], "clear-normal") guiLabelSetColor(GUIEditor.label[2], 255, 153, 0) GUIEditor.label[3] = guiCreateLabel(11, 345, 186, 16, "Buy Rank By : Michael", false, GUIEditor.staticimage[1]) guiSetFont(GUIEditor.label[3], "clear-normal") guiLabelSetColor(GUIEditor.label[3], math.random(0,255),math.random(0,255),math.random(0,255)) GUIEditor.button[1] = guiCreateButton(202, 335, 96, 39, "Buy Rank", false, GUIEditor.staticimage[1]) guiSetFont(GUIEditor.button[1], "clear-normal") guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFFF9900") GUIEditor.gridlist[1] = guiCreateGridList(11, 83, 287, 242, false, GUIEditor.staticimage[1]) guiGridListAddColumn(GUIEditor.gridlist[1], "Group", 0.7) guiGridListAddColumn(GUIEditor.gridlist[1], "Zombie kills", 0.3) guiSetVisible( GUIEditor.staticimage[1] , false ) for k,v in ipairs ( Admin ) do row = guiGridListAddRow(GUIEditor.gridlist[1]); guiGridListSetItemText(GUIEditor.gridlist[1],row,1,v[1],false,false); guiGridListSetItemText(GUIEditor.gridlist[1],row,2,v[2],false,false); guiGridListSetItemColor(GUIEditor.gridlist[1],row,1,math.random(0,255),math.random(0,255),math.random(0,255)) guiGridListSetItemColor(GUIEditor.gridlist[1],row,2,math.random(0,255),math.random(0,255),math.random(0,255)) end xMainFunctions_ = function ( ) local row, col = guiGridListGetSelectedItem ( GUIEditor.gridlist[1] ) local Group = tostring ( guiGridListGetItemText(GUIEditor.gridlist[1],row,1 )); local Price = tostring ( guiGridListGetItemText(GUIEditor.gridlist[1],row,2 )); if ( row and col and row ~= -1 and col ~= -1 ) then triggerServerEvent("Accept:the:request",localPlayer,Group,Price) else outputChatBox("Please Click On The Rank",math.random(0,255),math.random(0,255),math.random(0,255),true); end end addEventHandler("onClientGUIClick",GUIEditor.button[1],xMainFunctions_,false); addEventHandler ( "onClientResourceStart", root, function ( ) if ( isTimer ( timerColor ) ) then killTimer ( timerColor ) end timerColor = setTimer ( function ( ) guiLabelSetColor ( GUIEditor.label[1], math.random ( 255 ), math.random ( 255 ), math.random ( 255 ) ) guiLabelSetColor ( GUIEditor.label[3], math.random ( 255 ), math.random ( 255 ), math.random ( 255 ) ) end, 100, 0 ) end ) addEventHandler("onClientResourceStart", resourceRoot, function() setTimer(function() for _, random in ipairs(getElementsByType('gui-button',getResourceRootElement(getThisResource())) ) do guiSetProperty(random, 'NormalTextColour', string.format("%.2X%.2X%.2X%.2X", 255, math.random(255), math.random(255), math.random(255))) end end, 100, 0) end) bindKey("F7", "down", function() if guiGetVisible(GUIEditor.staticimage[1]) == true then guiSetVisible(GUIEditor.staticimage[1], false) showCursor(false) guiSetInputEnabled(false) else guiSetVisible(GUIEditor.staticimage[1], true) showCursor(false) guiSetInputEnabled(true) end end )
  9. كلينت ---------------------- -- Setting ---------------------- local Admin = { {"VIP","1500"}, {"LVL1","4000"}, {"LVL2","6000"}, {"LVL3","8000"}, {"LVL4","11000"}, {"LVL5","16000"}, {"TheGamer","20000"}, {"TheStronger","25000"}, {"TheKiller","32000"}, {"Professional","43000"}, {"Admin","110000"}, } ---------------------- -- Setting ---------------------- GUIEditor = { gridlist = {}, staticimage = {}, button = {}, label = {} } GUIEditor.staticimage[1] = guiCreateStaticImage(236, 113, 308, 379, "Back.png", false) guiSetVisible(GUIEditor.staticimage[1], false) guiWindowSetSizable(GUIEditor.staticimage[1], false) guiWindowSetMovable(GUIEditor.staticimage[1], true) GUIEditor.label[1] = guiCreateLabel(11, 59, 159, 18, "rank system :", false, GUIEditor.staticimage[1]) guiSetFont(GUIEditor.label[1], "clear-normal") guiLabelSetColor(GUIEditor.label[1], math.random(0,255),math.random(0,255),math.random(0,255)) GUIEditor.label[2] = guiCreateLabel(28, 10, 252, 17, "Welcome To Z.P server", false, GUIEditor.staticimage[1]) guiSetFont(GUIEditor.label[2], "clear-normal") guiLabelSetColor(GUIEditor.label[2], 255, 153, 0) GUIEditor.label[3] = guiCreateLabel(11, 345, 186, 16, "Buy Rank By : Michael", false, GUIEditor.staticimage[1]) guiSetFont(GUIEditor.label[3], "clear-normal") guiLabelSetColor(GUIEditor.label[3], math.random(0,255),math.random(0,255),math.random(0,255)) GUIEditor.button[1] = guiCreateButton(202, 335, 96, 39, "Buy Rank", false, GUIEditor.staticimage[1]) guiSetFont(GUIEditor.button[1], "clear-normal") guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFFF9900") GUIEditor.gridlist[1] = guiCreateGridList(11, 83, 287, 242, false, GUIEditor.staticimage[1]) guiGridListAddColumn(GUIEditor.gridlist[1], "Group", 0.7) guiGridListAddColumn(GUIEditor.gridlist[1], "Zombie kills", 0.3) guiSetVisible( GUIEditor.staticimage[1] , false ) for k,v in ipairs ( Admin ) do row = guiGridListAddRow(GUIEditor.gridlist[1]); guiGridListSetItemText(GUIEditor.gridlist[1],row,1,v[1],false,false); guiGridListSetItemText(GUIEditor.gridlist[1],row,2,v[2],false,false); guiGridListSetItemColor(GUIEditor.gridlist[1],row,1,math.random(0,255),math.random(0,255),math.random(0,255)) guiGridListSetItemColor(GUIEditor.gridlist[1],row,2,math.random(0,255),math.random(0,255),math.random(0,255)) end xMainFunctions_ = function ( ) local row, col = guiGridListGetSelectedItem ( GUIEditor.gridlist[1] ) local Group = tostring ( guiGridListGetItemText(GUIEditor.gridlist[1],row,1 )); local Price = tostring ( guiGridListGetItemText(GUIEditor.gridlist[1],row,2 )); if ( row and col and row ~= -1 and col ~= -1 ) then triggerServerEvent("Accept:the:request",localPlayer,Group,Price) else outputChatBox("Please Click On The Rank",math.random(0,255),math.random(0,255),math.random(0,255),true); end end addEventHandler("onClientGUIClick",GUIEditor.button[1],xMainFunctions_,false); addEventHandler ( "onClientResourceStart", root, function ( ) if ( isTimer ( timerColor ) ) then killTimer ( timerColor ) end timerColor = setTimer ( function ( ) guiLabelSetColor ( GUIEditor.label[1], math.random ( 255 ), math.random ( 255 ), math.random ( 255 ) ) guiLabelSetColor ( GUIEditor.label[3], math.random ( 255 ), math.random ( 255 ), math.random ( 255 ) ) end, 100, 0 ) end ) addEventHandler("onClientResourceStart", resourceRoot, function() setTimer(function() for _, random in ipairs(getElementsByType('gui-button',getResourceRootElement(getThisResource())) ) do guiSetProperty(random, 'NormalTextColour', string.format("%.2X%.2X%.2X%.2X", 255, math.random(255), math.random(255), math.random(255))) end end, 100, 0) end) bindKey("F7", "down", function() if guiGetVisible(GUIEditor.staticimage[1]) == true then guiSetVisible(GUIEditor.staticimage[1], false) showCursor(false) guiSetInputEnabled(false) else if guiGetVisible(GUIEditor.staticimage[1]) == false then guiSetVisible(GUIEditor.staticimage[1], true) showCursor(false) guiSetInputEnabled(true) end end end ) -- سيرفر -- xAddToGroupFunction_ = function ( Group,Price ) if isGuestAccount(getPlayerAccount(source)) then return outputChatBox("#You must register first",source,255,0,0,true); end local account = getAccountName(getPlayerAccount(source)); if isObjectInACLGroup("user."..account, aclGetGroup(tostring(Group))) then return outputChatBox("#You have this rank, please choose another one",source,0,255,255,true); end local sValue = getElementData( source,'Zombie kills' ) if not sValue then sValue = '0' end local kills = tonumber( sValue ) if kills == nil or not kills then kills = 0 end if (kills >= tonumber(Price)) then aclGroupAddObject (aclGetGroup(tostring(Group)),"user."..account); outputChatBox("#Rank has been added successfully "..Name,source,255,0,0,true); else outputChatBox("#You do not have enough Kills",source,0,255,255,true); end end addEvent("Accept:the:request",true) addEventHandler("Accept:the:request",root,xAddToGroupFunction_)
  10. لا تفتح موضوعين احذف ذذ الموضوع رديت عليك في الموضوع السابق
  11. Client Side -- GUIEditor = { gridlist = {}, staticimage = {}, button = {}, label = {} } GUIEditor.staticimage[1] = guiCreateStaticImage(236, 113, 308, 379, "Back.png", false) guiSetVisible(GUIEditor.staticimage[1], false) guiWindowSetSizable(GUIEditor.staticimage[1], false) guiWindowSetMovable(GUIEditor.staticimage[1], true) GUIEditor.label[1] = guiCreateLabel(11, 59, 159, 18, "rank system :", false, GUIEditor.staticimage[1]) guiSetFont(GUIEditor.label[1], "clear-normal") guiLabelSetColor(GUIEditor.label[1], math.random(0,255),math.random(0,255),math.random(0,255)) GUIEditor.label[2] = guiCreateLabel(28, 10, 252, 17, "Welcome To Z.P server", false, GUIEditor.staticimage[1]) guiSetFont(GUIEditor.label[2], "clear-normal") guiLabelSetColor(GUIEditor.label[2], 255, 153, 0) GUIEditor.label[3] = guiCreateLabel(11, 345, 186, 16, "Buy Rank By : Michael", false, GUIEditor.staticimage[1]) guiSetFont(GUIEditor.label[3], "clear-normal") guiLabelSetColor(GUIEditor.label[3], math.random(0,255),math.random(0,255),math.random(0,255)) GUIEditor.button[1] = guiCreateButton(202, 335, 96, 39, "Buy Rank", false, GUIEditor.staticimage[1]) guiSetFont(GUIEditor.button[1], "clear-normal") guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFFF9900") GUIEditor.gridlist[1] = guiCreateGridList(11, 83, 287, 242, false, GUIEditor.staticimage[1]) col = guiGridListAddColumn(GUIEditor.gridlist[1], "Group", 0.7) col1 = guiGridListAddColumn(GUIEditor.gridlist[1], "Zombie kills", 0.3) for k,v in ipairs ( Admin ) do row = guiGridListAddRow(GUIEditor.gridlist[1]); guiGridListSetItemText(GUIEditor.gridlist[1],row,1,v[1],false,false); guiGridListSetItemText(GUIEditor.gridlist[1],row,2,v[2],false,false); guiGridListSetItemColor(GUIEditor.gridlist[1],row,1,math.random(0,255),math.random(0,255),math.random(0,255)) guiGridListSetItemColor(GUIEditor.gridlist[1],row,2,math.random(0,255),math.random(0,255),math.random(0,255)) end xMainFunctions_ = function ( ) local row, col = guiGridListGetSelectedItem ( GUIEditor.gridlist[1] ) local Group = tostring ( guiGridListGetItemText(GUIEditor.gridlist[1],row,col,1 )); local Price = tostring ( guiGridListGetItemText(GUIEditor.gridlist[1],row,col1,1 )); if ( row and col and row ~= -1 and col ~= -1 ) then triggerServerEvent("Accept:the:request",localPlayer,Group,Price) else outputChatBox("Please Click On The Rank",math.random(0,255),math.random(0,255),math.random(0,255),true); end end addEventHandler("onClientGUIClick",GUIEditor.button[1],xMainFunctions_,false); addEventHandler ( "onClientResourceStart", root, function ( ) if ( isTimer ( timerColor ) ) then killTimer ( timerColor ) end timerColor = setTimer ( function ( ) guiLabelSetColor ( GUIEditor.label[1], math.random ( 255 ), math.random ( 255 ), math.random ( 255 ) ) guiLabelSetColor ( GUIEditor.label[3], math.random ( 255 ), math.random ( 255 ), math.random ( 255 ) ) end, 100, 0 ) end ) addEventHandler("onClientResourceStart", resourceRoot, function() setTimer(function() for _, random in ipairs(getElementsByType('gui-button',getResourceRootElement(getThisResource())) ) do guiSetProperty(random, 'NormalTextColour', string.format("%.2X%.2X%.2X%.2X", 255, math.random(255), math.random(255), math.random(255))) end end, 100, 0) end) bindKey("F7", "down", function() if guiGetVisible(GUIEditor.staticimage[1]) == true then guiSetVisible(GUIEditor.staticimage[1], false) showCursor(false) guiSetInputEnabled(false) else if guiGetVisible(GUIEditor.staticimage[1]) == false then guiSetVisible(GUIEditor.staticimage[1], true) showCursor(false) guiSetInputEnabled(true) end end end ) Server Side -- xAddToGroupFunction_ = function ( Group,Price ) local account = getAccountName(getPlayerAccount(source)); if isGuestAccount(getPlayerAccount(source)) then return outputChatBox("#You must register first",source,255,0,0,true); end if isObjectInACLGroup("user."..account, aclGetGroup(tostring(Group))) then return outputChatBox("#You have this rank, please choose another one",source,0,255,255,true); end local sValue = getElementData( source,'Zombie kills' ) if not sValue then sValue = '0' end local Zombie kills = tonumber( data[1] ) if Zombie kills == nil or not tonumber(Zombie kills) then Zombie kills = 0 end if ( Zombie kills >= tonumber(Price)) then aclGroupAddObject (aclGetGroup( tostring(Group)),"user."..account); outputChatBox("#Rank has been added successfully "..Name,source,255,0,0,true); else outputChatBox("#You do not have enough Kills",source,0,255,255,true); end end addEvent("Accept:the:request",true) addEventHandler("Accept:the:request",root,xAddToGroupFunction_) لم تتم تجربة ..
  12. الحين انا مسوي جريد ليست فيه اسماء لاعبيين انا ابي لو حدد لاعب في الراديون بوتن يلون اسمه الموجود في الجريد ليست اتمنى تكون فهمتني بنسبه لفنكشن كيف اجيب لاعب وكيف اغير لونه يعني اي واحد بيغير ؟؟؟؟؟؟
  13. الكود حق برستيج .. ! وش يجيك في دي بوق ؟
  14. addEventHandler ( "onClientGUIClick", root, function ( ) if ( source == GUIEditor.button[2] ) then if guiGridListGetSelectedItem ( grid ) ~= -1 then guiSetVisible(wnd,false) guiSetVisible(wnd2,true) end end end ) جرب =)
  15. 'onClientGUIClick' guiGridListGetSelectedItem -- if .... guiSetVisible
  16. مافهمت حاجة وحده getPlayerName -- getPlayerFrom GridList كيف اجيب لاعب من الجريد ليست وانا ابيه يكون المصدر ؟
  17. ابي فنكشنات اذا ضغط عالراديون بوتن يلون اسمه الموجود في الجريد ليست لكل لاعبين
  18. addEventHandler ( "onClientGUIClick", resourceRoot, function () if source == GUIEditor.button[1] then if not guiGridListGetSelectedItem ( GUIEditor.gridlist[1] ) ~= -1 then guiSetEnabled(GUIEditor.button[1], false ) setTimer(guiSetEnabled,1000,1,GUIEditor.button[1],true) end end end )
  19. addEventHandler ("onClientGUIClick",resourceRoot, function () if not guiGridListGetSelectedItem ( GUIEditor.gridlist[1] ) ~= -1 then guiSetEnabled(GUIEditor.button[1], false ) setTimer(guiSetEnabled,1000,1,GUIEditor.button[1],true) end end )
  20. قصدي ي عبدالكريم ^ الحين صار يضهر فقط Player 1 : ...... انا ابي يضهر الوقت معه الحقيقي كذا النتيجة [ 23 : 48 : 00 ] : Player1 : .......
  21. function () if not guiGridListGetSelectedItem ( NameGrid ) ~= -1 then guiSetEnabled(kick, false) setTimer(guiSetEnabled,1000,1,kick,true) end end end
  22. ^ شكراً افدتني جداً + الحين ودي اللاعب الي حدد عليه يضهر له شات فقط بس مضلل يعني Alpha ضعيفةة ويطلع صوت انا ابي احدده + ابي اجيب الوقت الي ارسل فيه الرسالة استعمل getRealTime ؟
  23. اتوقع تعرفون مود الرسائل الخاصةة.. ابي فنكشن يفتح لوحة تواصل للاعب مثلا لاعب حدد علاعب الاخر يفتح لوحة فيها ميمو + ايديت الحين انا ابي اجيب اللاعبين الي كتبو في الايديت كيف ؟ عشان اضيفهم في الميمو يعني مثال الالاعب الاول كتب كذا : سلام عليكم ولاعب الثاني كتب كذا: وعليكم سلام يجي في الميمو كذا [22:53:00PM] : Player1 : سلام عليكم [22:53:02PM] : Player2 : وعليكم السلام ===== انتهينا ؟ اوك الحين مسوي لوحة الفريند حق الاصدقاء انا مسوي زرين حذف اضافة ابيه الاضافة يضيف اصدقاء كيف ؟ يجيه لوحة فيه جريد ليست فيه لاعبين يختار فيهم من لاعبين وبعدين لما يختار يجيه في لوحة الاولى يضيف في الجريد ليست اسم الصديق اتمنى تكونو فهمتوني ! بدي الفنكشنات لو سمحتو !
×
×
  • Create New...