Raised This Month: $82 Target: $400

Show Status in Chat

Post New Thread Reply   
Thread Tools Display Modes
Author Message
New Member
Join Date: Jun 2015
Old 04-14-2019 , 12:01   Show Status in Chat
Reply With Quote #1

I'm trying to make a plugin that will let the player type !status and show what would normally be found in the console for status in chat. Is this possible and if it is can anyone point me in the right direction? I have not been able to find any similar plugins to reference
kabLe795 is offline
Join Date: Jun 2010
Location: Bordeaux (France)
Old 04-14-2019 , 13:24   Re: Show Status in Chat
Reply With Quote #2


I think you could go for something like this:

PHP Code:
for (int i 1<= MaxClientsi++)
    if ((
IsClientInGame(i) || IsClientObserver(i)) && IsClientConnected(i) && !IsFakeClient(i))
PrintToChat(i"Name: %s || SteamID: %s"GetClientName(i), GetSteamAccountID(itrue)); 

For the rest of the script I'll let you do.

I got everything I needed from there : https://sm.alliedmods.net/new-api/

Last edited by blackdevil72; 04-14-2019 at 13:41.
blackdevil72 is offline

Thread Tools
Display Modes

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 04:34.

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