Jump to content

ALw7sH

Members
  • Posts

    1,165
  • Joined

  • Last visited

  • Days Won

    3

Everything posted by ALw7sH

  1. استخدم [lua][/*lua] + وش الخطأ الي يجيك عشان نعرف نصلحه
  2. ALw7sH

    House robbery

    the 2nd error shows error in line 105 and your screenshot for line 89 as you said
  3. ALw7sH

    House robbery

    did you defined percentage ? and if you did what is percentage ? variable,data etc..
  4. ALw7sH

    Script

    markerpracy = createMarker(1486.27441, -1738.05640, 13.54688, "cylinder", 1) function guji(hitElement) if getElementType(hitElement) == "player" then triggerClientEvent(hitElement,"okno", hitElement) end end addEventHandler("onMarkerHit", markerpracy, guji)
  5. وين سطر الايفنت onResourceStart or onClientResourceStart انسخهم ثنينهم وحطهم
  6. ALw7sH

    I Need Help

    AracAlMarker = createMarker(1628.3000488281, -1535.1999511719, 13, 'cylinder', 2, 76, 224, 30, 255) AracAlMarker2 = createMarker(1640, -1535.1999511719, 13, 'cylinder', 2, 76, 224, 30, 255) function AracAlMarkerAktif(element) if getElementType(element) == 'player' then if source == AracAlMarker or source == AracAlMarker2 then triggerClientEvent (source,"AracAlMarkerAktif",getRootElement()) end end end addEventHandler( "onMarkerHit", root, AracAlMarkerAktif )
  7. السكربت اختصارات مثلاً اختصار الى س1 تكتبها تصير السلام عليكم الاختصار مو لازم يكون الجمله لحالها يتغير الى قلب *heart* يعني مثلاً انا مسوي اختصار لو اكتب بالشات this is for you *heart* تطلع زي كذا this is for you ♥
  8. i was doing it with other method change it and forget to remove this argument
  9. Hello, So today i wanted to present my another new script i made. I will explain exactly what it does and how to do it. So this is a shortcuts for words. Find find out more about this script read below. What is this script about? This script is all about "shortcuts for words". f.example: To open the "shortcut panel", write /shortcut in chat or in F8. After you open it, you can easily change words from there. Let's say, you use a lot of: - LMFAO > Laughing my f*cking ass off - WTF > What the f*ck - FTW > For the win - FFS > For f*ck sake - BTW > By the way - GTG > Got to go Etc.... So shortcuts like those, you can change them to what you want. Let's say you have already change one of them(lmfao). And you write LMFAO in chat, but it will be pronounced as "Laughing my f*cking ass off".. If you want that LMFAO pronounce something different, then it's up to you to change what ever you want it to. This is how the shortcut panel looks like. When you see at the opened window, you'll see "shortcut" and "text". Another example, you write "kk" or "k" in shortcut and in text "ok". But it is optional, you can write what ever you want. http://photouploads.com/images/imgoj.jpg http://photouploads.com/images/imgoj.jpg badword filter can be enable/disable and bad words can be edited from SC_Client.lua file. Anyway, i hope you like it. If there is any bug, please report to me. https://community.multitheftauto.com/index.php?p= ... s&id=10914 Best regards ALw7sH
  10. السلام عليكم ورحمة الله سكربت بسيط يمديك تضيف اختصارات عشان تسهل وتسرع عليك الكتابه بأسم الحساب sqlite الاختصارات تنحفظ https://community.multitheftauto.com/index.php?p= ... s&id=10914
  11. ذا مثال افهم المثال واستخدم الفنكشن الي بالمثال وسو الي تبيه local position = { [1] = {50,50,50}, [2] = {100,100,100}, [3] = {500,500,500}, [4] = {2000,2000,2000}, } function findCloserPositionToPlayer(player) local dist = 99999999999 local lastCloserPosition = false local px,py,pz = getElementPosition(player) for k,v in pairs(position) do if getDistanceBetweenPoints3D(px,py,pz,v[1],v[2],v[3]) < dist then dist = getDistanceBetweenPoints3D(px,py,pz,v[1],v[2],v[3]) lastCloserPosition = position[k] end end return lastCloserPosition[1],lastCloserPosition[2],lastCloserPosition[3] end local pos1,pos2,pos3 = findCloserPositionToPlayer(getPlayerFromName("-TfB//#000000ALw7sH#~>")) outputChatBox(pos1..","..pos2..","..pos3)
  12. https://wiki.multitheftauto.com/wiki/SetDevelopmentMode استخدم الفنكشن وفعل الخاصيه ذي واستخدم ذا الكومند showcol عشان تقدر تشوف الكول شب وترا الشي الي تبي تسويه مو لازم كول شب يمديك تسوي جدول بأحداثيات كل المستشفيات واذا مات يشوف اقرب واحد له ويرسبنه فيه وبالنهايه كل ذي الاشياء صعبه على مبتدئ ف لو تبي نصيحتي حاول تسوي اشياء اسهل عشان تتعلم
  13. اقرأ مقدمة البرمجه الاكواد الجاهزه ماراح تنفعك وتخليك تتقدم بالبرمجه https://wiki.multitheftauto.com/wiki/AR/ ... 8%AC%D9%87 https://wiki.multitheftauto.com/wiki/Scr ... troduction
  14. ididn't understand ur problem with getting the highest player or what but if its with getting the highest player this is simple function could help you function getHighestKills(player) local var = 0 local HighPlayer = false for k,v in ipairs(getElementsByType('player')) do local kills = getElementData(v,'kills') if kills then if kills > var then var = kills HighPlayer = v end end end return HighPlayer end
  15. !#Gamer :الإسم سبب الحظر: السب والتخريب والهروب المتكرر من الحظر والتعليق على المواضيع القديمة جداً هل تصوت له؟: نعم سبب التصويت (اختياري)ه: لا يوجد --- MOJRM-511 :الإسم سبب الحظر: نشر مودات مسروقة والتهرب من الحظر ونشر ملفات ملغمة هل تصوت له؟: نعم سبب التصويت (اختياري)ه: لا يوجد --- fiofa.fado :الإسم سبب الحظر: الاعتراف والتهديد بالقرصنة والتهكير هل تصوت له؟: لا سبب التصويت (اختياري)ه: لا يوجد --- Eissa(Romand) :الإسم سبب الحظر: الهروب المتكرر من الحظر ومخالفة القوانين حتى بعد ان تم تحذيره عدة مرات هل تصوت له؟: نعم سبب التصويت (اختياري)ه: لا يوجد --- Mu[T]e~> :الإسم سبب الحظر: الهروب المتكرر من الحظر والسب وتخريب المنتدى بمواضيع تحتوي على سب وقذف، والخروج عن مسارات المواضيع بشكل متكرر وملحوظ هل تصوت له؟: نعم سبب التصويت (اختياري)ه: لا يوجد
  16. ithink he want to detach the object not to remove it if you want to do what i said use this function detachElements
  17. createColRectangle -- اصنع كول شب "onPlayerWasted" -- ايفنت اذا مات اللاعب isElementWithinColShape -- تحقق انه اللاعب بالكول شب حق المدينه spawnPlayer -- رسبن اللاعب بالمستشفى الي تبيه طبعاً بيكون كل سيرفر سايد
  18. there's no function with this name "removeElements"
  19. ALw7sH

    Help Pls fast

    armorTeams = {["Squads"] = true, ["Admins"] = true, ["Freedom Revolutionary Front"] = true, ["Desert Force"] = true, ["The Punishers"] = true} local isMayhemEnabled = false local spawnFreeGroups = "fd,fdn,nf,nfr,unionsoldier,confedsoldier,sahpmember,sahper,fbcmember,usocmember,eimember" local free1 = split(spawnFreeGroups, ",") local free2 = {} for i,v in ipairs(free1) do free2[v] = true end function initializeSpawns (resourceStarted) if getResourceName(resourceStarted) == "SpawnP" or getResourceName(resourceStarted) == "SpawnP" then startResource(getResourceFromName("SpawnP")) local xml = xmlLoadFile(":SpawnP/spawns.xml") -- open the XML file local cityNodes = xmlNodeGetChildren(xml) -- get all child nodes of the root node () local cities = {} -- create a new global variable to store the welcome messages for i,node in ipairs(cityNodes) do local classnodes = xmlNodeGetChildren(node) for i2,node2 in ipairs(classnodes) do local name = xmlNodeGetAttribute(node2, "name") local r = xmlNodeGetAttribute(node2, "r") local g = xmlNodeGetAttribute(node2, "g") local b = xmlNodeGetAttribute(node2, "b") if not getTeamFromName(name) then createTeam( name , r , g , b) end end end xmlUnloadFile(xml) end end addEventHandler("onResourceStart", root, initializeSpawns) function logAllOut() local players = getElementsByType ( "player" ) for k, player in ipairs(players) do account = getPlayerAccount(player) if not isGuestAccount(account) then logOut(player) -- Log them out. end end addEventHandler("onPlayerLogout",getRootElement(),loggedOut) end addEventHandler("onResourceStart", resourceRoot, logAllOut) function playerSpawn (spawnX, spawnY, spawnZ, team, permission, skin, weapons, player, skinName, sR, sG, sB, rot, dim, int) local playerAccount = getPlayerAccount(player) local hasPermission = false if getAccountData(playerAccount, "override") then hasPermission = true else if permission:lower() == "none" then hasPermission = true end if type(permission) == "string" then local outerPerm = split(permission, ";") or {permission} if type(outerPerm) == "table" then for i,v in ipairs(outerPerm) do local permArray = split(v, ",") if #permArray == 2 then local permType = permArray[1] local permTo = permArray[2] if permType:lower() == "group" then if exports.SpawnPacl:isPlayerInGroup(player, permTo) then hasPermission = true end if isMayhemEnabled and free2[permTo] then hasPermission = true end elseif permType:lower() == "gang" then local gang = getAccountData(playerAccount, "gang") if gang and gang:lower() == permTo:lower() then hasPermission = true end end end end end end end if hasPermission then local spawnTeam = getTeamFromName(team) if not rot then rot = 0 end spawnPlayer (player, spawnX , spawnY, spawnZ + 1, rot, skin, 0, 0, spawnTeam) setElementDimension(player, dim or 0) setElementInterior(player, int or 0) fadeCamera (player, true) setCameraInterior (player, int or 0 ) setCameraTarget (player, player) local tR , tG , tB = getTeamColor(spawnTeam) local r = sR or tR local g = sG or tG local b = sB or tB local blip = createBlipAttachedTo(player, 0, 2, r, g, b, 255, 0, 300, getRootElement()) setElementVisibleTo(blip, player, false) setPlayerNametagColor(player, r, g, b) if(weapons) then local weps = split(weapons, ",") for i, node in ipairs(weps) do --outputConsole(node) local wepinfo = split(node, ".") local wepid = wepinfo[1] --outputConsole(wepid) local wepammo = wepinfo[2] --outputConsole(wepammo) giveWeapon ( player, wepid, wepammo ) end end setAccountData(playerAccount, "lastSpawnPerm", permission) setElementData(player, "class", skinName) if getResourceState(getResourceFromName("orcunGhud")) == "running" then showPlayerHudComponent(player, "all", false) showPlayerHudComponent(player, "crosshair", true) end if armorTeams[team] then setPedArmor(player, 100) end triggerClientEvent(player, "onSpawnSuccessful", getRootElement()) else triggerClientEvent(player, "onSpawnError", getRootElement() , "You are not in this Gang/Squad/Company") end end addEvent("onPlayerSpawnButton", true) addEventHandler("onPlayerSpawnButton", getRootElement(), playerSpawn) function playerDespawn() local player = source for i,v in ipairs(getAttachedElements(player)) do if getElementType(v) == "blip" and getElementParent(getElementParent(v)) == resourceRoot then destroyElement(v) end end end addEventHandler("onPlayerWasted", getRootElement(), playerDespawn) addEventHandler("onPlayerQuit", getRootElement(), playerDespawn) function saveProperty(a, b, c, playah) local player = playah or source local playeraccount = getPlayerAccount(player) if not isPedDead(player) then local x, y, z = getElementPosition(player) local rot = getPedRotation(player) setAccountData(playeraccount, "x", x) setAccountData(playeraccount, "y", y) setAccountData(playeraccount, "z", z) setAccountData(playeraccount, "rot", rot) local skin = getElementModel(player) setAccountData(playeraccount, "skin", skin) local team = getTeamName(getPlayerTeam(player)) setAccountData(playeraccount, "team", team) local weaponsarray = {} for i=1, 12 do if(getPedWeapon(player, i) ~= 0 and getPedTotalAmmo(player, i) > 0) then table.insert(weaponsarray, getPedWeapon(player, i) .. "." .. getPedTotalAmmo(player, i)) end end local weaponstring = table.concat(weaponsarray,",") setAccountData(playeraccount, "weapons", weaponstring) setAccountData(playeraccount, "aliveonquit", true) setAccountData(playeraccount, "class", getElementData(player, "class")) local r,g,b = getPlayerNametagColor(player) setAccountData(playeraccount, "r", r) setAccountData(playeraccount, "g", g) setAccountData(playeraccount, "b", b) local dimension = getElementDimension(player) local interior = getElementInterior(player) setAccountData(playeraccount, "interior", interior) setAccountData(playeraccount, "dimension", dimension) else setAccountData(playeraccount, "aliveonquit", false) setAccountData(playeraccount, "x", nil) setAccountData(playeraccount, "y", nil) setAccountData(playeraccount, "z", nil) setAccountData(playeraccount, "permission", nil) setAccountData(playeraccount, "team", nil) setAccountData(playeraccount, "skin", nil) setAccountData(playeraccount, "weapons", nil) setAccountData(playeraccount, "class", nil) setAccountData(playeraccount, "r", nil) setAccountData(playeraccount, "g", nil) setAccountData(playeraccount, "b", nil) setAccountData(playeraccount, "rot", nil) setAccountData(playeraccount, "dimension", nil) setAccountData(playeraccount, "interior", nil) end end addEventHandler("onPlayerQuit", getRootElement(), saveProperty) function wasPlayerAlive() if getAccountData(getPlayerAccount(source), "aliveonquit") then --outputConsole("Seems like playah wus alive!") local playerAccount = getPlayerAccount(source) local x = getAccountData(playerAccount, "x") local y = getAccountData(playerAccount, "y") local z = getAccountData(playerAccount, "z") local rot = getAccountData(playerAccount, "rot") local team = getAccountData(playerAccount, "team") local permission = getAccountData(playerAccount, "lastSpawnPerm") local skin = getAccountData(playerAccount, "skin") local weps = getAccountData(playerAccount, "weapons") local skinName = getAccountData(playerAccount, "class") local r = getAccountData(playerAccount, "r") local g = getAccountData(playerAccount, "g") local b = getAccountData(playerAccount, "b") local dim = getAccountData(playerAccount, "dimension") local int = getAccountData(playerAccount, "interior") playerSpawn(x , y , z, team, permission, skin, weps, source, skinName, r, g, b, rot, dim, int) else showSpawnScreen(source) end end addEvent("wasPlayerAliveEvent", true) addEventHandler("wasPlayerAliveEvent", getRootElement(), wasPlayerAlive) function loggedOut() cancelEvent() outputChatBox("You can't log out!", source, 255, 0 ,0) end function stopdown() local players = getElementsByType("player") for i, player in ipairs(players) do saveProperty(nil, nil, nil, player) killPed(player) logOut(player) end end addEventHandler("onResourceStop", resourceRoot, stopdown) function showSpawnScreen(player) local account = getPlayerAccount(player) local houses = exports.Ohousing:getAccountHouses(account) triggerClientEvent(player, "showSpawn", player, houses) end addEventHandler("onPlayerWasted", root, function() showSpawnScreen(source) end)
  20. ALw7sH

    Database

    did you download the module and add it to ur server? (C:\Program files\MTA San Andreas\server\mods\deathmatch\modules\)
  21. bindKey("space","both", function(key,state) if state == "down" then local pressed = getTickCount() elseif state == "up" then outputChatBox("you pressed "..key.." for : "..pressed.." ms") end end )
  22. ALw7sH

    Database

    mysql_connect > dbConnect mysql_query > dbQuery etc ..
×
×
  • Create New...