Raised This Month: $12 Target: $400
 3% 

[ANY] Information [3.6]


Post New Thread Reply   
 
Thread Tools Display Modes
xNos
SourceMod Donor
Join Date: Dec 2012
Location: Israel
Old 01-14-2013 , 10:49   Re: [ANY] Information [3.1]
Reply With Quote #31

Yo man nice code like your plugins code style!
xNos is offline
Send a message via Skype™ to xNos
shavit
AlliedModders Donor
Join Date: Dec 2011
Location: Israel
Old 01-14-2013 , 10:49   Re: [ANY] Information [3.1]
Reply With Quote #32

Quote:
Originally Posted by xNos View Post
Yo man nice code like your plugins code style!
Thanks!
__________________
retired
shavit is offline
KyleS
SourceMod Plugin Approver
Join Date: Jul 2009
Location: Segmentation Fault.
Old 04-19-2013 , 23:31   Re: [ANY] Information [3.1]
Reply With Quote #33

Cool plugin! You make some dangerous assumptions though in OnPluginStart though You should call GetConVarBool instead of assuming the convars have their default values. If I were to set sm_information_enabled to false, and reload the plugin, the plugin would assume it's true. Since you're using HookConVarChange, you can just invoke the callback with your handle ConVarChanged(gH_Enabled). I'm not really sure about sharing the callback, but it shouldn't be too bad as you only have three. If you get more convars, you may want to consider separate callbacks.

You should probably use ReplyToCommand (faithfully) in your cmd callback. This way you don't get the data printed to chat if clients don't want that (and instead want it in their console). You can also combine most of the PrintToChat operations into one single native call.

You should definitely check the return of GetClientAuthString, however, since you're using new instead of decl, this is safe at the moment (you probably already know this ;)).

Regardless, cool idea of allowing the client to see data on themselves!
KyleS is offline
shavit
AlliedModders Donor
Join Date: Dec 2011
Location: Israel
Old 04-20-2013 , 19:44   Re: [ANY] Information [3.1]
Reply With Quote #34

Quote:
Originally Posted by KyleS View Post
Cool plugin! You make some dangerous assumptions though in OnPluginStart though You should call GetConVarBool instead of assuming the convars have their default values. If I were to set sm_information_enabled to false, and reload the plugin, the plugin would assume it's true. Since you're using HookConVarChange, you can just invoke the callback with your handle ConVarChanged(gH_Enabled). I'm not really sure about sharing the callback, but it shouldn't be too bad as you only have three. If you get more convars, you may want to consider separate callbacks.

You should probably use ReplyToCommand (faithfully) in your cmd callback. This way you don't get the data printed to chat if clients don't want that (and instead want it in their console). You can also combine most of the PrintToChat operations into one single native call.

You should definitely check the return of GetClientAuthString, however, since you're using new instead of decl, this is safe at the moment (you probably already know this ;)).

Regardless, cool idea of allowing the client to see data on themselves!
I have fixed/optimized everything you have mentioned.
Tho I've been already using ReplyToCommand.
__________________
retired
shavit is offline
ColdWar
Member
Join Date: Aug 2012
Old 05-17-2013 , 20:04   Re: [ANY] Information [3.5]
Reply With Quote #35

Thanks, I was looking for one either, nice coding tho..
ColdWar is offline
RedSword
SourceMod Plugin Approver
Join Date: Mar 2006
Location: Quebec, Canada
Old 06-01-2013 , 19:37   Re: [ANY] Information [3.5]
Reply With Quote #36

Hi,

Overall it looks good. Approved.

One thing you might not be aware of :

you need both FCVAR_NOTIFY and FCVAR_SPONLY to get a "version" convar (detected properly by some scripts) AFAIK.

Otherwise, interesting plugin !
__________________
My plugins :
Red Maze
Afk Bomb
RAWR (per player/rounds Awp Restrict.)
Kill Assist
Be Medic

You can also Donate if you appreciate my work

Last edited by RedSword; 05-05-2014 at 19:01.
RedSword is offline
derbmann
Junior Member
Join Date: Jul 2013
Old 07-10-2013 , 10:05   Re: [ANY] Information [3.5]
Reply With Quote #37

Hello,

Why you delete "Client Index:" and "Admin:" from the Code?

best regards,

derbmann
derbmann is offline
shavit
AlliedModders Donor
Join Date: Dec 2011
Location: Israel
Old 12-29-2013 , 14:58   Re: [ANY] Information [3.6]
Reply With Quote #38

3.6 (29 December 2013) -
* Now country shows also target's country, not yours.
__________________
retired
shavit is offline
SooStoked
Junior Member
Join Date: May 2009
Old 05-05-2014 , 15:51   Re: [ANY] Information [3.6]
Reply With Quote #39

awesome, you are still updating this! thanks again!
SooStoked is offline
Robin955
Veteran Member
Join Date: Jun 2013
Old 12-09-2014 , 15:10   Re: [ANY] Information [3.6]
Reply With Quote #40

if i make admins sm_info "deny"

doesn't that also deny the !info command?

i mean you put 2 commands in one, !info test
and !info

type !info and i check my own stats, type !info test and i check test's stats

does B flag have the command to use this? i suppose its C and above

and a couple pro plugins lists their shortcut onto !settings menu.

type !settings and you should have a Info - Show Client Information and you click it and it automatically launches the !myinfo command. (dont know how hard it would be to add it to the !settings menu)

"Overrides"
{
"sm_info" "deny"
}

cant be denied?

Last edited by Robin955; 12-09-2014 at 16:53.
Robin955 is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 12:48.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode