Well, I'm making a plugin for the admin mod Exsto, and this is my first time really using Lua. I can program VB.NET and C#, and C++ scares me, but I need to set a boolean to a player. I want to be able to do
[lua]if ply:isHidingRank == true then
-- What to do if they are hiding their admin, whatever
end[/lua]
Any tips/idea/links because I'm dumb?
[editline]05:35PM[/editline]
Oh, would it possibly have to do with hook.Add?
For player variables, use . for player methods use ::wink:
Oh wow I was off, thanks ralle :). Would you guys mind if I came back with my code in a few minutes to see how much of an idiot I am still not being able to figure it out?
You're very welcomed to do it.
[QUOTE=Crazy Quebec;22787537]You're very welcomed to do it.[/QUOTE]
Ah never mind, I got it, but what I wanted to do for it (it's an Exsto admin mod Plugin btw) isn't possible. Wanted to allow admins to hide their admin colors in chat, but Prefan has to rewrite shit for it. Anyway, thanks for this, I'm working on a basic sandbox gamemode rewrite thing, will come in handy.
[QUOTE=Banana Lord.;22789952]Wanted to allow admins to hide their admin colors in chat, but Prefan has to rewrite shit for it.[/QUOTE]
Find the part of the admin mod that deals with player's color in the chat and check for your bool at this moment to decide the color? This doesn't sound impossible at all.
[QUOTE=Crazy Quebec;22790875]Find the part of the admin mod that deals with player's color in the chat and check for your bool at this moment to decide the color? This doesn't sound impossible at all.[/QUOTE]
Or when a player sends chat, if the bool is true, set it to the guest color. Else, their rank color.
Sorry, you need to Log In to post a reply to this thread.