Hiding Donator Status

Problems with donator privileges, questions.

Hiding Donator Status

Postby daconator » Tue Dec 17, 2013 9:06 pm

Is there any possible way to hide the greenish [D] that shows up next to a Donator's in-game name without giving up actual status?
User avatar
daconator
Donator
 
Posts: 4
Joined: Fri Oct 18, 2013 10:53 pm

Re: Hiding Donator Status

Postby fingerman » Tue Dec 17, 2013 9:20 pm

say !colortoggle in chat or sm_colortoggle in console.
Image
User avatar
fingerman
Red Admin
Author of: The Pushers Guide to Little Carts
 
Posts: 1480
Joined: Wed Oct 13, 2010 7:08 pm

Re: Hiding Donator Status

Postby daconator » Tue Dec 17, 2013 9:23 pm

Thank you kindly
User avatar
daconator
Donator
 
Posts: 4
Joined: Fri Oct 18, 2013 10:53 pm

Re: Hiding Donator Status

Postby Maringue » Wed Dec 18, 2013 11:45 am

That will change the color of your text, but I don't know if it will change the [D] that shows up next to your name during chat.
Maringue
Blue Admin
 
Posts: 1695
Joined: Tue Oct 12, 2010 4:03 pm
Location: Washington, DC

Re: Hiding Donator Status

Postby Dravved » Wed Dec 18, 2013 2:05 pm

Maringue wrote:That will change the color of your text, but I don't know if it will change the [D] that shows up next to your name during chat.

It does. Same thing applies for the [A] if you're an admin.
User avatar
Dravved
 
Posts: 60
Joined: Fri Jul 26, 2013 2:03 am

Re: Hiding Donator Status

Postby fingerman » Wed Dec 18, 2013 6:23 pm

Maringue wrote:That will change the color of your text, but I don't know if it will change the [D] that shows up next to your name during chat.


Drawed is correct. The plugin will call this command for !colortoggle:

Code: Select all
public Action:Command_ToggleEnable(client, args)
{
   decl String:strCookie[16];
   GetClientCookie(client, c_PlayerEnabled, strCookie, sizeof(strCookie));
   
   if(StrEqual(strCookie, "true"))
   {
      SetClientCookie(client, c_PlayerEnabled, "false");
      ReplyToCommand(client, "Custom chat color is disabled.");
   }
   else if(StrEqual(strCookie, "false"))
   {
      SetClientCookie(client, c_PlayerEnabled, "true");
      ReplyToCommand(client, "Custom chat color is enabled.");
   }
   else
   {
      SetClientCookie(client, c_PlayerEnabled, "true");
      ReplyToCommand(client, "Custom chat color was not properly set, but is now enabled.");
   }
   return Plugin_Handled;
}


it will set the c_PlayerEnabled cookie to false or true depending on its current state, then when something is said by the client, it will check if this this cookie is enabled or not, then either process what is said or not. The naming of the command is suspect because it implies the color is toggled, a better name for the command would be sm_chattoggle.
Image
User avatar
fingerman
Red Admin
Author of: The Pushers Guide to Little Carts
 
Posts: 1480
Joined: Wed Oct 13, 2010 7:08 pm


Return to Donator Support

Who is online

Users browsing this forum: No registered users and 1 guest

cron