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

List players' info in console


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Simba
Junior Member
Join Date: Dec 2010
Old 05-14-2011 , 05:03   List players' info in console
Reply With Quote #1

How can I list a specific player info of all players into the console.

For example, the status command lists all online players and their STEAM IDs.
How can I make a command 'rates' to list all the players and their "rate"s?
Simba is offline
SonicSonedit
Veteran Member
Join Date: Nov 2008
Location: Silent Hill
Old 05-14-2011 , 08:01   Re: List players' info in console
Reply With Quote #2

Block status command and make your own.
__________________

SonicSonedit is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 05-14-2011 , 14:59   Re: List players' info in console
Reply With Quote #3

  • Loop through players.
  • Get info about players.
  • console_print()
Quote:
Originally Posted by SonicSonedit View Post
Block status command
He didn't say he wanted to replace it. Just make a new one that is similar with different info.
__________________

Last edited by Emp`; 05-14-2011 at 15:05. Reason: it's console_print not print_console ;]
fysiks is offline
no n@me
Junior Member
Join Date: Jun 2011
Old 12-02-2011 , 12:19   Re: List players' info in console
Reply With Quote #4

How to block status command

Last edited by no n@me; 12-02-2011 at 12:19.
no n@me is offline
joshknifer
Veteran Member
Join Date: Jun 2011
Location: Denver, CO
Old 12-02-2011 , 12:49   Re: List players' info in console
Reply With Quote #5

Quote:
Originally Posted by no n@me View Post
How to block status command
PHP Code:
public plugin_init()
{
    
register_clcmd("status""CmdStatus")    
}

public 
CmdStatus(id)
{
     return 
PLUGIN_HANDLED_MAIN

__________________
joshknifer is offline
Send a message via Skype™ to joshknifer
bibu
Veteran Member
Join Date: Sep 2010
Old 12-02-2011 , 13:31   Re: List players' info in console
Reply With Quote #6

@josh:

This won't work.
__________________
Selling tons of my own private works.
Accepting paid work for clans and communities.
Don't hesitate to contact me.
bibu is offline
joshknifer
Veteran Member
Join Date: Jun 2011
Location: Denver, CO
Old 12-02-2011 , 13:53   Re: List players' info in console
Reply With Quote #7

Quote:
Originally Posted by bibu View Post
@josh:

This won't work.
Okay well will you show me what will work instead so that I may learn?
__________________

Last edited by joshknifer; 12-02-2011 at 13:54.
joshknifer is offline
Send a message via Skype™ to joshknifer
bibu
Veteran Member
Join Date: Sep 2010
Old 12-02-2011 , 15:07   Re: List players' info in console
Reply With Quote #8

I don't think there is a way todo that since it is a client command. Otherwise I would tell you.
__________________
Selling tons of my own private works.
Accepting paid work for clans and communities.
Don't hesitate to contact me.
bibu is offline
joshknifer
Veteran Member
Join Date: Jun 2011
Location: Denver, CO
Old 12-02-2011 , 16:11   Re: List players' info in console
Reply With Quote #9

Quote:
Originally Posted by bibu View Post
I don't think there is a way todo that since it is a client command. Otherwise I would tell you.
Oh i knew it was a client command, but i thought that since it is sending info to the server, that it was hookable. Anybody know the answer?
__________________
joshknifer is offline
Send a message via Skype™ to joshknifer
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 12-03-2011 , 00:27   Re: List players' info in console
Reply With Quote #10

Quote:
Originally Posted by joshknifer View Post
Oh i knew it was a client command, but i thought that since it is sending info to the server, that it was hookable. Anybody know the answer?
It's sending something to the server but it's not a standard client command.
__________________
fysiks 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 14:53.


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