Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 29/12/16 in all areas

  1. Once I've tried to make a weapon attached to a car (422, Bobcat), loosed my enthusiasm and never done the script, can you do it? The weapon would be used from outside the car, so that requires someone else to drive wile you shoot.
    2 points
  2. 1. go Admin folder 2. after that Open conf folder 3. after 2nd step open the messages.xml 4. replace lines 15-16 with this <all>$player has been banned$by_admin_4all. $data $data2 </all> <log>ADMIN: $admin has banned $player $data $data2</log> and lines 23-24 with this <all>$player has been muted$by_admin_4all. $data $data2 </all> <log>ADMIN: $admin has muted $player $data $data2</log> 5. save it 6. Try and enjoy it
    1 point
  3. السلام عليكم ورحمة الله وبركاته يمكنكم الان تعلم لغة الاس كيو ال عن طريق هذا الموقع http://www.w3schools.com/sql/default.asp في لغات كثيرة PHP HTML اتمنى قد اكون وفيت وكفيت
    1 point
  4. Turns out that MTA has a lot of redundant if statements like: if ( pPed ) { // Blah } else m_pScriptDebugging->LogBadPointer ( luaVM, "ped", 1 ); These checks have been unnecessary since the introduction of argStream and I'm guessing they're only still in the code because it's so time consuming to remove them all. I volunteer to go through all the files and delete any of these unnecessary checks but before I do that I want a developer with access to confirm that if I do this, they will merge my pull request(s). I have done 1 file reducing the file by 286 lines: https://github.com/ArranTuna/mtasa-blue/commit/ef83cee0b6024e73230d77b6225debc81e3d6492 I'm guessing removing them will have virtually no performance impact but removing so many redundant lines definitely improves code readability and I am happy to spend many hours finding and removing all of these statements I just need a confirmation from a developer.
    1 point
  5. or press P ingame Resources Manages ACL Group --> Admin Add Object ''resource.eventpanel'' ''resource.house_system''
    1 point
  6. it was my firewall. Actually I knew it could be my firewall but I had my windows language changed to russian ( I don't :Oing know why ) and I couldn't change anything in my windows because I was afraid not to :O up. Anyways, I changed my windows language and allowed the file in the firewall settings. Thank you <3
    1 point
  7. هو يبي يسوي عدد مرات الفوز + عدد مرات اللعب هنا الاكاونت داتا ما راح يحفظ جداول إلا بإستعمال الجسون, وطبعاً ما أظنه يعرف يستخدمها لذلك في هذه الحالة قواعد البيانات أسهل له بكثييييير
    1 point
  8. use this function https://wiki.multitheftauto.com/wiki/DxDrawTextOnElement
    1 point
  9. كل شخص ومقدرته, انا وضحت له الفكرة وهو حر الأختيار ^
    1 point
  10. ليه داتا ؟ مايحتاج داتا اصلا انت راح تسوي حفظ وراح تسوي خلي كل شي عن طريق السكل ليه الداتا والمشورة , وبالنسبة لـ قراند نفترض الاعب ماعنده حساب وفاز اكثر من مره كيف راح تحفظ نقاطه ؟ وكيف صار الاكونت داتا بالحالة افضل من السكل ؟ اخالفك تماما
    1 point
  11. I think he asked about idea to do that, So, عند مايفوز اللاعب تحطله داتا بناء على الداتا القديمة والجديدة وتزيدهم كل مرة ^ وتزيد مرات اللعب لما يقوله المرجو الإنتظار ويدخل ... طبعا تقدر تستخدم SQL, Account Data والافضل هنا الأكاونت داتا ^
    1 point
  12. 'onPlayerQuit' 'onPlayerLogin' getPlayerAccount getPlayerMoney getAccountData setAccountData setPlayerMoney
    1 point
  13. Cum a zis și @Simple01 , merge dacă știi , și nu te lua după alții . Excelează așa cum poți tu și vei vedea într-un sfârșit dacă vei putea reuși să faci ceva calumea. Dar în ziua de azi .. pe partea de scripting MTA sunt unele servere de roleplay în care "fondatorii" nici nu știu să conecteze un server la o bază de date / să-l pornească / ș.a.m.d. În fine , îți urez succes, dar îți zic de pe acum nu se merită să hostezi un server dacă nu ai bază că știi ceva și știi cu ce se mănâncă.
    1 point
  14. function onPlayerLogin() account = getPlayerAccount(source) money = getAccountData(account,"bankmoney") setElementData(source,"bankmoney",money) setElementData(source,"account",account) end addEventHandler("onPlayerLogin",root,onPlayerLogin) function onPlayerLogout() account = getPlayerAccount(source) money = getElementData(source,"bankmoney") setAccountData(account,"bankmoney",money) end addEventHandler("onPlayerQuit",root,onPlayerLogout) 0 errors when i deposit money in bank and i recconect the money in bank back to 0 any solution ?
    1 point
  15. HUD Original in Libery City Result end Video demonstrative
    1 point
  16. Hey guys, thought I'd share this with the loving community of MTA. I know the current admin panel lacks some flags, so I spoke to a friend about it, I had the idea of finding the flags and adding them manually, then I thought it would takes ages, then he made a basic Lua code to process all the files and sort them. This will basically allow you to be able to have more flags on your server, if you use this on top of the 'TUT] Updating Admin Countries' everyone will have a flag. Steps Download these flags Extract all the images into the ':admin/client/images/flags' folder. Open up the meta.xml and remove the old tags for the flags only. Add these to the meta.xml: "client/images/flags/ad.png" /> "client/images/flags/ae.png" /> "client/images/flags/af.png" /> "client/images/flags/ag.png" /> "client/images/flags/ai.png" /> "client/images/flags/al.png" /> "client/images/flags/am.png" /> "client/images/flags/an.png" /> "client/images/flags/ao.png" /> "client/images/flags/ar.png" /> "client/images/flags/as.png" /> "client/images/flags/at.png" /> "client/images/flags/au.png" /> "client/images/flags/aw.png" /> "client/images/flags/ax.png" /> "client/images/flags/az.png" /> "client/images/flags/ba.png" /> "client/images/flags/bb.png" /> "client/images/flags/bd.png" /> "client/images/flags/be.png" /> "client/images/flags/bf.png" /> "client/images/flags/bg.png" /> "client/images/flags/bh.png" /> "client/images/flags/bi.png" /> "client/images/flags/bj.png" /> "client/images/flags/bm.png" /> "client/images/flags/bn.png" /> "client/images/flags/bo.png" /> "client/images/flags/br.png" /> "client/images/flags/bs.png" /> "client/images/flags/bt.png" /> "client/images/flags/bv.png" /> "client/images/flags/bw.png" /> "client/images/flags/by.png" /> "client/images/flags/bz.png" /> "client/images/flags/ca.png" /> "client/images/flags/cc.png" /> "client/images/flags/cd.png" /> "client/images/flags/cf.png" /> "client/images/flags/cg.png" /> "client/images/flags/ch.png" /> "client/images/flags/ci.png" /> "client/images/flags/ck.png" /> "client/images/flags/cl.png" /> "client/images/flags/cm.png" /> "client/images/flags/cn.png" /> "client/images/flags/co.png" /> "client/images/flags/cr.png" /> "client/images/flags/cs.png" /> "client/images/flags/cu.png" /> "client/images/flags/cv.png" /> "client/images/flags/cx.png" /> "client/images/flags/cy.png" /> "client/images/flags/cz.png" /> "client/images/flags/de.png" /> "client/images/flags/dj.png" /> "client/images/flags/dk.png" /> "client/images/flags/dm.png" /> "client/images/flags/do.png" /> "client/images/flags/dz.png" /> "client/images/flags/ec.png" /> "client/images/flags/ee.png" /> "client/images/flags/eg.png" /> "client/images/flags/eh.png" /> "client/images/flags/er.png" /> "client/images/flags/es.png" /> "client/images/flags/et.png" /> "client/images/flags/fi.png" /> "client/images/flags/fj.png" /> "client/images/flags/fk.png" /> "client/images/flags/fm.png" /> "client/images/flags/fo.png" /> "client/images/flags/fr.png" /> "client/images/flags/ga.png" /> "client/images/flags/gb.png" /> "client/images/flags/gd.png" /> "client/images/flags/ge.png" /> "client/images/flags/gf.png" /> "client/images/flags/gh.png" /> "client/images/flags/gi.png" /> "client/images/flags/gl.png" /> "client/images/flags/gm.png" /> "client/images/flags/gn.png" /> "client/images/flags/gp.png" /> "client/images/flags/gq.png" /> "client/images/flags/gr.png" /> "client/images/flags/gs.png" /> "client/images/flags/gt.png" /> "client/images/flags/gu.png" /> "client/images/flags/gw.png" /> "client/images/flags/gy.png" /> "client/images/flags/hk.png" /> "client/images/flags/hm.png" /> "client/images/flags/hn.png" /> "client/images/flags/hr.png" /> "client/images/flags/ht.png" /> "client/images/flags/hu.png" /> "client/images/flags/id.png" /> "client/images/flags/ie.png" /> "client/images/flags/il.png" /> "client/images/flags/in.png" /> "client/images/flags/io.png" /> "client/images/flags/iq.png" /> "client/images/flags/ir.png" /> "client/images/flags/is.png" /> "client/images/flags/it.png" /> "client/images/flags/jm.png" /> "client/images/flags/jo.png" /> "client/images/flags/jp.png" /> "client/images/flags/ke.png" /> "client/images/flags/kg.png" /> "client/images/flags/kh.png" /> "client/images/flags/ki.png" /> "client/images/flags/km.png" /> "client/images/flags/kn.png" /> "client/images/flags/kp.png" /> "client/images/flags/kr.png" /> "client/images/flags/kw.png" /> "client/images/flags/ky.png" /> "client/images/flags/kz.png" /> "client/images/flags/la.png" /> "client/images/flags/lb.png" /> "client/images/flags/lc.png" /> "client/images/flags/li.png" /> "client/images/flags/lk.png" />
    1 point
  17. Hello this is Tutorial of Advansed kill script ( Server-Side script ) 1. creating table local antispam = {} -- table 2. we use with command name addCommandHandler("kill", -- command 3. We make function function ( player ) -- function 4. an element to get players wanted level local getwantedlevel = getPlayerWantedLevel ( player ) -- get's Players wanted Level 5. We use table to make Player to can't use multible time the /kill ( /kill antispam with other words ) if player want use it before of 2 mins they will see the message if ( antispam[getPlayerSerial(player)] ) and ( getTickCount()-antispam[getPlayerSerial(player)] < 120000 ) then outputChatBox( "You can't use /kill Multible Times only once every 2 minutes!", player, 225, 0, 0 ) -- Using Table to make Antispam and can use it every 2 mins if player have realy use it it will send him message 6. checking wanted level to wanted players can't use kill ( to reduse abusing ) and if player have more that 0 stars then he can't use /kill elseif ( getwantedlevel > 0 ) then -- check if player have more that 0 stars outputChatBox( "You can't use /kill while Wanted", player, 225, 0, 0 ) -- send a message if he have more that 0 stars 7. if player use /kill after 2 mins and not wanted them else antispam[getPlayerSerial( player )] = getTickCount() -- to refresh time if he want use the /kill again setTimer( killPed, 5000, 1, player ) -- setTimer to froze player for 5 sec setElementFrozen ( player, true ) -- set's Player Zrozen outputChatBox( "You'll die in 5 seconds!", player, 255, 0, 0 ) -- Send to player the Message Final Code local antispam = {} -- table addCommandHandler("kill", -- command function( player ) local getwantedlevel = getPlayerWantedLevel ( player ) -- get's Players wanted Level if ( antispam[getPlayerSerial(player)] ) and ( getTickCount()-antispam[getPlayerSerial(player)] < 120000 ) then outputChatBox( "You can't use /kill Multible Times only once every 2 minutes!", player, 225, 0, 0 ) elseif ( getwantedlevel > 0 ) then outputChatBox( "You can't use /kill while Wanted", player, 225, 0, 0 ) else antispam[getPlayerSerial( player )] = getTickCount() -- to refresh time if he want use the /kill again setTimer( killPed, 5000, 1, player ) -- setTimer to froze player for 5 sec setElementFrozen ( player, true ) -- set's Player Zrozen outputChatBox( "You'll die in 5 seconds!", player, 255, 0, 0 ) -- Send to player the Message end -- close the if,elseif,else end -- close the function ) -- to close the command Meta .Xml of /kill Script <meta> <info author="CASTIEL" version="1.0" type="script" /> <script src="script.lua" type="server" /> </meta> Enjoy & Test it! Don't forget to Comment.
    1 point
×
×
  • Create New...