Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 28/06/18 in all areas

  1. السلام عليكم ورحمة الله وبركاته MTA اخباركم يا اعضاء منتدى اليوم بقدملكم مود البنك الجديد من برمجتي كل شيء يخص الموضوع بتلاقوه في هذا الرابط واحب اشكر الأخ نكست والأخ عبد الكريم لمساعدتهم لي في كود من الاكواد الإهداءات : جميع أعضاء المنتدى في امان الله
    6 points
  2. لو بغيت الصراحه مستغرب كيف مسوي مود كذا وقاعد تسوي طلبات بموقع البرمجه اسهل من الموجود بالمود ذا بكثير باختصار انت زارف حقوق خخ
    3 points
  3. انت شكلك منت قادر تفهم او تستوعب ان السيرفر الي مالكه مانستر وابراهيم كان ادمن عنده , وهو يستقبل الاخبار من مانستر ويجي هنا يقولها لكم لا تسوي فيها قفيط ومدري وش ترا كلامك كله غلط بغلط الاخبار تجيه من مانستر وهو يجي هنا ويقولها لكم لو كان على مانستر يجي هنا ويرد عليك بنفسه لكن الرجال مكبر عقله والدليل الميوت الي جاك عشان تفهم
    2 points
  4. سكربت رائع , جميل , على اني مافهم للزومبي للدرجة دي , ومدري وش الحصري ووش مو الحصري المهم سكربت رائع وجميل جدا , وتسلم على الاهداء بالتوفيق لك , وللكل ان شاء الله
    2 points
  5. https://www.instagram.com/2u_quran/ كان حساب اباحي لشخص فرنسي وتم سحب حسابه وحذف بقرابة 1400 صورة غير لائقة
    2 points
  6. الله يعينك ع هالعينات ’ فيه منهم كثير
    2 points
  7. تسلم لانك اخبرتني , لاكن شو نسوي في كثير سيرفرات سوت الراتب حياك الله اخوي
    2 points
  8. لاجديد فكرة الراتب @MR.Mosa
    2 points
  9. Hey, after a long time I am releasing a newer version of this Multigamemode. You can find it on Github. Some Features: - Create as many arenas as you like by just calling a simple function providing a name and other properties. - Allow players to create their own arenas, in which they are automatically added as an admin for their arena. These custom arenas are destroyed the moment everyone has left them. - Use the Training button to train every map available on the server. - Common features like respawn, rewind, cp/tp etc. to help practising maps. - Custom ACL system: Each arena has their own acl file, yet you still can define global admins in the usual server acl. - A few maps have been included to make it easier to test and show the way how maps have to be organized. A little screenshot of the Lobby: More Screenshots can be found on Github for now. In order to use this Multigamemode, you will have to follow a quick instruction: Some of you might have seen this Multigamemode on the DDC server. This is a slightly different version from what we use on DDC. It excludes a few resource such as Userpanel or Stats, as they rely on our MySQL database and therefore cannot be shared so easy. Also, you will have to change the way Login works, if you want to login using an account of the mta server or remotely by using a website. Right now you can only login with an account on the ddc forum, as most people are gonna change the login to what they need anyway. Not everything is done in the best way and I would probably do some things differently now, but it works quite good and might be a good base for people to start their own project. If you want to contribute, you can create a pull request on Github. Bonsai
    1 point
  10. THIS SCRIPT IS NOT FINISHED, DO NOT DOWNLOAD IT UNLESS YOU KNOW HOW RESOURCES WORK This gamemode was to be my masterpiece, and yet I am releasing it incomplete in the hopes someone talented might take over and complete it. I will only be available in a limited capacity for support. DOWNLOAD: http://www.solidfiles.com/d/f53adc357d/ -Players can choose up to 4 powers at a time, and a theme. -spawn on a travelling flying helicarrier -fight muggers, gangs, and suicide bombers -do missions to fight crime -random events occur, such as a ninja attack, dinosaurs, or A GIANT ROBOT ATTACKS THE CITY POWERS PASSIVE "Kung Fu" Double tap the jump button to deliver a powerful kick while facing an enemy to send them flying. "Wall Climbing" Double tap the jump button while facing a wall to stick to it and climb around. "Wall Jumping" Double tap the jump button while facing a wall to launch yourself up and away from it. "Super Sprinting" Hold down the sprint and a direction button and run at super speeds for a limited time. "Knockout Punch" Punching an enemy results in them being stunned and unable to retaliate for a short time. TRANSPORT "Flight" Press jump while in the air to toggle flight mode. "Sky Surfing" Press the transport button to summon a flying vehicle to surf on. "Teleportation" Hold the transport button to control how far you want to teleport. "Grapple Hook" Press the transport button to get a grapple hook that will pull you to wherever you aim it. "Super Jump" Hold the jump key to launch yourself high and far forward. "Grav Bike" Press transport button to summon a bike, then Press it again to toggle the bike's gravity control. OFFENSE "Beam Attack" Double tap the aim key to shoot a powerful beam based on your chosen theme. "Razor Claws" Double tap the aim key to lunge through the air, or just punch your enemies using your sharp blades. "Boomarang" Double tap and hold the aim key to throw a projectile, ricocheting off walls. "Dash Attack" Double tap the aim key Deliver a powerful leap, scattering your enemies. "Energy Ball" Double tap and hold the aim key to charge up and release an explosive energy blast. "Double Swords" Double tap the aim key to do a spinning blade attack and slice nearby enemies. "Throw things" Double tap the aim key while facing various thngs to pick them up, then double tap aim again to throw it. DEFENSE "Healing factor" When resting and not moving you regain health slowly. "Armor Regen" When resting and not moving you gain armor. "Invisibility" Turn invisible for a short time after being attacked. "Shield" Keep blocking to place an inpenetrable barrier between you and any threat. "Bullet Dodge" Dodge bullets for a limited time. "Durability" Immunity from falling or drowning damage.
    1 point
  11. السلام عليكم و رحمة الله و بركاته اليوم جايب لكم مود الفيب المطور و الحصري لسيرفرات الزومبي VIP المود يشتغل على رتبة اسمها F10 للفتح اضغط طبعا فيه خاصيات كثيرة و مميزة صور للفيب رابط التحميل https://up.top4top.net/downloadf-909tq1nq1-rar.html الاهداءات @#DesTroeyR @,#Savage @#_iMr,[E]coo @Abdul KariM @#[K]iLLeR<3 @MrKAREEM
    1 point
  12. يب , لكن الخدمات بتقعد شغاله لين تنتهي , واذا كان لك نيه ب التجديد فلا مشكلة في ذلك ابدا لكن مانستقبل طلبات جديده
    1 point
  13. يب بس يمسح علامات الـ = وتضبط معه addCommandHandler("tst", function(commander) h,m,s = 2,60,60 timer = setTimer( function() local seconds = s - 1 local hours = h if ( seconds < 1 ) then s = 60 local minutes = m - 1 end local minutes = m if ( minutes == 0 ) then if ( hours ~= 0 ) then m = 60 end end if ( h == 0 and m == 0 and s == 0 ) then setGameType( "إنتهى العد التنازلي #" ) return timer = nil end setGameType(tostring(h)..":"..tostring(m)":"..tostring(s)":- العد التنازلي") end, 1000, 0 ) end ) *
    1 point
  14. اكوادك ناقصه !! لكن حاولت اسويها مع انها ناقصه . تفضل local mainKey = 'F2' -- The key to open panel </> GUIEditor = { gridlist = {}, button = {}, edit = {}, label = {} } addEventHandler("onClientResourceStart", resourceRoot, function() privtechat = guiCreateWindow(0, 203, 464, 473, "|#| الــدردشــات الــخـــاصــة |#|", false) guiWindowSetSizable(privtechat, false) guiSetAlpha(privtechat, 1.00) guiSetVisible(privtechat, false) GUIEditor.edit[1] = guiCreateEdit(9, 31, 260, 41, "", false, privtechat) GUIEditor.gridlist[1] = guiCreateGridList(9, 88, 270, 375, false, privtechat) guiGridListAddColumn(GUIEditor.gridlist[1], "الاعــبــيــن ..#", 0.9) GUIEditor.label[1] = guiCreateLabel(324, 40, 85, 22, "Player Name ", false, privtechat) guiSetFont(GUIEditor.label[1], "default-bold-small") GUIEditor.label[2] = guiCreateLabel(279, 34, 44, 38, "*", false, privtechat) guiSetFont(GUIEditor.label[2], "sa-gothic") guiLabelSetColor(GUIEditor.label[2], 255, 0, 0) GUIEditor.label[3] = guiCreateLabel(399, 34, 44, 38, "*", false, privtechat) guiSetFont(GUIEditor.label[3], "sa-gothic") guiLabelSetColor(GUIEditor.label[3], 255, 0, 0) GUIEditor.button[1] = guiCreateButton(281, 202, 173, 51, "|#| فـــتـــح الــدردشــة |#|", false, privtechat) guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FF00FE00") GUIEditor.button[5] = guiCreateButton(281, 263, 173, 51, "|#| أغـــلاق |=| Close |#|", false, privtechat) guiSetProperty(GUIEditor.button[5], "NormalTextColour", "FFFF0000") GUIEditor.label[5] = guiCreateLabel(283, 430, 181, 16, "===================", false, privtechat) guiLabelSetColor(GUIEditor.label[5], 250, 2, 154) GUIEditor.label[6] = guiCreateLabel(283, 98, 181, 16, "Mr.Grand", false, privtechat) guiLabelSetColor(GUIEditor.label[6], 48, 203, 55) end ) bindKey( mainKey, 'down', function( ) guiSetVisible( privtechat, not guiGetVisible( privtechat ) ) showCursor( guiGetVisible( privtechat ) ) guiSetInputEnabled( guiGetVisible( privtechat ) ) for cNumber, _ in pairs( chat_Windows ) do if cNumber and isElement(cNumber) and getElementType(cNumber) == "player" then guiSetVisible( chat_Windows[cNumber].window, guiGetVisible( privtechat ) ) else destroyElement(chat_Windows[cNumber].window) end end end ); addEventHandler( 'onClientGUIChanged', root, function( ) if ( source == GUIEditor.edit[1] ) then local plrString = guiGetText( GUIEditor.edit[1] ) if ( plrString == '' or not plrString ) then guiGridListClear( GUIEditor.gridlist[1] ) for _, player in ipairs( getElementsByType( 'player' ) ) do addPlayer( player ) return end if ( guiComboBoxGetItemText( GUIEditor.combobox[1], Sel ) == 'Online' ) then guiGridListClear( GUIEditor.gridlist[1] ) for _, player in ipairs( getElementsByType( 'player' ) ) do if ( getElementData( player, 'chatStatus' ) == 'Online' ) then addOnlinePlayer( player ) end end elseif ( guiComboBoxGetItemText( GUIEditor.combobox[1], Sel ) == 'Offline' ) then guiGridListClear( GUIEditor.gridlist[1] ) for _, player in ipairs( getElementsByType( 'player' ) ) do if ( getElementData( player, 'chatStatus' ) == 'Offline' ) then addOfflinePlayer( player ) end end elseif ( guiComboBoxGetItemText( GUIEditor.combobox[1], Sel ) == 'Both (All)' ) then guiGridListClear( GUIEditor.gridlist[1] ) for _, player in ipairs( getElementsByType( 'player' ) ) do addPlayer( player ) end end else guiGridListClear( GUIEditor.gridlist[1] ) for _, player in ipairs( getElementsByType( 'player' ) ) do if ( string.find( string.upper( getPlayerName( player ) ), string.upper( plrString ) ) ) then addPlayer( player ) end return end if ( guiComboBoxGetItemText( GUIEditor.combobox[1], Sel ) == 'Online' ) then guiGridListClear( GUIEditor.gridlist[1] ) for _, player in ipairs( getElementsByType( 'player' ) ) do if ( string.find( string.upper( getPlayerName( player ) ), string.upper( plrString ) ) ) then if ( getElementData( player, 'chatStatus' ) == 'Online' ) then addOnlinePlayer( player ) end end end elseif ( guiComboBoxGetItemText( GUIEditor.combobox[1], Sel ) == 'Offline' ) then guiGridListClear( GUIEditor.gridlist[1] ) for _, player in ipairs( getElementsByType( 'player' ) ) do if ( string.find( string.upper( getPlayerName( player ) ), string.upper( plrString ) ) ) then if ( getElementData( player, 'chatStatus' ) == 'Offline' ) then addOfflinePlayer( player ) end end end elseif ( guiComboBoxGetItemText( GUIEditor.combobox[1], Sel ) == 'Both (All)' ) then guiGridListClear( GUIEditor.gridlist[1] ) for _, player in ipairs( getElementsByType( 'player' ) ) do if ( string.find( string.upper( getPlayerName( player ) ), string.upper( plrString ) ) ) then addPlayer( player ) end end end end end end ); function checkIfTextChanged( player, text ) setTimer( function( ) if ( guiGetText( chat_Windows[player].editBox ) == text ) then triggerServerEvent( 'onServerCheckHide', Cplayer, player ) end end, 1000, 1 ) end; addEvent( 'onClientPokePlayer', true ); addEventHandler( 'onClientPokePlayer', root, function( pokedBy ) if ( getElementData( Cplayer, 'donotDisturb' ) ~= 'Enabled' ) then playSound( 'Wakeup.mp3' ) outputChatBox( '#FFFF00• Chat System :#FFFFFF The player : [ '..pokedBy..' ] - Poked you !', 255, 255, 255, true ) end end ); addEvent( 'onClientChangeButton', true ); addEventHandler( 'onClientChangeButton', root, function( Text ) guiSetText( GUIEditor.button[2], Text ) end ); function buildChattingWith( ) local row, column = guiGridListGetSelectedItem( GUIEditor.gridlist[1] ) if ( row == -1 or column == -1 ) then return end local player = getPlayerFromName( guiGridListGetItemText( GUIEditor.gridlist[1], row, column ) ) if ( getElementData( player, 'chatStatus' ) ~= 'Online' ) then outputChatBox( '#FF0000• ERROR :#FFFFFF Sorry, You cannot send a message to this player .. it\'s offline !', 255, 255, 255, true ) return end if ( not chat_Windows[player] ) then BuildChatting( player ) guiBringToFront( chat_Windows[player].window ) end end; addEvent( 'buildChattingWith', true ); addEventHandler( 'buildChattingWith', root, buildChattingWith ) function privateChatDoubleClicks( ) if ( source == GUIEditor.gridlist[1] ) then local Sel = guiGridListGetSelectedItem( GUIEditor.gridlist[1] ) if ( Sel == -1 ) then return end local player = getPlayerFromName( guiGridListGetItemText( GUIEditor.gridlist[1], Sel, 1 ) ) if ( player == Cplayer ) then outputChatBox( '#FF0000• ERROR :#FFFFFF You cannot chatting with yourself !', 255, 255, 255, true ) return end local serial = getElementData( player, 'chatSystem;playerSerial' ) triggerServerEvent( 'onServerCheckIfBlocked', Cplayer, serial ) end end; addEventHandler( 'onClientGUIDoubleClick', root, privateChatDoubleClicks ); -- BuildChatting addEvent( 'onClientReceiveMessage', true ); addEventHandler( 'onClientReceiveMessage', root, function( player, message ) if ( not chat_Windows[player] ) then BuildChatting( player ) end local oldMessages = guiGetText( chat_Windows[player].memo ) local newString = oldMessages..getPlayerName( player ):gsub( '#%x%x%x%x%x%x', '' )..' : '..message..'\n' guiSetText( chat_Windows[player].memo, newString ) guiMemoSetCaretIndex( chat_Windows[player].memo, string.len( oldMessages ) ) if ( guiGetVisible( GUIEditor.window[1] ) == false ) then if ( getElementData( Cplayer, 'donotDisturb' ) ~= 'Enabled' ) then outputChatBox( '#FFFF00• Chat System :#FFFFFF The player : [ '..getPlayerName( player )..' ] - Sent you a message !', 255, 255, 255, true ) playSound( 'Message.mp3' ) end end end ); function addPlayer( player ) local data = getElementData( player, 'chatStatus' ) or 'Online' local name = getPlayerName( player ) local r, g, b = getPlayerNametagColor( player ) local row = guiGridListAddRow( GUIEditor.gridlist[1] ) guiGridListSetItemText( GUIEditor.gridlist[1], row, 1, name, false, false ) guiGridListSetItemText( GUIEditor.gridlist[1], row, 2, data, false, false ) guiGridListSetItemColor( GUIEditor.gridlist[1], row, 1, r, g, b ) if ( data == 'Online' ) then guiGridListSetItemColor( GUIEditor.gridlist[1], row, 2, 0, 200, 0 ) else guiGridListSetItemColor( GUIEditor.gridlist[1], row, 2, 200, 0, 0 ) end end; function addOnlinePlayer( player ) local data = getElementData( player, 'chatStatus' ) or 'Online' if ( data == 'Online' ) then local name = getPlayerName( player ) local r, g, b = getPlayerNametagColor( player ) local row = guiGridListAddRow( GUIEditor.gridlist[1] ) guiGridListSetItemText( GUIEditor.gridlist[1], row, 1, name, false, false ) guiGridListSetItemText( GUIEditor.gridlist[1], row, 2, data, false, false ) guiGridListSetItemColor( GUIEditor.gridlist[1], row, 1, r, g, b ) guiGridListSetItemColor( GUIEditor.gridlist[1], row, 2, 0, 200, 0 ) end end; function addOfflinePlayer( player ) local data = getElementData( player, 'chatStatus' ) or 'Offline' if ( data == 'Offline' ) then local name = getPlayerName( player ) local r, g, b = getPlayerNametagColor( player ) local row = guiGridListAddRow( GUIEditor.gridlist[1] ) guiGridListSetItemText( GUIEditor.gridlist[1], row, 1, name, false, false ) guiGridListSetItemText( GUIEditor.gridlist[1], row, 2, data, false, false ) guiGridListSetItemColor( GUIEditor.gridlist[1], row, 1, r, g, b ) guiGridListSetItemColor( GUIEditor.gridlist[1], row, 2, 200, 0, 0 ) end end; function player_Quit( player ) removePlayer( player ) destroyChattingWindow( player ) end; addEvent( 'onClientRemovePlayer', true ); addEventHandler( 'onClientRemovePlayer', root, player_Quit ) function player_ChangedName( player, name ) for i = 0, guiGridListGetRowCount( GUIEditor.gridlist[1] ) do if ( guiGridListGetItemText( GUIEditor.gridlist[1], i, 1 ) == name ) then guiGridListRemoveRow( GUIEditor.gridlist[1], i ) end end destroyChattingWindow( player ) setTimer( function( ) local Sel = guiComboBoxGetSelected( GUIEditor.combobox[1] ) if ( Sel == -1 ) then addPlayer( player ) return end if ( guiComboBoxGetItemText( GUIEditor.combobox[1], Sel ) == 'Online' ) then guiGridListClear( GUIEditor.gridlist[1] ) for _, player in ipairs( getElementsByType( 'player' ) ) do if ( getElementData( player, 'chatStatus' ) == 'Online' ) then addOnlinePlayer( player ) end end elseif ( guiComboBoxGetItemText( GUIEditor.combobox[1], Sel ) == 'Offline' ) then guiGridListClear( GUIEditor.gridlist[1] ) for _, player in ipairs( getElementsByType( 'player' ) ) do if ( getElementData( player, 'chatStatus' ) == 'Offline' ) then addOfflinePlayer( player ) end end elseif ( guiComboBoxGetItemText( GUIEditor.combobox[1], Sel ) == 'Both (All)' ) then guiGridListClear( GUIEditor.gridlist[1] ) for _, player in ipairs( getElementsByType( 'player' ) ) do addPlayer( player ) end end end, 1500, 1 ) end; addEvent( 'onClientRemovePlayer_ChangedName', true ); addEventHandler( 'onClientRemovePlayer_ChangedName', root, player_ChangedName ) function sendMessage( eleEdit ) local parent = getElementParent( source ) if ( parent == false or not parent ) then return end local player = getPlayerFromName( guiGetText( parent ) ) if ( player == false or not player ) then return end if ( eleEdit == chat_Windows[player].editBox ) then sendNewMessage( player ) end end; addEventHandler( 'onClientGUIAccepted', root, sendMessage ); addEventHandler( 'onClientResourceStart', resourceRoot, function( ) triggerServerEvent( 'onServerSetPlayerSerial', Cplayer ) setTimer( function( ) for _, player in ipairs( getElementsByType( 'player' ) ) do addPlayer( player ) end end, 1000, 1 ) end );
    1 point
  15. ههههههههههههههههههه هذا المود مسروق من سيرفر مجانين الزومبي القديم ومدري من اعطاك ياه وصانع السكربت الاصلي معتزل والي هو @YourMind -- Corvo
    1 point
  16. In line 9 and 10, you have added root element to the event, means, when this for loop run it's first time, event already added to all players. So no need to add that event again to other. So I suggest to change the argument 2 of event handlers in line 9 and 10 to plrs. And what about the using of local variable called "executed" ?? local executed = false -- executed is false when resource starts -- Timer10 = setTimer( function () time0 = 1 for _,plrs in ipairs(getElementsByType("player")) do if ( getElementDimension (plrs) == 0 ) then if ( executed == false ) then addCommandHandler("usemedkit", usethemedkit) addCommandHandler("acceptmedkit", healOthers) addEventHandler("meds.giveMedKit", root, giveMedKit) addEventHandler("meds.useMedKitOnOther", root, usemedkitanother) executed = true end if ( executed ) then killTimer(Timer10) end if ( getElementDimension (plrs) == 336 ) then if ( executed ) then killTimer(Timer10) end if ( executed == false ) then resetTimer(Timer10) end if ( executed ) then killTimer(Timer10) end timer0 = timer0 - 1 if ( timer0 < 0 ) then killTimer(Timer10) end end end end end, 1000, 0)
    1 point
  17. Then just add the commands don't put it in a timer. function name(player) if getElementDimension(player) == 0 then -- only execute if the player's dimension is 0 --code end end addCommandHandler("usemedkit", name) -- or function name(player) if getElementDimension(player) ~= 336 then -- only execute if the player's dimension is not 336 --code end end addCommandHandler("usemedkit", name)
    1 point
  18. Why do you have that inside of a timer? This is what you're doing function usethemedkit() --code end addCommandHandler("usemedkit", usethemedkit) addCommandHandler("usemedkit", usethemedkit) addCommandHandler("usemedkit", usethemedkit)........ and it will keep adding command handlers to the same functions over and over if you want to disable a function in a dimension just check the player's dimension when they use the command.
    1 point
  19. اطرح اكواد الكلنت
    1 point
  20. مبدع من الافضل , للافضل
    1 point
  21. الحمدالله والصلاه والسلام على اشرف الانبياء والمرسلين تم اغلاق مجتمع العرب , ستظل جميع الخدمات تعمل حتى انتهاء المدة جميع حقوق الموظفين من اموال او غيرها لاتسترد لان العمل كان تشاركي بيننا وبين الموظف اذا كان الموظف يريد الاستمراريه في مجتمع العرب له ذلك , تحياتي للجميع
    1 point
  22. الحمدالله والصلاه والسلام على اشرف الانبياء والمرسلين تم اغلاق مجتمع العرب , ستظل جميع الخدمات تعمل حتى انتهاء المدة جميع حقوق الموظفين من اموال او غيرها لاتسترد لان العمل كان تشاركي بيننا وبين الموظف اذا كان الموظف يريد الاستمراريه في مجتمع العرب له ذلك , تحياتي للجميع
    1 point
  23. استمر في الابداع يا بطل , وحاول تسوي الاحسن والاحسن ان شاء الله , بالتوفيق لك وللجميع
    1 point
  24. عمل جميل, بالتوفيق لك
    1 point
  25. صكك ميوت سنة كاملة لانك تستهبل وتطقطق عليه انا قلت سابقا اني معتزل تقعد تقله ي مانستر انت ابراهيم او تقله برمجة ابراهيم احسن من برمجتك والرد ذاك كان لك انت بالذات عشان تفهم اني معتزل , مدري انا افهم ***** على هيئة انسان ولا وش وتستاهل اللي جاك
    1 point
  26. Not going to be based at all on original editor, and all of the other stuff is already planned; also it's actually going to be an incredibly easy editor to learn / use. GUI isn't to complex.
    1 point
  27. عدلت عالكود انت اخذته قبل التعديل, خذه الحين
    1 point
  28. addCommandHandler("tst", function( ) local i = 60 timer = setTimer( function() i = i - 1 setGameType( tostring ( i ) ) end, 1000, 0 ) end )
    1 point
  29. 1 point
  30. اشطفه كذا نظامه بكل المواضيع . لاتعطيه وجه
    1 point
  31. Good luck finding partners with this low quality post.
    1 point
  32. local zones = { -- whatever content there would be } function saveZones() if fileExists("zones.json") then fileDelete("zones.json") -- if the file exists, delete it to clear it end local f = fileCreate("zones.json") if not f then outputDebugString("failed to create zones.json") return end fileWrite(f, toJSON(zones)) -- JSONify the zones table and write it to f (file handle for zones.json) fileClose(f) -- make sure to close the file so there's no memory leaks end function loadZones() if not fileExists("zones.json") then return end -- no save file, abort here local f = fileOpen("zones.json", true) if not f then outputDebugString("failed to open zones.json for reading") return end local content = fileRead(f, fileGetSize(f)) zones = fromJSON(content) -- assign the zones table to the de-JSONified content of the zones.json file fileClose(f) -- make sure to close the file so there's no memory leaks end I haven't actually tested this but it should work unless I misspelled some function or forgot an argument somewhere. Also worth noting, toJSON does not work with elements and userdata - you cannot place a player element there but you could place the player name.
    1 point
  33. وانا ايش دراني انه فكرته انا ما شفت موضوعه
    1 point
  34. نو triggerEvent لو انت سويت حدث في ملف سيرفر وتبي مثلا تجيب نفس الحدث في نفس ملف السيرفر تسوي triggerEvent مثال addEvent("tst", true) addEventHandler("tst", root, function() outputChatBox("welcome", source) end ) addEventHandler("onPlayerLogin", root, function() triggerEvent( "tst", source ) end )
    1 point
  35. اتوقع مثلا سويت ترايقر بملف سيرفر تقدر تتصل فيه بملف كلاينت بمود ثاني هذا مثال واتوقع تقدر تستخدمه بطرق ثانية
    1 point
  36. addEventHandler("onPlayerWasted", root, function(_, killer) if killer and killer ~= source and getElementType(killer) == "player" then if ( getElementData (killer, "Damage" ) == true ) then setElementData( killer, "Damage", false ) end end end ) -- جرب
    1 point
  37. for _,ob in ipairs ( getElementsByType ( "object" , resourceRoot ) ) do setObjectBreakable ( ob , false ) end حطه بكلينت الماب وبيصير بس ع الماب
    1 point
  38. You could simply use table.insert to add the new zone into the table, however that would only last until the server or client (depending whether the script file is server side or client side) is restarted. If you want it to be permanent, you would have to either: 1) have the script edit itself and write into new lines in the source file, or 2) implement a saving system so you can save and load the table from a different file that's easier to edit The second option could be easily accomplished by simply writing the toJSON notation of the zones table into a file and then load it by assigning the zones table to the result of fromJSON of the save file's contents.
    1 point
  39. السلام عليكم تم صكي بان 30 يوم بسبب كلمة فشيخ اسف يرجو التواصل مع الادار ه فكه الاسم مستر تياقو
    1 point
  40. 1 point
  41. I'm a little ashamed of that first version I released. I never planned to release it, I just started working on it some day for fun and didn't spend much time on planning it or writing good code, therefore it was kinda dirty. But then it got bigger and I felt like it would be a waste of time if I didn't release it, so it's good to hear that despite of the problems of the that version, it was useful to some people.
    1 point
  42. نفترض ان الاعب كتب الكلمة اكثر من مرة ؟ وش بيصير
    1 point
  43. عليكم السلام تستخدم المتغيرات وكل لاعب يكتب الكلمة تزود على المتغير 1 وبس يصير العدد اكبر من او يساوي 10 تسوي روتيرن
    1 point
  44. السلام عليكم ورحمة الله وبركاته .... مب لاقي شي اسويه ولا اي افكار فقلت خلني اشرح بعض الاشياء .... شرحي رح يكون عن setTimer .... والـ هو مؤقت يسوي شي كل وقت او يسوي شي بعد فترة محددة .... طيب خلنا نبدأ على بكرة الله .... المثال الاول رح اشرح فيه طريقة انشاء شي معين كل فترة معينة -- server function theFunctionName ( ) exports["guimessages"]:outputServer(root,"message from server file.",0,255,0,root) -- YourCode end setTimer ( theFunctionName, 5000, 0 ) -- لاحظ الرقم 0 -- client function theFunctionName ( ) exports["guimessages"]:outputClient("message from client file.",0,255,0) -- YourCode end setTimer ( theFunctionName, 5000, 0 ) -- لاحظ الرقم 0 المثال الثاني رح اشرح فيه طريقة انشاء شيء معين بعد فترة معينة -- server function theFunctionName ( ) exports["guimessages"]:outputServer(root,"message from server file.",0,255,0,root) -- YourCode end setTimer ( theFunctionName, 5000, 1 ) -- لاحظ الرقم 1 -- client function theFunctionName ( ) exports["guimessages"]:outputClient("message from client file.",0,255,0) -- YourCode end setTimer ( theFunctionName, 5000, 1 ) -- لاحظ الرقم 1 اذا لاحظتوا الفرق بين المثال الاول والمثال الثاني وهو شي واحد وهو الرقم 0 و الرقم 1 وهم يتحكمون في نوع المؤقت المؤقت مع الرقم 0 يسوي شي معين كل فترة معينة المؤقت مع الرقم 1 يسوي شي معين بعد فترة معينة المثال الثالث رح اشرح فيه كيفية تحديد وقت المؤقت .... واللي ما يعرف هذا الشي علامة الضرب [ * ] علامة القسمة [ / ] علامة الطرح [ - ] علامة الجمع [ + ] رح تقولولي وش فائدتهم بقولكم تقدرون تستفيدون منهم في البرمجة .... وقت المؤقت يكون عبارة عن 1000 جزء من الثانية بمعنى 1000 ميلي ثانية = ثانية .... طيب بنشوف مثال -- server -- guimessages ( outputServer ) function theFunctionName ( ) exports["guimessages"]:outputServer(root,"message from server file.",0,255,0) end setTimer ( theFunctionName, 5000, 0 ) -- رقم 5000 = 5 ثواني -- يمكن كتابته بصورة مختلفة مثل setTimer ( theFunctionName, 5*1000, 0 ) -- 1000 * 5 = 5000 وهذه فائدة الضرب -- طيب اذا ابي اسوي مؤقت يخرج رسالة كل 5 دقائق مثلاً وش اسوي ؟ -- هذا المثال يوضح كيف function Timer5 ( ) -- Timer5 = اسم الامر ويمكن كتابته اي شيء تريده exports["guimessages"]:outputServer(root,"مرحباً بك في السيرفر",0,255,0) end setTimer ( Timer5, (5*60*1000), 0 ) -- 5*60*1000 = 5 دقائق هذا الـ عندي اتمنى انكم استفدتم اذا ما فهمت الكود اكتب تعليق وبساعدك بإذن الله اذا قصرت في الشرح فأنا آسف هذا اول شرح لي والقادم افضل بإذن الله ... ... والسلام عليكم ورحمة الله وبركاته ...
    1 point
  45. The link to the download is dead. Can someone please re-upload the script? Slothman is nowhere to be found, it looks like he has left the MTA scene forever.
    1 point
  46. السلام عليكم ورحمة الله تعالى وبركاته كيف الحال ؟ عساكم طيبين وبخير اليوم معنا الشرح الثانية من سلسلة "#دروس_برمجة" شرح عن الداتا وكيفية استخدامها ووش الفائدة منها, لمشاهدة الشرح : لو عجبك المقطع لاتبخل علي بـالضغط على زر لايك, وتشترك لو ماكنت مشترك دعمكم مهم بالنسبة لي في أمان الله تعالى, اخوكم مستر جراند
    1 point
  47. Hello ! i have problem on dimension i set the 3. marker dimension 1 but i go dimension 0 and i see gui i how fix it ? please help marker = createMarker( -1240.044921875, 472.73046875, 6.1875, "cylinder", 1.5, 255, 0, 0, 255 ) marker2 = createMarker( 2817.818359375, -1449.072265625, 27.15625, "cylinder", 1.5, 255, 0, 0, 255 ) marker3 = createMarker( -1950.7351074219, 146.02836608887, 27.654912948608, "cylinder", 1.5, 255, 0, 0, 255 ) setElementDimension (marker3, 1) function show2(hitPlayer) if (source == marker) then triggerClientEvent (hitPlayer,"show",getRootElement(),hitPlayer) elseif (source == marker2) then triggerClientEvent (hitPlayer,"show",getRootElement(),hitPlayer) elseif (source == marker3) then triggerClientEvent (hitPlayer,"show",getRootElement(),hitPlayer) end end addEventHandler("onMarkerHit", getRootElement(),show2)
    1 point
  48. If anyone has finished this script, or is interested in taking it over, please let me know.
    1 point
×
×
  • Create New...