Moderator Rank
3 posters
Page 1 of 1
Moderator Rank
Okay, we got Assmod and i want to know if we can add like a rank to Assmod?
I want to change Temp Admin to Moderator but i have no clue how to do it...
So if anyone knows please?
I want to change Temp Admin to Moderator but i have no clue how to do it...
So if anyone knows please?
Re: Moderator Rank
In the ass_shared.lua where you see this:
if (TIME) then return "Admin for " .. TIME else return "Temp Admin" end
change to return "Moderator";
And you also need to check out the ass_client.lua but i dont know what to do there... sorry
Making another group would be easier i think.
if (TIME) then return "Admin for " .. TIME else return "Temp Admin" end
change to return "Moderator";
And you also need to check out the ass_client.lua but i dont know what to do there... sorry
Making another group would be easier i think.
Last edited by Anita on Sun Jan 03, 2010 5:52 pm; edited 1 time in total
Anita- Newbie
- Posts : 15
Points : 18
Reputation : -1
Join date : 2009-12-31
Re: Moderator Rank
Anita do you know a bit of Lua or do you now alot of lua i need another person to help me doing my own RP gamemode if you want contact me.
Yeah i know martinerrr off topic
Yeah i know martinerrr off topic
TheBlacklightX- Poster
- Posts : 124
Points : 165
Reputation : 2
Join date : 2009-12-24
Age : 31
Location : Stuttgart - Germany
Re: Moderator Rank
Ok Martinerrr
What you also need to do is in the ass_shared.lua
You need to replace the code
with this one
This have to be because we need to set the Moderator a Level so the Moderator is higher then a respected one but lower then tempadmins and above.
If this would not be coded a Moderator cannot kick Guests or Respected because it would say
This Player got a higher Access Level than you
You also have to replace the code
with this one
And you need to add a line at the code part
between the line of the level TEMP ADMIN and LVL RESPECTED you got to add this code
As far as i know lua this part is done well the ass_shared.lua is done with Moderator rank .
the ass_client.lua i will look later and maybe post the needed codes here
Anita check again this post and look for mistake only to make sure but i am sure that this lua part is fine.
Regards
Blacklight
What you also need to do is in the ass_shared.lua
You need to replace the code
- Code:
ASS_LVL_SERVER_OWNER = 0
ASS_LVL_SUPER_ADMIN = 1
ASS_LVL_ADMIN = 2
ASS_LVL_TEMPADMIN = 3
ASS_LVL_RESPECTED = 4
ASS_LVL_GUEST = 5
ASS_LVL_BANNED = 255
with this one
- Code:
ASS_LVL_SERVER_OWNER = 0
ASS_LVL_SUPER_ADMIN = 1
ASS_LVL_ADMIN = 2
ASS_LVL_TEMPADMIN = 3
ASS_LVL_MODERATOR = 4
ASS_LVL_RESPECTED = 5
ASS_LVL_GUEST = 6
ASS_LVL_BANNED = 255
This have to be because we need to set the Moderator a Level so the Moderator is higher then a respected one but lower then tempadmins and above.
If this would not be coded a Moderator cannot kick Guests or Respected because it would say
This Player got a higher Access Level than you
You also have to replace the code
- Code:
local PLAYER = FindMetaTable("Player")
function PLAYER:IsSuperAdmin() return self:GetNetworkedInt("ASS_isAdmin") <= ASS_LVL_SUPER_ADMIN end
function PLAYER:IsAdmin() return self:GetNetworkedInt("ASS_isAdmin") <= ASS_LVL_ADMIN end
function PLAYER:IsTempAdmin() return self:GetNetworkedInt("ASS_isAdmin") <= ASS_LVL_TEMPADMIN end
function PLAYER:IsRespected() return self:GetNetworkedInt("ASS_isAdmin") <= ASS_LVL_RESPECTED end
with this one
- Code:
local PLAYER = FindMetaTable("Player")
function PLAYER:IsSuperAdmin() return self:GetNetworkedInt("ASS_isAdmin") <= ASS_LVL_SUPER_ADMIN end
function PLAYER:IsAdmin() return self:GetNetworkedInt("ASS_isAdmin") <= ASS_LVL_ADMIN end
function PLAYER:IsTempAdmin() return self:GetNetworkedInt("ASS_isAdmin") <= ASS_LVL_TEMPADMIN end
function PLAYER:IsModerator() return self:GetNetworkedInt("ASS_isAdmin") <= ASS_LVL_MODERATOR end
function PLAYER:IsRespected() return self:GetNetworkedInt("ASS_isAdmin") <= ASS_LVL_RESPECTED end
And you need to add a line at the code part
- Code:
function LevelToString( LEVEL, TIME )
if (LEVEL <= ASS_LVL_SERVER_OWNER) then return "Owner";
elseif (LEVEL <= ASS_LVL_SUPER_ADMIN) then return "Super Admin";
elseif (LEVEL <= ASS_LVL_ADMIN) then return "Admin";
elseif (LEVEL <= ASS_LVL_TEMPADMIN) then if (TIME) then return "Admin for " .. TIME else return "Temp Admin" end
elseif (LEVEL <= ASS_LVL_RESPECTED) then return "Respected"
elseif (LEVEL >= ASS_LVL_GUEST && LEVEL < ASS_LVL_BANNED) then return "Guest"
else
return "Banned";
end
end
between the line of the level TEMP ADMIN and LVL RESPECTED you got to add this code
- Code:
elseif (LEVEL <= ASS_LVL_MODERATOR) then return "Moderator"
As far as i know lua this part is done well the ass_shared.lua is done with Moderator rank .
the ass_client.lua i will look later and maybe post the needed codes here
Anita check again this post and look for mistake only to make sure but i am sure that this lua part is fine.
Regards
Blacklight
TheBlacklightX- Poster
- Posts : 124
Points : 165
Reputation : 2
Join date : 2009-12-24
Age : 31
Location : Stuttgart - Germany
Re: Moderator Rank
TheBlacklightX wrote:Anita do you know a bit of Lua or do you now alot of lua i need another person to help me doing my own RP gamemode if you want contact me.
Yeah i know martinerrr off topic
Uhm idk because i have very little time for coding. But if you need help just contact me. My steam is czmate10
Anita- Newbie
- Posts : 15
Points : 18
Reputation : -1
Join date : 2009-12-31
Re: Moderator Rank
well i got pacsteam so i can play gmod since i dont buyed it yet and i cannot chat with u as the cracked steam still thinks i didnt buy anything which is true so i cant add friends etc only to other pacsteam users and i can get invited and can be contacted
my steam ID is TheLightX
my steam ID is TheLightX
TheBlacklightX- Poster
- Posts : 124
Points : 165
Reputation : 2
Join date : 2009-12-24
Age : 31
Location : Stuttgart - Germany
Re: Moderator Rank
i didnt buy either :/
Anita- Newbie
- Posts : 15
Points : 18
Reputation : -1
Join date : 2009-12-31
Re: Moderator Rank
Get ZeroGear free and makes steam think you bought it.TheBlacklightX wrote:well i got pacsteam so i can play gmod since i dont buyed it yet and i cannot chat with u as the cracked steam still thinks i didnt buy anything which is true so i cant add friends etc only to other pacsteam users and i can get invited and can be contacted
my steam ID is TheLightX
Re: Moderator Rank
This is really great, but why dont u upload the file which u made?TheBlacklightX wrote:Ok Martinerrr
What you also need to do is in the ass_shared.lua
You need to replace the code
- Code:
ASS_LVL_SERVER_OWNER = 0
ASS_LVL_SUPER_ADMIN = 1
ASS_LVL_ADMIN = 2
ASS_LVL_TEMPADMIN = 3
ASS_LVL_RESPECTED = 4
ASS_LVL_GUEST = 5
ASS_LVL_BANNED = 255
with this one
- Code:
ASS_LVL_SERVER_OWNER = 0
ASS_LVL_SUPER_ADMIN = 1
ASS_LVL_ADMIN = 2
ASS_LVL_TEMPADMIN = 3
ASS_LVL_MODERATOR = 4
ASS_LVL_RESPECTED = 5
ASS_LVL_GUEST = 6
ASS_LVL_BANNED = 255
This have to be because we need to set the Moderator a Level so the Moderator is higher then a respected one but lower then tempadmins and above.
If this would not be coded a Moderator cannot kick Guests or Respected because it would say
This Player got a higher Access Level than you
You also have to replace the code
- Code:
local PLAYER = FindMetaTable("Player")
function PLAYER:IsSuperAdmin() return self:GetNetworkedInt("ASS_isAdmin") <= ASS_LVL_SUPER_ADMIN end
function PLAYER:IsAdmin() return self:GetNetworkedInt("ASS_isAdmin") <= ASS_LVL_ADMIN end
function PLAYER:IsTempAdmin() return self:GetNetworkedInt("ASS_isAdmin") <= ASS_LVL_TEMPADMIN end
function PLAYER:IsRespected() return self:GetNetworkedInt("ASS_isAdmin") <= ASS_LVL_RESPECTED end
with this one
- Code:
local PLAYER = FindMetaTable("Player")
function PLAYER:IsSuperAdmin() return self:GetNetworkedInt("ASS_isAdmin") <= ASS_LVL_SUPER_ADMIN end
function PLAYER:IsAdmin() return self:GetNetworkedInt("ASS_isAdmin") <= ASS_LVL_ADMIN end
function PLAYER:IsTempAdmin() return self:GetNetworkedInt("ASS_isAdmin") <= ASS_LVL_TEMPADMIN end
function PLAYER:IsModerator() return self:GetNetworkedInt("ASS_isAdmin") <= ASS_LVL_MODERATOR end
function PLAYER:IsRespected() return self:GetNetworkedInt("ASS_isAdmin") <= ASS_LVL_RESPECTED end
And you need to add a line at the code part
- Code:
function LevelToString( LEVEL, TIME )
if (LEVEL <= ASS_LVL_SERVER_OWNER) then return "Owner";
elseif (LEVEL <= ASS_LVL_SUPER_ADMIN) then return "Super Admin";
elseif (LEVEL <= ASS_LVL_ADMIN) then return "Admin";
elseif (LEVEL <= ASS_LVL_TEMPADMIN) then if (TIME) then return "Admin for " .. TIME else return "Temp Admin" end
elseif (LEVEL <= ASS_LVL_RESPECTED) then return "Respected"
elseif (LEVEL >= ASS_LVL_GUEST && LEVEL < ASS_LVL_BANNED) then return "Guest"
else
return "Banned";
end
end
between the line of the level TEMP ADMIN and LVL RESPECTED you got to add this code
- Code:
elseif (LEVEL <= ASS_LVL_MODERATOR) then return "Moderator"
As far as i know lua this part is done well the ass_shared.lua is done with Moderator rank .
the ass_client.lua i will look later and maybe post the needed codes here
Anita check again this post and look for mistake only to make sure but i am sure that this lua part is fine.
Regards
Blacklight
Ass_Client.lua and Ass_Shared.lua both needs some codings and its not cool that i need to code so much lua's...
So please, can you make it?
Re: Moderator Rank
OK
Download this file [You must be registered and logged in to see this link.]
Put it in the assmod/lua/ folder
NOTICE : Make a Backup of the current and orginal ass_shared.lua and rename it to whatever u want just rename it.
Then rename the downloaded file from ass_sharedmodifed.lua to ass_shared.lua
yes i know typing mistake xD in modifed nvm
the client i will try to look at now.
Regards
Blacklight
Download this file [You must be registered and logged in to see this link.]
Put it in the assmod/lua/ folder
NOTICE : Make a Backup of the current and orginal ass_shared.lua and rename it to whatever u want just rename it.
Then rename the downloaded file from ass_sharedmodifed.lua to ass_shared.lua
yes i know typing mistake xD in modifed nvm
the client i will try to look at now.
Regards
Blacklight
TheBlacklightX- Poster
- Posts : 124
Points : 165
Reputation : 2
Join date : 2009-12-24
Age : 31
Location : Stuttgart - Germany
Re: Moderator Rank
Nice, but.
ASS_LVL_DONATER = 5
ASS_LVL_RESPECTED = 5
This isn't what i ment with the same.
I ment respected and donater should have the same options.
ASS_LVL_DONATER = 5
ASS_LVL_RESPECTED = 5
This isn't what i ment with the same.
I ment respected and donater should have the same options.
Re: Moderator Rank
Yah, and i found some bugs already.
One definately*fixed*
One, may cause casualties*fixed*
And another with casualties*fixed*
One definately*fixed*
One, may cause casualties*fixed*
And another with casualties*fixed*
Re: Moderator Rank
And Anita,
IncludeSharedFile("ass_plugins.lua")
IncludeSharedFile("ass_debug.lua")
IncludeSharedFile("ass_config.lua")
Anything of them needed?
Not right?
IncludeSharedFile("ass_plugins.lua")
IncludeSharedFile("ass_debug.lua")
IncludeSharedFile("ass_config.lua")
Anything of them needed?
Not right?
Re: Moderator Rank
Oh and do the same stuff renaming etc. with this file the modified ass_client.lua
[You must be registered and logged in to see this link.]
Regards
Blacklight
[You must be registered and logged in to see this link.]
Regards
Blacklight
TheBlacklightX- Poster
- Posts : 124
Points : 165
Reputation : 2
Join date : 2009-12-24
Age : 31
Location : Stuttgart - Germany
Re: Moderator Rank
Martinerrr wrote:And Anita,
IncludeSharedFile("ass_plugins.lua")
IncludeSharedFile("ass_debug.lua")
IncludeSharedFile("ass_config.lua")
Anything of them needed?
Not right?
Hmm... I think you need them.
Anita- Newbie
- Posts : 15
Points : 18
Reputation : -1
Join date : 2009-12-31
Re: Moderator Rank
----TheBlacklightX wrote:A Lazy Bastard is Martinerrr since he said he was too lazy and yeah you didnt do anything i coded it xDD lol adn anita answered an looked also some stuff at code.
TheBlackLightX wrote:you didnt do anything i coded it xDD
Oh, boy... u made him angry.... FAILThe Angry Lazy Bastard wrote:U didn't do shit! U just fucking copied the fucking respected to the fucking donater and what the Truck did you do with the ass_client.lau oh wait its not done?
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum