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

Need help to print online admins to chat


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Triniayo
Senior Member
Join Date: Apr 2011
Location: #include <germany>
Old 07-22-2013 , 23:45   Need help to print online admins to chat
Reply With Quote #1

Hi guys,

I want to print all current online admins to the chat. Could anyone help me? I don't know how to do.. I'm absolute newby in SourcePawn, but I want to learn it. I hope that you can help me.

Code:

PHP Code:
#include <sourcemod>

public Plugin:myinfo =
{
    
name "Adminlist",
    
author "FreakyLike",
    
description "Simple plugin which displays the current online admins.",
    
version "1.0",
    
url "http://www.nastygaming.de"
};

public 
OnPluginStart()
{
    
PrintToServer("Simple Adminlist loaded successfully.");
    
AddCommandListener(ChatCommandFunction"say");
}

//public OnClientConnected(client);
//{
//    new AdminID = GetUserAdmin(client);
//}

public Action:ChatCommandFunction(client, const String:command[], args)
{
    static 
String:arg[64];
    
GetCmdArgString(argsizeof(arg));
    
StripQuotes(arg);
    
    if 
StrEqual(arg"!alist"true) || StrEqual(arg"/alist"true) *then
    
{
        
PrintToChatAll("\x03Here will be listed all current online admins.")
        
        return 
Plugin_Handled;
    }
        return 
Plugin_Continue;

__________________
If you need any help, feel free to add me on Steam.


Triniayo is offline
Send a message via Skype™ to Triniayo
Sillium
AlliedModders Donor
Join Date: Sep 2008
Location: Germany
Old 07-23-2013 , 01:21   Re: Need help to print online admins to chat
Reply With Quote #2

You could take a look at this plugin: http://forums.alliedmods.net/showthread.php?p=594854
__________________
brb, dishes have developed their own language and are talking to the garbage about overthrowing me... i must correct this

www.unterwasserpyromanen.de
Sillium is offline
Triniayo
Senior Member
Join Date: Apr 2011
Location: #include <germany>
Old 07-23-2013 , 01:36   Re: Need help to print online admins to chat
Reply With Quote #3

I've already taken a look at this plugin.. but I want to know a different method to print the online admins to the chat.

I tried something from this plugin, but it doesnt work. :/
__________________
If you need any help, feel free to add me on Steam.


Triniayo is offline
Send a message via Skype™ to Triniayo
mcpan313
Senior Member
Join Date: Mar 2010
Old 07-23-2013 , 04:26   Re: Need help to print online admins to chat
Reply With Quote #4

Not test
__________________
sorry, for my poor english.
mcpan313 is offline
Send a message via MSN to mcpan313
Triniayo
Senior Member
Join Date: Apr 2011
Location: #include <germany>
Old 07-23-2013 , 08:17   Re: Need help to print online admins to chat
Reply With Quote #5

It works great!

Thank you.
__________________
If you need any help, feel free to add me on Steam.



Last edited by Triniayo; 07-23-2013 at 08:20.
Triniayo is offline
Send a message via Skype™ to Triniayo
LordOfNothing
BANNED
Join Date: Jul 2013
Old 07-26-2013 , 10:31   Re: Need help to print online admins to chat
Reply With Quote #6

sorry but this is amxmodx not sourcemod you wrong section _
LordOfNothing is offline
DoPe^
Veteran Member
Join Date: Jul 2008
Location: Denmark / Copenhagen
Old 07-26-2013 , 10:32   Re: Need help to print online admins to chat
Reply With Quote #7

Quote:
Originally Posted by LordOfNothing View Post
sorry but this is amxmodx not sourcemod you wrong section _
no you are in the wrong section lol
__________________
DoPe^ is offline
Powerlord
AlliedModders Donor
Join Date: Jun 2008
Location: Seduce Me!
Old 07-26-2013 , 10:36   Re: Need help to print online admins to chat
Reply With Quote #8

Quote:
Originally Posted by LordOfNothing View Post
sorry but this is amxmodx not sourcemod you wrong section _
This is the SourceMod Scripting board.

Quote:
Originally Posted by DoPe^ View Post
no you are in the wrong section lol
There's the chance that an admin moved it in the... at most 119 seconds before you replied to it.

A very, very, very slim chance, but it could have happened!
__________________
Not currently working on SourceMod plugin development.
Powerlord is offline
DoPe^
Veteran Member
Join Date: Jul 2008
Location: Denmark / Copenhagen
Old 07-26-2013 , 10:40   Re: Need help to print online admins to chat
Reply With Quote #9

Quote:
Originally Posted by Powerlord View Post
This is the SourceMod Scripting board.


There's the chance that an admin moved it in the... at most 119 seconds before you replied to it.

A very, very, very slim chance, but it could have happened!
It havn't :p I saw it some days ago here in this section :p
same day it got made
__________________

Last edited by DoPe^; 07-26-2013 at 10:41.
DoPe^ 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:01.


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