Leaderboard
Popular Content
Showing content with the highest reputation on 28/06/18 in Posts
-
السلام عليكم ورحمة الله وبركاته MTA اخباركم يا اعضاء منتدى اليوم بقدملكم مود البنك الجديد من برمجتي كل شيء يخص الموضوع بتلاقوه في هذا الرابط واحب اشكر الأخ نكست والأخ عبد الكريم لمساعدتهم لي في كود من الاكواد الإهداءات : جميع أعضاء المنتدى في امان الله6 points
-
لو بغيت الصراحه مستغرب كيف مسوي مود كذا وقاعد تسوي طلبات بموقع البرمجه اسهل من الموجود بالمود ذا بكثير باختصار انت زارف حقوق خخ3 points
-
انت شكلك منت قادر تفهم او تستوعب ان السيرفر الي مالكه مانستر وابراهيم كان ادمن عنده , وهو يستقبل الاخبار من مانستر ويجي هنا يقولها لكم لا تسوي فيها قفيط ومدري وش ترا كلامك كله غلط بغلط الاخبار تجيه من مانستر وهو يجي هنا ويقولها لكم لو كان على مانستر يجي هنا ويرد عليك بنفسه لكن الرجال مكبر عقله والدليل الميوت الي جاك عشان تفهم2 points
-
سكربت رائع , جميل , على اني مافهم للزومبي للدرجة دي , ومدري وش الحصري ووش مو الحصري المهم سكربت رائع وجميل جدا , وتسلم على الاهداء بالتوفيق لك , وللكل ان شاء الله2 points
-
https://www.instagram.com/2u_quran/ كان حساب اباحي لشخص فرنسي وتم سحب حسابه وحذف بقرابة 1400 صورة غير لائقة2 points
-
2 points
-
تسلم لانك اخبرتني , لاكن شو نسوي في كثير سيرفرات سوت الراتب حياك الله اخوي2 points
-
2 points
-
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. Bonsai1 point
-
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
-
السلام عليكم و رحمة الله و بركاته اليوم جايب لكم مود الفيب المطور و الحصري لسيرفرات الزومبي VIP المود يشتغل على رتبة اسمها F10 للفتح اضغط طبعا فيه خاصيات كثيرة و مميزة صور للفيب رابط التحميل https://up.top4top.net/downloadf-909tq1nq1-rar.html الاهداءات @#DesTroeyR @,#Savage @#_iMr,[E]coo @Abdul KariM @#[K]iLLeR<3 @MrKAREEM1 point
-
يب , لكن الخدمات بتقعد شغاله لين تنتهي , واذا كان لك نيه ب التجديد فلا مشكلة في ذلك ابدا لكن مانستقبل طلبات جديده1 point
-
يب بس يمسح علامات الـ = وتضبط معه 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
-
Client :- triggerServerEvent("onGetSave",localPlayer) showCursor ( true ) addEvent("onPutSave",true) addEventHandler("onPutSave",root, function (puser,ppass) guiSetText(user,puser) guiSetText(pass,ppass) end ) addEventHandler("onClientGUIClick",root, function () local user = guiGetText(user) local pass = guiGetText(pass) if ( source == btn.login ) then if user ~= "" and pass ~= "" then if guiCheckBoxGetSelected(remember) then triggerServerEvent("onLoginWith",localPlayer,user,pass) else triggerServerEvent("onLogin",localPlayer,user,pass) end else outputChatBox("* You Must Write Username Or Password",255,0,0) end elseif ( source == btn.reg ) then if user ~= "" and pass ~= "" then triggerServerEvent("onReg",localPlayer,user,pass) else outputChatBox("* You Must Write Username Or Password",255,0,0) end end end ) ---------------------------------------------------------------------------- addEventHandler ( "onClientGUIClick", resourceRoot, function ( ) if ( source == gust ) then guiSetVisible ( main, false ) showCursor ( false ) end end ) addEvent("onCl",true); addEventHandler("onCl",root,function() guiSetVisible(main,false) showCursor(false) end ) بالنسبة لـ حق التسجيل التلقائي , بروح الحمام وأجي اسويه لآ تنسى اللايك "1 point
-
اكوادك ناقصه !! لكن حاولت اسويها مع انها ناقصه . تفضل 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
-
ههههههههههههههههههه هذا المود مسروق من سيرفر مجانين الزومبي القديم ومدري من اعطاك ياه وصانع السكربت الاصلي معتزل والي هو @YourMind -- Corvo1 point
-
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
-
function function_name(command) if command == "say" then --code end end addEventHandler("onPlayerCommand", root, function_name)1 point
-
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
-
الحمدالله والصلاه والسلام على اشرف الانبياء والمرسلين تم اغلاق مجتمع العرب , ستظل جميع الخدمات تعمل حتى انتهاء المدة جميع حقوق الموظفين من اموال او غيرها لاتسترد لان العمل كان تشاركي بيننا وبين الموظف اذا كان الموظف يريد الاستمراريه في مجتمع العرب له ذلك , تحياتي للجميع1 point
-
استمر في الابداع يا بطل , وحاول تسوي الاحسن والاحسن ان شاء الله , بالتوفيق لك وللجميع1 point
-
صكك ميوت سنة كاملة لانك تستهبل وتطقطق عليه انا قلت سابقا اني معتزل تقعد تقله ي مانستر انت ابراهيم او تقله برمجة ابراهيم احسن من برمجتك والرد ذاك كان لك انت بالذات عشان تفهم اني معتزل , مدري انا افهم ***** على هيئة انسان ولا وش وتستاهل اللي جاك1 point
-
1 point
-
1 point
-
addCommandHandler("tst", function( ) local i = 60 timer = setTimer( function() i = i - 1 setGameType( tostring ( i ) ) end, 1000, 0 ) end )1 point
-
انا اعتزلت من محاربين الصراحة احببته و كنت اتواجد فيه كثير بس هاذ اللي اسمه مونستر او مانستر او مدري شسمه ، صكني ميوت سنة على سبب تافه جداا و على فكره كل الناس تكرهه و مو مخليهم على راحتهم و انا اتوقع انه عنده الحق @#[K]iLLeR<3 اتمنى انك تصفي هاذ الادمن و شكرا ~1 point
-
1 point
-
1 point
-
استبدل ذا بالسيرفر, واستعمل كودي الاول حق الزر عشان تعطيه الساعات exports.scoreboard:addScoreboardColumn('PlayTime') addEvent("addTime",true) addEvent("removeTime",true) addEvent("ToServer",true) addEventHandler("onResourceStart",resourceRoot, function ( ) executeSQLQuery ( "CREATE TABLE IF NOT EXISTS Prestege2_Save_Time ( PlayerAccount,Hours,Minuts,Seconds,PlayAllTime )" ) outputDebugString ("Execute SQL Loadded !") end ) local t = { } local w = {} addEventHandler("ToServer",root, function (word,get,time) if word and tonumber(get) and tonumber(time) then table.insert(w,{word,get}) setTimer(function () for _,v in ipairs(w) do if v[1] == word and v[2] == get then table.remove(w,i) end end end,time*60*60*1000,1) end end ) addEventHandler("onConsole",root, function (msg) for _,v in ipairs(w) do if msg == v[1] then local playeraccount = getPlayerAccount ( source ) if ( playeraccount ) and not isGuestAccount ( playeraccount ) then if not getAccountData ( playeraccount, "time-"..msg) then addPlayerTime(source,v[2]) setAccountData( playeraccount, "time-"..msg,true) outputChatBox ("#000000||=[Twze3_System]=|| :#00FF00 تم اعطائك الساعات ", source, 0, 255, 0) else outputChatBox ("#000000||=[Twze3_System]=|| :#FF0000 تم اعطائك ساعات من قبل", source, 255, 0, 0) end end end end end ) addEventHandler("addTime",root, function (to,time,prize,name) if to == "all" then for _,v in ipairs(getElementsByType("player")) do addPlayerTime(v,time) outputChatBox ("تم توزيع "..time.." ساعة لـ جميع اللاعبين",v,255,0,0,true ) end elseif to == "buy" then if ( name and name ~= "" ) then if ( prize and prize ~= 0 ) then local plr = getPlayerFromName ( name ) if ( plr ) then if ( getPlayerMoney ( plr ) >= prize ) then addPlayerTime(plr,time) outputChatBox ("تم أضافة "..time.." ساعة الى حسابككـ",plr,255,0,0,true ) takePlayerMoney ( plr, prize ) else outputChatBox ("#FF0000* #ffffff ليس لديك مال كافي",plr,0, 255, 0,true ) end end end end else plr = getPlayerFromName(to) if plr then addPlayerTime(plr,time) outputChatBox ("تم أضافة "..time.." ساعة الى حسابككـ",plr,255,0,0,true ) end end end ) addEventHandler("removeTime",root, function (to,time) if to == "all" then for _,v in ipairs(getElementsByType("player")) do removePlayerTime(v,time) outputChatBox ("تم حذف "..time.." ساعة من جمييع الاعبين",v,255,0,0,true ) end else plr = getPlayerFromName(to) if plr then removePlayerTime(plr,time) outputChatBox ("تم حذف "..time.." ساعة من حسآبككـ ",plr,255,0,0,true ) end end end ) function addPlayerTime(plr,time) time = math.floor(time) t[plr]['hour'] = tonumber(t[plr]['hour'] or 0) + time end function removePlayerTime(plr,time) time = math.floor(time) t[plr]['hour'] = tonumber(t[plr]['hour'] or 0) - time end function checkValues( source,arg1,arg2) if (arg2 >= 60) then t[ source ][ 'min' ] = tonumber( t[ source ][ 'min' ] or 0 ) + 1 t[ source ][ 'sec' ] = 0 end if (arg1 >= 60) then t[ source ][ 'min' ] = 0 t[ source ][ 'hour' ] = tonumber( t[ source ][ 'hour' ] or 0 ) + 1 end return arg1, arg2 end setTimer( function( ) for _, v in pairs( getElementsByType( "player" ) ) do if (not t[ v ]) then t[ v ] = { ["hour"] = 0, ["min"] = 0, ["sec"] = 0 } end t[ v ][ 'sec' ] = tonumber( t[ v ][ 'sec' ] or 0 ) + 1 local min,sec = checkValues ( v, t[ v ][ 'min' ] or 0, t[ v ][ 'sec' ] or 0 ) local hour = tonumber( t[ v ][ 'hour' ] or 0 ) setElementData( v, "PlayTime", tostring( hour )..':'..tostring( min )..':'..tostring( sec ) ) end end, 1000, 0 ) function SaveDataOnQuit () local acc = getPlayerAccount (source) if not isGuestAccount (source) then local sValue = getElementData( source,'PlayTime' ) local hour = tonumber( t[ source ][ 'hour' ] or 0 ) local min = tonumber( t[ source ][ 'min' ] or 0 ) local sec = tonumber( t[ source ][ 'sec' ] or 0 ) local accountName = getAccountName (acc) local Results = executeSQLQuery("SELECT * FROM Prestege2_Save_Time WHERE PlayerAccount=?", accountName) if ( type ( Results ) == "table" and #Results == 0 or not Results ) then executeSQLQuery ( "INSERT INTO Prestege2_Save_Time ( PlayerAccount,Hours,Minuts,Seconds,PlayAllTime ) VALUES(?,?,?,?,?)", accountName,hour,min,sec,sValue ) else executeSQLQuery('UPDATE Prestege2_Save_Time SET Hours =?, Minuts =?, Seconds =?, PlayAllTime =? WHERE PlayerAccount =?', hour, min, sec, sValue, accountName) end t[ source ] = nil end end addEventHandler ("onPlayerQuit", root, SaveDataOnQuit) function SaveDataOnStop () for _,v in ipairs (getElementsByType ("player")) do if not isGuestAccount (getPlayerAccount (v)) then local acc = getPlayerAccount (v) local sValue = getElementData( v,'PlayTime' ) if not ( t [ v ] ) then t [ v ] = { } end local hour = tonumber( t[ v ][ 'hour' ] or 0 ) local min = tonumber( t[ v ][ 'min' ] or 0 ) local sec = tonumber( t[ v ][ 'sec' ] or 0 ) local Results = executeSQLQuery("SELECT * FROM Prestege2_Save_Time WHERE PlayerAccount=?", getAccountName (acc)) if ( type ( Results ) == "table" and #Results == 0 or not Results ) then executeSQLQuery ( "INSERT INTO Prestege2_Save_Time ( PlayerAccount,Hours,Minuts,Seconds,PlayAllTime ) VALUES(?,?,?,?,?)", getAccountName (acc), hour,min,sec,sValue) else executeSQLQuery('UPDATE Prestege2_Save_Time SET Hours =?, Minuts =?, Seconds =?, PlayAllTime =? WHERE PlayerAccount =?', hour, min, sec, sValue, getAccountName (acc)) end end end end addEventHandler ("onResourceStop", resourceRoot, SaveDataOnStop) function GetDataOnStart () for _,v in ipairs (getElementsByType ("player")) do if not isGuestAccount (getPlayerAccount (v)) then local acc = getPlayerAccount (v) local Results = executeSQLQuery("SELECT * FROM Prestege2_Save_Time WHERE PlayerAccount=?", getAccountName (acc)) if ( type ( Results ) == "table" and #Results == 0 or not Results ) then return end if not t[ v ] then t[ v ] = {} end t[ v ]["hour"] = tonumber(Results[1]["Hours"]) t[ v ]["min"] = tonumber(Results[1]["Minuts"]) t[ v ]["sec"] = tonumber(Results[1]["Seconds"]) end end end addEventHandler("onResourceStart", resourceRoot, GetDataOnStart) function GetDataOnLogin (_, acc) local Results = executeSQLQuery("SELECT * FROM Prestege2_Save_Time WHERE PlayerAccount=?", getAccountName (acc)) if ( type ( Results ) == "table" and #Results == 0 or not Results ) then return end setElementData (source, "PlayTime", Results[1]["PlayAllTime"]) if not t[ source ] then t[ source ] = {} end t[ source ]["hour"] = tonumber(Results[1]["Hours"]) t[ source ]["min"] = tonumber(Results[1]["Minuts"]) t[ source ]["sec"] = tonumber(Results[1]["Seconds"]) end addEventHandler ("onPlayerLogin", root, GetDataOnLogin) addCommandHandler('ساعات', function(thePlayer) if getPlayerSerial (thePlayer) == "0201F96FC2B860A7CE6716140C7828F3" then triggerClientEvent(thePlayer,'openn',thePlayer) end end )1 point
-
1 point
-
1 point
-
1 point
-
نو triggerEvent لو انت سويت حدث في ملف سيرفر وتبي مثلا تجيب نفس الحدث في نفس ملف السيرفر تسوي triggerEvent مثال addEvent("tst", true) addEventHandler("tst", root, function() outputChatBox("welcome", source) end ) addEventHandler("onPlayerLogin", root, function() triggerEvent( "tst", source ) end )1 point
-
اتوقع مثلا سويت ترايقر بملف سيرفر تقدر تتصل فيه بملف كلاينت بمود ثاني هذا مثال واتوقع تقدر تستخدمه بطرق ثانية1 point
-
لو سويتها بسكربت لحاله أفضل باستخدام triggerEvent ( "addTime", source, getPlayerName(source),tonumber(1) ) بدون ما تعدل بمود الساعات جرب بمود مستقل * Server addEvent("BuyTime",true) addEventHandler("BuyTime",root, function () if not isGuestAccount(getPlayerAccount(source)) then if getPlayerMoney(source) >= tonumber(50000) then takePlayerMoney(source,50000) triggerEvent ( "addTime", source, getPlayerName(source),tonumber(1) ) -- 1 عدد الساعات outputChatBox("* تم الشراء ",source,0,255,0) else outputChatBox("* You Don't Have Enough Money",source,255,0,0) end else outputChatBox("* You Are Not Logged In",source,255,0,0) end end ) Client addEventHandler("onClientGUIClick",root, function () if source == buy then triggerServerEvent("BuyTime",localPlayer) end end ) واذا كان فيه خطأ اتمنى المعذرهـ * لأن ما افهم كثير بالتريقر1 point
-
1 point
-
1 point
-
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
-
for _,ob in ipairs ( getElementsByType ( "object" , resourceRoot ) ) do setObjectBreakable ( ob , false ) end حطه بكلينت الماب وبيصير بس ع الماب1 point
-
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
-
1 point
-
1 point
-
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
-
1 point
-
عليكم السلام تستخدم المتغيرات وكل لاعب يكتب الكلمة تزود على المتغير 1 وبس يصير العدد اكبر من او يساوي 10 تسوي روتيرن1 point
-
السلام عليكم ورحمة الله وبركاته .... مب لاقي شي اسويه ولا اي افكار فقلت خلني اشرح بعض الاشياء .... شرحي رح يكون عن 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
-
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
-
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
-
1 point
-
1 point
