Jump to content

MRThinker

Members
  • Posts

    117
  • Joined

  • Last visited

Everything posted by MRThinker

  1. now errors are : [2018-07-09 22:51:24] WARNING: SetAcl\server.lua:2: Bad argument @ 'getPlayerFromName' [Expected string at argument 1, got nil] [2018-07-09 22:51:24] ERROR: SetAcl\server.lua:7: attempt to index local 'namepart' (a nil value)
  2. ok wait! the error : [2018-07-09 22:39:33] SetAcl restarted successfully [2018-07-09 22:39:36] WARNING: SetAcl\server.lua:2: Bad argument @ 'getPlayerFromName' [Expected string at argument 1, got nil] [2018-07-09 22:39:36] ERROR: SetAcl\server.lua:7: attempt to index local 'namepart' (a nil value) when use this script : [2018-07-09 22:40:09] WARNING: SetAcl\server.lua:23: Bad argument @ 'outputChatBox' [Expected element at argument 2, got string 'MR_ThinkeR'] this is my server side: function findPlayer( namepart ) local player = getPlayerFromName( namepart ) 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", "" ), namepart:lower( ), 1, true ) then return player end end return false end addCommandHandler('setacl',function(source,_,player,aclgroup) local find = findPlayer( player ) if find then local playerAccount = getPlayerAccount(find) local accName = getAccountName ( playerAccount ) if isObjectInACLGroup ("user."..accName, aclGetGroup ( "Admin" ) ) then aclGroupAddObject (aclGetGroup(""..aclgroup..""), "user."..accName) outputChatBox("Your ACL group has been changed to "..aclgroup.."!", player) else outputChatBox("You are not allowed to use this command!", player, 255,0,0) end end end)
  3. no this script dont have errors not working! you can give me a faction system? your script is dont have a function ! why ?
  4. function findPlayer( namepart ) local player = getPlayerFromName( namepart ) 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", "" ), namepart:lower( ), 1, true ) then return player end end return false end addCommandHandler('setacl',function(source,_,player,aclgroup) local find = findPlayer( player ) if find then local playerAccount = getPlayerAccount(find) local accName = getAccountName ( playerAccount ) if isObjectInACLGroup ("user."..accName, aclGetGroup ( "Admin" ) ) then aclGroupAddObject (aclGetGroup(""..aclgroup..""), "user."..accName) outputChatBox("Your ACL group has been changed to "..aclgroup.."!", player) else outputChatBox("You are not allowed to use this command!", player, 255,0,0) end end end) this script is not working
  5. @Galactix no! please add the outputChatBox : Only Admins Can Use This CMD please add the outputChatBox : Your ACL Group Changed To "..aclgroup.."
  6. @Galactix this script is dont have outputChatBox!
  7. @Galactix you can give me this script ?
  8. hi all please give a server side for set Player ACL Group like : syntax : /setacl <playerName> <AclName> and outputChatBox for Player is : Your ACL Group has been changed to <AclName> thanks!
  9. hi guys how to make a system for request Heal to other players ? like : acl group medic use /heal <playername> and player use /aheal and the health set to 100 ! outputChatBox for player is The doctor is going to give you HEAL. do you accept? use / aheal outputChaBox for medic is Your Request Send.
  10. Hi all. Please give me a level system. /buylevel when 3 hours and up level Like : 3hours = 1 level up Level Show in ScoreBoard Please Thanks ❤
  11. Hi all. Please give me a script for shouting in 15 distance like /s MrThinker Shouts : hi Thanks
  12. Hi all. Please give me a find player script. Like /find <PlayerName> and showing target Player on map / radar Thanks
  13. Hi all. Please give me a find player script. Like /find <PlayerName> and showing target Player on map / radar Thanks
  14. Not Working
  15. Hi all How to hide team names on scoreboard? Fast help me
  16. Hi guys! How to create vehicle and only admin acl group can enter the vehicle Fast help me☺
  17. @Dimos7 What? I dont know scripting Please give me a server side Thanks
  18. Hello How to make players in ACL GROUP Admin color them red on the scoreboard?
  19. Hi Guys Give me a resource for saving money, skin when player death and when player leave the server Give me a account data saver Thanks ❤
  20. please give me a license system for RPG server Player go to checkpoints and recive driving license Please fast give me ☺
×
×
  • Create New...