Raised This Month: $ Target: $400
 0% 

hook players rank from statsx?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Blizzard_87
Veteran Member
Join Date: Oct 2012
Old 03-13-2013 , 08:18   hook players rank from statsx?
Reply With Quote #1

is there a way to hook or get a players rank from the statsx plugin and display in a motd?
Blizzard_87 is offline
Podarok
BANNED
Join Date: Jan 2011
Location: Narnia
Old 03-13-2013 , 09:04   Re: hook players rank from statsx?
Reply With Quote #2

Yes, make natives to get rank...
Podarok is offline
Blizzard_87
Veteran Member
Join Date: Oct 2012
Old 03-13-2013 , 09:54   Re: hook players rank from statsx?
Reply With Quote #3

Quote:
Originally Posted by Podarok View Post
Yes, make natives to get rank...
I'd have to edit the stats plugin to make the natives? if so could you give example?
Blizzard_87 is offline
Podarok
BANNED
Join Date: Jan 2011
Location: Narnia
Old 03-13-2013 , 10:23   Re: hook players rank from statsx?
Reply With Quote #4

It depends how you want it to work. If you want to get users rank in another plugin, then you will have to make natives, if not, you can simply edit statsx plugin, just search for clcmd /rank and see how it hooks players rank there and do the same..
Podarok is offline
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 03-13-2013 , 10:25   Re: hook players rank from statsx?
Reply With Quote #5

Why not just use the already existing native? get_user_stats
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).
YamiKaitou is offline
Podarok
BANNED
Join Date: Jan 2011
Location: Narnia
Old 03-13-2013 , 10:35   Re: hook players rank from statsx?
Reply With Quote #6

Quote:
Originally Posted by YamiKaitou View Post
Why not just use the already existing native? get_user_stats
Didn't even know there is such lol
Podarok is offline
Blizzard_87
Veteran Member
Join Date: Oct 2012
Old 03-13-2013 , 16:07   Re: hook players rank from statsx?
Reply With Quote #7

Quote:
Originally Posted by YamiKaitou View Post
Why not just use the already existing native? get_user_stats
thanks will try it.
Blizzard_87 is offline
Blizzard_87
Veteran Member
Join Date: Oct 2012
Old 03-13-2013 , 20:02   Re: hook players rank from statsx?
Reply With Quote #8

tried that native even included the stats include still not working.

EDIT

forgot to include csx as well as cs stats

Last edited by Blizzard_87; 03-13-2013 at 20:28. Reason: solved
Blizzard_87 is offline
^SmileY
Veteran Member
Join Date: Jan 2010
Location: Brazil [<o>]
Old 03-13-2013 , 20:15   Re: hook players rank from statsx?
Reply With Quote #9

its an #include <csstats>

__________________
Projects:

- See my Git Hub: https://github.com/SmileYzn
PHP Code:
set_pcvar_num(pCvar, !get_pcvar_num(pCvar)); 
^SmileY is offline
Send a message via MSN to ^SmileY Send a message via Skype™ to ^SmileY
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 21:37.


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