Jump to content

Ryancit2

Members
  • Posts

    266
  • Joined

  • Last visited

Everything posted by Ryancit2

  1. GUI Editor main banao lekin basic maths ki zaroorat ho gi, tumhain client ki screen resolution dekh kar us k accordingly alignment karni ho gi, like, tumhain ye cheezain ani chahiye (class 6 ka syllabus ) Direct and inverse relations... Percentage relations... Convert percent to number and degree etc... Lekin wo weather script main sirf percentage use ho rahi hai, in future you'll need to know better about these.
  2. So tum dbExec use karo gay entries dalnay ke liye? Agar server 1 minute main 1000 entries ki request kar raha hai to kitnay tables honay chahiye db main?
  3. For example, uss GUI ka output ye hota hai: addEventHandler("onClientResourceStart", root, function() guiEditor.Window[1] = -- arguments -- more GUI stuff... end ) Tum isey edit kar ke ye banao: -- Event aur function ko delete karo... -- Under k elements ko wesay hi rehnay do... guiEditor.Window[1] = -- arguments... -- GUI Elements ke aakhir main ye likho: guiSetVisible(guiEditor.Window[1], false) -- Window ko hide karo resource start hotay hi... -- Ab GUI show karo: function toggleGUI() guiSetVisible(guiEditor.Window[1], (not guiGetVisible(guiEditor.Window[1]))) -- Is function se pehlay check karega k window visible hai, agar yes to hide ho jaye gi agar no to phir show ho jaye gi... showCursor(not isCursorShowing()) -- Is function se check karega k cursor show ho raha hai, agar yes to hide kar de ga agar no to phir show karega. end addCommandHandler("toggle", toggleGUI)
  4. Iss main tumhain kafi kuch seekhnay ko milega, check karo kesay images ko arrange kartay hain, etc etc.
  5. You should know ke wohi akela player hai jis ne akelay 1 server ko 3 saloon se top par rakha hai, is ke pechay kuch reasons hain, wo zyada focus script ki performance par karta hai. Maine usay 1000+ lines long script di jis par community ne 100+ positive votes kiye thay, us ne semi-accept kar k mujhay bataya k dekhnay main script outstanding bhi ho lekin wo server ki performance ko kharab karti hai.Acha performance k related 1 simple question hai, tum database ko kesay use kartay ho server main? Yani entries update kesay kartay ho etc etc? Apni server performance experience ke related meray sawal ka jawab do: Acha performance k related 1 simple question hai, tum database ko kesay use kartay ho server main? Yani entries update kesay kartay ho etc etc?
  6. DxGUI ka to kuch khaas pata nahi lekin professional scripters normal GUI prefer kartay hain kyun k is se FPS low nahi hota aur server performance better rehti hai. Aur DxDraw ki jaga tum pictures se bhi gui bana saktay ho, meri weather wscript dekho, pictures se GUI banaya hai, it looks good.
  7. Lekin phir bhi, it takes full-working-days, tumhain studies se dheyan hatana parega plus tum abhi itnay expert nahi ho k scripting k sath sath server performance ko b set rakho. Tumhain abhi scripting ati ho gi, maybe tum professional scripter ho lekin professionals bhi har maan jatay hain jab server performance kharab hoti hai. Maine Arran se server performance ki classes li theen, believe me its really hard to maintain it.
  8. lol you can't use CreateWeapon() funtion server side. try to use this : triggerClientEvent(root, "onCreateUzi", root,pX,pY,pZ) Excuse me, read my second reply, i also suggested creating weapon via serverside by triggerClientEvent
  9. addEventHandler("onClientGUIClick", closeButton, closeWindow, false) addEventHandler("onClientGUIClick", buyVipButton, openWindow1, false) addEventHandler("onClientGUIClick", buyingCloseButton, closeWindow1. false) addEventHandler("onClientGUIClick", backButton, backWindow, false) addEventHandler("onClientGUIClick", First, finishFirstOpen, false) addEventHandler("onClientGUIClick", finishFirstCancel, finishFirstClose, false) Add 'false' at end of onClientGUIClick events, that makes it forced to be triggered only when clicked on child but not on parent.
  10. Ryancit2

    Paintjobs

    In that case try some modding softwares, then make txd and dff, then add to MTA using engineApplyShader functions.
  11. addCommandHandler on serverside and trigger that for client by: triggerClientEvent(player, "createBatPod", player) Then try, i think that would work.
  12. If there is a table like this: houses = { {'acc, houseID'}, {'acc, houseID'}, } Then it'll be easier, if you don't have such table then make one and then try something like this: function lockHouses(acc) for k, v in pairs (houses) do if v[1] == acc then lockInterior(v[2]) -- lockInterior() is another function which you should make on your own. return true end end end function quitHandler() local acc = getAccountName(getPlayerAccount(source)) lockHouses(acc) end addEventHandler("onClientPlayerQuit", root, quitHandler) Although this is just an 'idea' on how you should work around with such cases, tables are used alot. Also, since we don't have any sample from your current work, i'd just assume you have a pre-made lockInterior() function, otherwise make one if you know what it should be
  13. He isn't asking about leave/enter sensor, he is talking about right side and left side coords of an object, simple.
  14. Let it go, Robvin likes #newTopix :fp: ;D
  15. No you didn't? Well, like i admitted, it was a mistake by my mate and we are saying sorry like he did, he abused and admitted himself.
  16. yar MHS hamesha loss hi hota hai, mera opinion lo aur na waste karo paisay, wait karo CIT main unban ho jao gay.
  17. That is hard somehow but not very much, you'll need to getElementPosition, then for left side corner, subtract some numbers from x axis and then add some numbers in x axis to get the right side corner. Hope you understood the pseudo, although it'll be way too hard to get the accurate positions because in some cases sides are in x-axis and in some cases it'll be in y-axis, you'll have to check how stripes are being placed first.
×
×
  • Create New...