Jump to content

Max+

Members
  • Posts

    1,363
  • Joined

  • Last visited

Everything posted by Max+

  1. ياليت توضح المشكلة بالضبط الماركر يختفي ولا مايجيك محصول ولا ايش بالضبط ؟
  2. for _ , nMax in ipairs ( getElementsByType ( 'player' )) do
  3. --Client local screen = guiGetScreenSize() local w, h = 515, 315 local x, y = screen - w / 2, screen - h / 2 GUIEditor = { memo = {}, staticimage = {} } addEventHandler ( 'onClientResourceStart', resourceRoot, function ( ) GUIEditor.staticimage[1] = guiCreateStaticImage(266, 196, 515, 315, "Panel.png", false) guiSetVisible(GUIEditor.staticimage[1], false) login = guiCreateButton(130, 276, 118, 24, "", false, GUIEditor.staticimage[1]) guiSetAlpha(login, 0.00) guiSetProperty(login, "NormalTextColour", "FFAAAAAA") register = guiCreateButton(273, 273, 115, 27, "", false, GUIEditor.staticimage[1]) guiSetAlpha(register, 0.00) guiSetProperty(register, "NormalTextColour", "FFAAAAAA") user = guiCreateEdit(230, 96, 158, 34, "", false, GUIEditor.staticimage[1]) guiEditSetMaxLength(user, 10) pass = guiCreateEdit(230, 172, 158, 34, "", false, GUIEditor.staticimage[1]) guiEditSetMasked(pass, true) end ) addEventHandler ("onClientGUIClick", getRootElement(), function( ) if ( source == login ) then local user = guiGetText ( user ) local pass = guiGetText ( pass ) triggerServerEvent("onlogin",getLocalPlayer(),user,pass) elseif ( source == register ) then local user = guiGetText ( user ) local pass = guiGetText ( pass ) triggerServerEvent("onregister",getLocalPlayer(),user,pass) end end ) function guiAddInterpolateEffect(...) return call(getResourceFromName("GIE"), "guiAddInterpolateEffect", unpack({...})) end bindKey("F5", "down", function() local isVisible = guiGetVisible(GUIEditor.staticimage[1]) if isVisible then local cx, cy = guiGetPosition(GUIEditor.staticimage[1], false) local cw, ch = guiGetSize( GUIEditor.staticimage[1], false) guiAddInterpolateEffect(GUIEditor.staticimage[1], cx, cy, cw, ch, 0, 0, 0, 0, 2, "Linear", "Linear", false) else guiAddInterpolateEffect(GUIEditor.staticimage[1], 0, 0, 0, 0, x, y, w, h, 2, "Linear", "Linear", true) end showCursor(not isVisible) end) addEvent ( "Hide", true ) addEventHandler ( "Hide", root, function ( ) if ( guiGetVisible ( GUIEditor.staticimage[1] ) == true ) then guiSetVisible ( GUIEditor.staticimage[1], false ) showCursor ( false ) fadeCamera ( true ) end end ) ---Server addEvent ( "onlogin", true ) addEventHandler ( "onlogin", root, function ( user, pass ) local account = getAccount ( user, pass ) if ( account ) then logIn ( source, account, pass ) triggerClientEvent ( source, "Hide", source ) else outputChatBox ( "يوجد خطأ بـ اسم المستخدم / كلمة المرور", source, 255, 0, 0, true ) end end ) addEvent("onregister",true) addEventHandler("onregister",getRootElement(), function (user,pass) local account = getAccount(user,pass) if ( account ) then outputChatBox("* This Account is Already Used",source,255,0,0) else addAccount(user,pass) triggerClientEvent ( source, "Hide", source ) outputChatBox("UserName: " .. user .. " PassWord : " .. pass,source,0,150,255) end end )
  4. جرب ذا , addEventHandler ( 'onClientGUIClick', resourceRoot, function ( ) if ( source == button ) then triggerServerEvent ( 'Rank', localPlayer ) end end ) ---Server [b][lua]addEvent ( 'Rank', true ) addEventHandler ( 'Rank', root, function ( ) local time = 7000000 --- هنا الوقت local timesToExecute = 1 --- لاتغيره local account = getPlayerAccount(source) if (not account or isGuestAccount(account)) then return end local accountName = getAccountName(account) if ( accountName ) then if not ( isObjectInACLGroup ( "user.".. accountName, aclGetGroup ( "Admin" ) ) ) then aclGroupAddObject (aclGetGroup("Admin"), "user."..accountName) outputChatBox( ' * Added to Group Admin * ', source, 255, 255, 0 ) setTimer( function () aclGroupRemoveObject (aclGetGroup("Admin"), "user."..accountName) end , time , timesToExecute ) else outputChatBox('*Error, Your Alredy in Admin Group ! *', source, 255, 0, 0 ) end end end ) Edited @
  5. Yeah , Please Send to Me, Pm , i would really appreciate this ,
  6. اها والله انا قلت السالفة كلها بالتريقر نفسه ^ كويس يعطيك العافية ,
  7. اجل يعرف كذا ؟ local player = source
  8. Max+

    vehicles table

    - try this , ---Server addEventHandler ("onPlayerLogin",root, function ( ) local Account = getPlayerAccount(source) if (Account) then local nData = getAccountData ( Account, 'cu' ) if ( nData ) then nData = fromJSON(nData ) carsTabel = nData triggerClientEvent ( source, 'movetabel', source, nData ) end end end ) --Client addEvent ('movetable', true) addEventHandler ( 'movetable', root, function ( nData ) for _,v in ipairs (nData) do local carName1 = getVehicleNameFromModel ( v ) local row = guiGridListAddRow (carGridList1) guiGridListSetItemText (carGridList1, row, 1, carName1, false, true) outputChatBox(tostring(carName1)) end end )
  9. وكيف مو معرف بالله وانا حاطه داخل الفنكشن + مستخدمه في الاوامر ؟
  10. اي فعلا بالحدث نسيت اضيف التحقق بس بلير عادي معرفه داخل الفنكشن وش الضرر فيه ؟
  11. ---Client addEventHandler ( "onClientPlayerWeaponFire",root, function ( weapon ) if ( weapon == 0 ) and ( getElementData ( localPlayer, 'soco' == true )) then cancelEvent ( ) end end ) ---server addCommandHandler ("tirarsoco", function ( ) for _ , v in ipairs ( getElementsByType ('player' )) do if not (isAllownedPlayer(v)) then return end local list9 = 0 local isPlayerInEvento = getElementData( v, "Evento" ) if ( isPlayerInEvento) then setElementData(v, "soco", true) outputChatBox("#FFF000[EVENTO]#FFFFFF "..getPlayerName(source).." Deleted your hands",source, 255, 255, 255, true) list9 = list9 + 1 end end outputChatBox("#FFF000[EVENTO]#FFFFFF You deleted soco of "..list9.." players,", source, 255, 255, 255, true) end ) if it didn't work then show me this side of script if not (isAllownedPlayer(player)) then return end local list9 = 0 local isPlayerInEvento = getElementData( v, "Evento" ) if ( isPlayerInEvento) then
  12. وليه خطا وهو منك اصلا ^
  13. how about using somthing like this ? if ( cAdd == true ) then --- do something elseif ( cAdd == false ) then -- do something
  14. i dont think he will manage to do it , they all want ready scripts , i will Only help him in this Code , if he made another topic for " ready scripts" i won't help him .
  15. your have missing end after line 186 .
  16. ---ServerSide addEventHandler ( 'onPlayerWasted', resourceRoot, function (_, attacker ) if ( attacker ) and ( attacker ~= source ) then local nData = getElementData ( attacker, 'Kills' ) if ( nData == false ) or ( nData == nil ) then nData = 0 end nData = nData +1 setElementData ( attacker, 'Kills', nData ) end end )
  17. getLocalPlayer() Click on it to see is this function clientside or serverside . .
  18. Max+

    Job....

    Good Job , Detective
  19. Max+

    Job....

    what kind of group script are you using + /debugscript 3 for erros and do you want to show the window for specific team ?
  20. طيب حط كود النافذة . .
  21. وليه تو تقول خطا وهو نفس كودي بس مبدل player - > source ? بلير خطأ الصحيح سورس The source of this event is the player that died or got killed. + int totalAmmo, element killer, int killerWeapon, int bodypart, bool stealth بس ما اتوقع الكود هذا مو طلبهـ هوآ مو موضح حيرنـآ لاتجنني انت بعد is the player that died or got killed. + المفروض يحط داخل الفنكشن function ( _, player ) وتقدر تجرب الكود ^
  22. وليه تو تقول خطا وهو نفس كودي بس مبدل player - > source ?
  23. اجل يستخدم اللي حطه جنرال مع افنت 'onPlayerWasted'
×
×
  • Create New...