AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   hook players rank from statsx? (https://forums.alliedmods.net/showthread.php?t=210661)

Blizzard_87 03-13-2013 08:18

hook players rank from statsx?
 
is there a way to hook or get a players rank from the statsx plugin and display in a motd?

Podarok 03-13-2013 09:04

Re: hook players rank from statsx?
 
Yes, make natives to get rank...

Blizzard_87 03-13-2013 09:54

Re: hook players rank from statsx?
 
Quote:

Originally Posted by Podarok (Post 1911886)
Yes, make natives to get rank...

I'd have to edit the stats plugin to make the natives? if so could you give example?

Podarok 03-13-2013 10:23

Re: hook players rank from statsx?
 
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..

YamiKaitou 03-13-2013 10:25

Re: hook players rank from statsx?
 
Why not just use the already existing native? get_user_stats

Podarok 03-13-2013 10:35

Re: hook players rank from statsx?
 
Quote:

Originally Posted by YamiKaitou (Post 1911926)
Why not just use the already existing native? get_user_stats

Didn't even know there is such lol

Blizzard_87 03-13-2013 16:07

Re: hook players rank from statsx?
 
Quote:

Originally Posted by YamiKaitou (Post 1911926)
Why not just use the already existing native? get_user_stats

thanks will try it.

Blizzard_87 03-13-2013 20:02

Re: hook players rank from statsx?
 
tried that native even included the stats include still not working.

EDIT

forgot to include csx as well as cs stats

^SmileY 03-13-2013 20:15

Re: hook players rank from statsx?
 
its an #include <csstats>

:)


All times are GMT -4. The time now is 21:37.

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