Jump to content

Ahmed Ly

Members
  • Posts

    1,304
  • Joined

  • Last visited

  • Days Won

    5

Everything posted by Ahmed Ly

  1. wnd = guiCreateWindow(467, 243, 348, 205, "", false) guiWindowSetSizable(wnd, false) btn = guiCreateButton(40, 63, 265, 103, "Kill ", false, wnd) guiSetFont(btn, "sa-header") addEventHandler("onClientGUIClick",root, function() if ( source == btn ) then setElementHealth(localPlayer,0) outputChatBox("تم الانتحار",255,2,2,true) end end ) guiSetVisible( wnd, false) function Open() if guiGetVisible ( wnd ) then guiSetVisible ( wnd, false ) showCursor(false) guiSetInputEnabled(false) else guiSetVisible ( wnd, true ) showCursor(true) guiSetInputEnabled(true) end end bindKey("o", "down", Open)
  2. wnd = guiCreateWindow(467, 243, 348, 205, "", false) guiWindowSetSizable(wnd, false) btn = guiCreateButton(40, 63, 265, 103, "Kill ", false, wnd) guiSetFont(btn, "sa-header") addEventHandler("onClientGUIClick",root, function() if ( source == btn ) then setElementHealth(localPlayer,0) outputChatBox("تم الانتحار",255,2,2,true) end end ) guiSetVisible( wnd, false) function Open() if guiGetVisible ( wnd ) then guiSetVisible ( wnd, false ) showCursor(false) guiSetInputEnabled(false) else guiSetVisible ( wnd, true ) showCursor(true) guiSetInputEnabled(true) end end bindKey("o", "down", Open)
  3. wnd = guiCreateWindow(467, 243, 348, 205, "", false) guiWindowSetSizable(wnd, false) btn = guiCreateButton(40, 63, 265, 103, "Kill ", false, wnd) guiSetFont(btn, "sa-header") addEventHandler("onClientGUIClick",root, function() if ( source == btn ) then setElementHealth(player,0) outputChatBox("تم الانتحار",255,2,2,true) end end ) guiSetVisible( wnd, false) function Open() if guiGetVisible ( wnd ) then guiSetVisible ( wnd, false ) showCursor(false) guiSetInputEnabled(false) else guiSetVisible ( wnd, true ) showCursor(true) guiSetInputEnabled(true) end end bindKey("o", "down", Open)
  4. wnd = guiCreateWindow(467, 243, 348, 205, "", false) guiWindowSetSizable(wnd, false) btn = guiCreateButton(40, 63, 265, 103, "Kill ", false, wnd) guiSetFont(btn, "sa-header") addEventHandler("onClientGUIClick",root, function() if ( source == btn ) then setElementHealth(player,0) outputChatBox("تم الانتحار",255,2,2,true) end end ) guiSetVisible( wnd, false) function Open() if guiGetVisible ( wnd ) then guiSetVisible ( wnd, false ) showCursor(false) guiSetInputEnabled(false) else guiSetVisible ( wnd, true ) showCursor(true) guiSetInputEnabled(true) end end bindKey("o", "down", Open)
  5. حياك الله + مش احمد لي اسمي احمد ليبيا
  6. حياك الله + مش احمد لي اسمي احمد ليبيا
  7. GUIEditor = { edit = {}, button = {}, window = {}, label = {}, gridlist = {} } GUIEditor.window[1] = guiCreateWindow(294, 221, 502, 343, "", false) guiWindowSetSizable(GUIEditor.window[1], false) GUIEditor.gridlist[1] = guiCreateGridList(40, 116, 382, 142, false, GUIEditor.window[1]) col = guiGridListAddColumn(GUIEditor.gridlist[1], "chat", 0.9) GUIEditor.label[1] = guiCreateLabel(46, 40, 231, 57, "", false, GUIEditor.window[1]) GUIEditor.button[1] = guiCreateButton(24, 287, 114, 32, "مسح", false, GUIEditor.window[1]) GUIEditor.edit[1] = guiCreateEdit(252, 285, 214, 48, "", false, GUIEditor.window[1]) guiSetVisible(GUIEditor.window[1] ,false) showCursor(false) function open () guiSetVisible(GUIEditor.window[1] ,true) showCursor(true) end bindKey("F2","down",open) function mm () if source == GUIEditor.button[1] then if guiGetText(GUIEditor.edit[1]) == "clr" then guiGridListClear(GUIEditor.gridlist[1]) local name = getPlayerName(localPlayer) guiSetText(GUIEditor.label[1],'تم مسح شات') rw = guiGridListAddRow (GUIEditor.gridlist[1]) guiGridListSetItemText (GUIEditor.gridlist[1],rw,col,"* "..name.." ",false,false) end end end addEvent ("CLEAR",true) addEventHandler ("CLEAR",root,mm) addEventHandler("onClientGUIClick",root,mm)
  8. GUIEditor = { edit = {}, button = {}, window = {}, label = {}, gridlist = {} } GUIEditor.window[1] = guiCreateWindow(294, 221, 502, 343, "", false) guiWindowSetSizable(GUIEditor.window[1], false) GUIEditor.gridlist[1] = guiCreateGridList(40, 116, 382, 142, false, GUIEditor.window[1]) col = guiGridListAddColumn(GUIEditor.gridlist[1], "chat", 0.9) GUIEditor.label[1] = guiCreateLabel(46, 40, 231, 57, "", false, GUIEditor.window[1]) GUIEditor.button[1] = guiCreateButton(24, 287, 114, 32, "مسح", false, GUIEditor.window[1]) GUIEditor.edit[1] = guiCreateEdit(252, 285, 214, 48, "", false, GUIEditor.window[1]) guiSetVisible(GUIEditor.window[1] ,false) showCursor(false) function open () guiSetVisible(GUIEditor.window[1] ,true) showCursor(true) end bindKey("F2","down",open) function mm () if source == GUIEditor.button[1] then if guiGetText(GUIEditor.edit[1]) == "clr" then guiGridListClear(GUIEditor.gridlist[1]) local name = getPlayerName(localPlayer) guiSetText(GUIEditor.label[1],'تم مسح شات') rw = guiGridListAddRow (GUIEditor.gridlist[1]) guiGridListSetItemText (GUIEditor.gridlist[1],rw,col,"* "..name.." ",false,false) end end end addEvent ("CLEAR",true) addEventHandler ("CLEAR",root,mm) addEventHandler("onClientGUIClick",root,mm)
  9. local pass = "clr" function mm (name) if source == btn then if tostring(guiGetText(GUIEditor.edit[1])) == pass then guiSetText(GUIEditor.label[1],'تم مسح شات') rw = guiGridListAddRow (GUIEditor.gridlist[1]) guiGridListSetItemText (GUIEditor.gridlist[1],rw,2,"* "..name.." ",false,false) end end end addEvent ("CLEAR",true) addEventHandler ("CLEAR",root,mm) addEventHandler"onClientGUIClick",root,mm)
  10. local pass = "clr" function mm (name) if source == btn then if tostring(guiGetText(GUIEditor.edit[1])) == pass then guiSetText(GUIEditor.label[1],'تم مسح شات') rw = guiGridListAddRow (GUIEditor.gridlist[1]) guiGridListSetItemText (GUIEditor.gridlist[1],rw,2,"* "..name.." ",false,false) end end end addEvent ("CLEAR",true) addEventHandler ("CLEAR",root,mm) addEventHandler"onClientGUIClick",root,mm)
  11. function mm (name) if source == btn then local Gui = guiGetText(GUIEditor.edit[1]) rw = guiGridListAddRow (GUIEditor.gridlist[1]) guiGridListSetItemText (GUIEditor.gridlist[1],rw,2,"* "..name..": "..Gui.." ",false,false) end end addEvent ("CLEAR",true) addEventHandler ("CLEAR",root,mm) addEventHandler"onClientGUIClick",root,mm) -------------------- Server function (name) for i,k in ipairs (getElementsByType("player")) do triggerClientEvent (k,"CLEAR",k,getPlayerName(name)) end كودي مش مجربه و كان في خطا قولي
  12. function mm (name) if source == btn then local Gui = guiGetText(GUIEditor.edit[1]) rw = guiGridListAddRow (GUIEditor.gridlist[1]) guiGridListSetItemText (GUIEditor.gridlist[1],rw,2,"* "..name..": "..Gui.." ",false,false) end end addEvent ("CLEAR",true) addEventHandler ("CLEAR",root,mm) addEventHandler"onClientGUIClick",root,mm) -------------------- Server function (name) for i,k in ipairs (getElementsByType("player")) do triggerClientEvent (k,"CLEAR",k,getPlayerName(name)) end كودي مش مجربه و كان في خطا قولي
  13. تجيب الاحدثية متع لاعب getElementPosition
  14. تجيب الاحدثية متع لاعب getElementPosition
  15. addEvent("GiveVehicle" ,true) addEventHandler("GiveVehicle" ,root, function (ID) PMoney = getPlayerMoney(source) if PMoney >= 2500 then local x,y,z = getElementPosition(source) createVehicle(ID,x,y+1,z) takePlayerMoney(source,2500) outputChatBox("* تم شراء سياره بنجاح",source ,0,255,0,false) else outputChatBox("* ليس لديك المال الكافي للشراء",source ,255,0,0,false) end end )
  16. addEvent("GiveVehicle" ,true) addEventHandler("GiveVehicle" ,root, function (ID) PMoney = getPlayerMoney(source) if PMoney >= 2500 then local x,y,z = getElementPosition(source) createVehicle(ID,x,y+1,z) takePlayerMoney(source,2500) outputChatBox("* تم شراء سياره بنجاح",source ,0,255,0,false) else outputChatBox("* ليس لديك المال الكافي للشراء",source ,255,0,0,false) end end )
  17. لا استخدم اكود هدا triggerServerEvent و بعدين حطه كود كيل بلاي في سيرفر killPlayer
  18. لا استخدم اكود هدا triggerServerEvent و بعدين حطه كود كيل بلاي في سيرفر killPlayer
  19. deadBackground = guiCreateStaticImage(0,0,1,1,"images/dead.jpg",true) deathText = guiCreateLabel(0,0.8,1,0.2,"You died! \n You will respawn in 5 seconds.",true) guiLabelSetHorizontalAlign (deathText,"center") addEventHandler("onClientPlayerWasted",root, function () guiSetVisible(deadBackground,true) guiSetVisible(deathText,true) setTimer(set,3000,1) end ) function set() guiSetVisible(deadBackground,false) guiSetVisible(deathText,false) end
  20. deadBackground = guiCreateStaticImage(0,0,1,1,"images/dead.jpg",true) deathText = guiCreateLabel(0,0.8,1,0.2,"You died! \n You will respawn in 5 seconds.",true) guiLabelSetHorizontalAlign (deathText,"center") addEventHandler("onClientPlayerWasted",root, function () guiSetVisible(deadBackground,true) guiSetVisible(deathText,true) setTimer(set,3000,1) end ) function set() guiSetVisible(deadBackground,false) guiSetVisible(deathText,false) end
  21. العفوا + تقدر تستخدم killPlayer
  22. العفوا + تقدر تستخدم killPlayer
  23. addEventHandler("onClientGUIClick",root, function () if source == btn then --لم لاعب يضغط علي الزر setElementHealth(localPlayer,0) -- يعطي لي لاعب دم 0 end end )
×
×
  • Create New...