Raised This Month: $ Target: $400
 0% 

/steam show steamers online


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Mohamed null
BANNED
Join Date: Sep 2020
Location: Algeria
Old 10-17-2020 , 16:36   Re: /steam show steamers online
#9

someone edit it
Quote:
#include <amxmodx>
#include <amxmisc>

#define PLUGIN "Check Steam Client"
#define VERSION "0.0.1"
#define AUTHOR "Supermache"


public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)
register_clcmd( "say /steam", "CheckSteamClient", ADMIN_KICK);
register_clcmd( "say_team /steam", "CheckSteamClient", ADMIN_KICK);
}


public CheckSteamClient(id, iLevel, iCid)
{
if(!cmd_access(id, iLevel, iCid, 1))
{
return PLUGIN_HANDLED
}

new szTitle[128]
formatex(szTitle, charsmax(szTitle), "\yCheck Steamer'S:")

new iPlayers[32], iPnum, iMenu = menu_create(szTitle, "SteamClient")
get_players(iPlayers, iPnum, "ch");

for(new szUserName[32], szUserID[32], g_CheckSteam[51], iPlayer, i = 0; i < iPnum; i++)
{
iPlayer = iPlayers[i];

get_user_authid(iPlayer, szUserID, charsmax(szUserID))
get_user_name(iPlayer, szUserName, charsmax(szUserName));

if( containi(szUserID, "STEAM_0") != -1 ) {
copy(g_CheckSteam, charsmax(g_CheckSteam), "\r(Steam)");

}
else {
copy(g_CheckSteam, charsmax(g_CheckSteam), "");

}

formatex( szUserName, charsmax(szUserName), "%s %s", szUserName, g_CheckSteam);
menu_additem(iMenu, szUserName);
}

menu_setprop( iMenu, MPROP_EXITNAME, "Exit" );
menu_setprop( iMenu, MPROP_NEXTNAME, "Next" );
menu_setprop( iMenu, MPROP_BACKNAME, "Back" );

menu_display(id, iMenu)
return PLUGIN_HANDLED
}

public SteamClient(id, iMenu, iItem)
{
menu_destroy(iMenu)
return PLUGIN_HANDLED
}
Mohamed null is offline
 



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 11:41.


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