All Activity

This stream auto-updates     

  1. Past hour
  2. xXGhostXx

    [HELP] Player ID & Part of Name

    I want used Part of Name or ID !
  3. Dimos7

    [HELP] Player ID & Part of Name

    Yes lisen there you have findPlayer put or getPlayerFromID and that it
  4. سعد مصري

    Make A Silent Patch

    Make A Silent Patch Becuse Its Haves alot Of Fixes Bugs Like Silentpatch.asi in singleplayer
  5. OverKILL

    [TUTORIAL] MySQLITE

    Enfim ja havia um post muito semelhante a esse que o colega @Lord Henry fez de qualquer forma ótimo tutorial...
  6. OverKILL

    [REQ] Parar o motor quando Bater

    Acho exagero da sua parte falar assim colega.. aliás ele se referiu a resouces públicas não que alguém faça por ele.... ao invés de criticar poderia ter ajudado igual o Lord fez.
  7. Megadreams

    Introducing Sphene, the SCM Interpreter

    Sounds good, thanks! And that should be fine (hopefully).
  8. مشاء الله عليك استمر بالتوفيق لك
  9. xXGhostXx

    [HELP] Admins Online

    It didn't work ! Please fix my code and give me code.
  10. xXGhostXx

    [HELP] Player ID & Part of Name

    It didn't work ! When I used command, that only works with "Part of Name" just like my default command. But I want <PartofName/ID> BOTH!
  11. KillerX

    setPedWalkingStyle...

    yes yes Sure
  12. aka Blue

    setPedWalkingStyle...

    Relax. He confused the post for sure
  13. تسلم ❤️❤ ؟؟؟؟
  14. KillerX

    setPedWalkingStyle...

    Whaaaaaaat ????????????? @N3xT @Dutchman101
  15. Today
  16. Dimos7

    [HELP] Player ID & Part of Name

    Simple do that function findPlayer(name) local name = name and name:gsub("#%x%x%x%x%x%x", "" ):lower() or nil if name then for _, player in pairs(getElementsByType("player")) do local name_=getPlayerName(player):gsub("#%x%x%x%x%x%x", ""):lower() if name_:find(name, 1, true) then return player end end end end function getPlayerID(player) if player then local theID for id, p in pairs(getElementsByType("player")) do if p == player then theID = id end return theID end else return end end function getPlayerFromID(theID) if theID then tonumber(theID) local thePlayer for id, p in pairs(getElementsByType("player")) do if theID == id then thePlayer = p end return thePlayer end else return end end
  17. LyricalMM

    [HELP] Admins Online

    for example function getAdmins() local players = #getElementsByType("player") local admins = { } local accName = getAccountName ( getPlayerAccount ( value ) ) for key, value in ipairs(players) do if isObjectInACLGroup ("user."..accName, aclGetGroup ( "Admin" ) ) then table.insert(admins,value) end end return admins end and local players = exports.yourScript:getAdmins() for k, arrayPlayer in ipairs(players) do if --your condition if it's admin-- then --your code end end
  18. xXGhostXx

    [HELP] Admins Online

    function adminOnline (thePlayer, command) local playerid = getElementData( thePlayer, "id" ) local accName = getAccountName ( getPlayerAccount ( thePlayer ) ) outputChatBox("#ff4500[Admins]:", thePlayer, 255, 255, 255, true) if isObjectInACLGroup ("user."..accName, aclGetGroup ( "Admin" ) ) then outputChatBox("#ff0000Admin: #ffffff"..getPlayerName(player).." ("..playerid..") #ff0000Rank: #ffffffFounder", thePlayer, 255, 255, 255, true) elseif isObjectInACLGroup ("user."..accName, aclGetGroup ( "SuperModerator" ) ) then outputChatBox("#ff0000Admin: #ffffff"..getPlayerName(player).." ("..playerid..") #ff0000Rank: #ffffffDeveloper", thePlayer, 255, 255, 255, true) elseif isObjectInACLGroup ("user."..accName, aclGetGroup ( "Moderator" ) ) then outputChatBox("#ff0000Admin: #ffffff"..getPlayerName(player).." ("..playerid..") #ff0000Rank: #ffffffDirector", thePlayer, 255, 255, 255, true) end end addCommandHandler("admins", adminOnline) It didn't work ! Please give me a write code.
  19. LyricalMM

    [HELP] Admins Online

    The problem is that you put the variable "thePlayer" and that shows only to you if you are an admin, you need to get other player names and if the other players are admins.
  20. كيف مختلف تماماً؟, السكربت اللي عطاك هو اوسكار نفسه
  21. شباب ارجو حل للمشكلة بلعب وزارة الهجولة والتدشير 1.5.6 من اكتر من 4 سنوات انا واخواتى وابناء عمى من كم يوم تم طردنا من السيرفر ولا اعلم كيف وليه ارجو ايجاد حل سريع
  22. mhmed110

    عندى مشكلة الطرد من السيرفر

    Thank you I am new in dealing with the forum and do not know how to go to the Arab section Please send me a link or my face
  23. xXGhostXx

    [HELP] Player ID & Part of Name

    Hello. How to sync my two codes, (e.g. My ID SYSTEM and Part of Name). I like to use both of them: (ID System and Part of Name) in one command (e.g. /Respawn <Part of Name / ID>) Part of name codes function findPlayer( partofname ) local player = getPlayerFromName ( tostring(partofname) ) if player then return player end for _, player in pairs( getElementsByType 'player' ) do if string.find ( string.gsub ( getPlayerName ( player ):lower( ), "#%x%x%x%x%x%x", "" ), partofname:lower( ), 1, true ) then return player end end end ID System codes function getPlayerID(player) if player and isElement(player) and getElementType(player) == "player" and getElementData(player, "id") then return getElementData(player, "id") end return false end -- function getPlayerFromID(id) if id and tonumber(id) and ID[tonumber(id)] then return ID[tonumber(id)] end return false end @iMr.WiFi..!
  24. : ) بــتــؤفيــق يـآ بطـل وشُكـرآً ..# مـُقدمــآً .!!
  25. OK well guys my friend need a helper for MGM server hé need strong and professionnel scripter for multigamemode like better than FFS server Our Web-Site : sl-mta.rf.gd and after we will buy .com domain OK now u can contact me via discord xFrox~#4986 and also he can give him fonder Thanks for reading
  1. Load more activity