AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   List players' info in console (https://forums.alliedmods.net/showthread.php?t=156938)

Simba 05-14-2011 05:03

List players' info in console
 
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?

SonicSonedit 05-14-2011 08:01

Re: List players' info in console
 
Block status command and make your own.

fysiks 05-14-2011 14:59

Re: List players' info in console
 
  • Loop through players.
  • Get info about players.
  • console_print()
Quote:

Originally Posted by SonicSonedit (Post 1469123)
Block status command

He didn't say he wanted to replace it. Just make a new one that is similar with different info.

no n@me 12-02-2011 12:19

Re: List players' info in console
 
How to block status command

joshknifer 12-02-2011 12:49

Re: List players' info in console
 
Quote:

Originally Posted by no n@me (Post 1606384)
How to block status command

PHP Code:

public plugin_init()
{
    
register_clcmd("status""CmdStatus")    
}

public 
CmdStatus(id)
{
     return 
PLUGIN_HANDLED_MAIN



bibu 12-02-2011 13:31

Re: List players' info in console
 
@josh:

This won't work.

joshknifer 12-02-2011 13:53

Re: List players' info in console
 
Quote:

Originally Posted by bibu (Post 1606440)
@josh:

This won't work.

Okay well will you show me what will work instead so that I may learn?

bibu 12-02-2011 15:07

Re: List players' info in console
 
I don't think there is a way todo that since it is a client command. Otherwise I would tell you.

joshknifer 12-02-2011 16:11

Re: List players' info in console
 
Quote:

Originally Posted by bibu (Post 1606510)
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?

fysiks 12-03-2011 00:27

Re: List players' info in console
 
Quote:

Originally Posted by joshknifer (Post 1606547)
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.


All times are GMT -4. The time now is 04:26.

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