MRThinker
Members-
Posts
117 -
Joined
-
Last visited
Everything posted by MRThinker
-
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)
-
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)
-
the problem in line 2
-
no this script dont have errors not working! you can give me a faction system? your script is dont have a function ! why ?
-
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
-
@Galactix no! please add the outputChatBox : Only Admins Can Use This CMD please add the outputChatBox : Your ACL Group Changed To "..aclgroup.."
-
@Galactix this script is dont have outputChatBox!
-
@Galactix you can give me this script ?
-
you can give me now ?
-
please fast answer me
-
please answer Me
-
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!
-
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.
-
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 ❤
-
Hi all. Please give me a script for shouting in 15 distance like /s MrThinker Shouts : hi Thanks
-
Hi all. Please give me a find player script. Like /find <PlayerName> and showing target Player on map / radar Thanks
-
Hi all. Please give me a find player script. Like /find <PlayerName> and showing target Player on map / radar Thanks
-
Hi all How to hide team names on scoreboard? Fast help me