Raised This Month: $32 Target: $400
 8% 

/steam show steamers online


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

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
Supremache
Veteran Member
Join Date: Sep 2019
Location: Egypt
Old 10-17-2020 , 16:38   Re: /steam show steamers online
#12

What happen ??!!! Is there any issue, I said you need to save the file before complie !!!!!
__________________
Youtube.com/Supremache

Bank System [Nvault - SQL Support]
VIP System
  • If you think it's that simple, then do it yourself.
Supremache is offline
Mohamed null
BANNED
Join Date: Sep 2020
Location: Algeria
Old 10-17-2020 , 16:40   Re: /steam show steamers online
#13

oh wait xd
Mohamed null is offline
Mohamed null
BANNED
Join Date: Sep 2020
Location: Algeria
Old 10-17-2020 , 16:42   Re: /steam show steamers online
#14

and ?
Mohamed null is offline
Supremache
Veteran Member
Join Date: Sep 2019
Location: Egypt
Old 10-17-2020 , 16:44   Re: /steam show steamers online
#15

Error 404 !!!!

And what ?? I think after the plugin get complie, you need to test it on your server ??!!!
__________________
Youtube.com/Supremache

Bank System [Nvault - SQL Support]
VIP System
  • If you think it's that simple, then do it yourself.
Supremache is offline
JocAnis
Veteran Member
Join Date: Jun 2010
Old 10-17-2020 , 17:41   Re: /steam show steamers online
#16

Code:
if( containi(szUserID, "STEAM_0") != -1 ) {
      copy(g_CheckSteam, charsmax(g_CheckSteam), "\r(Steam)");
            
}
else {
      copy(g_CheckSteam, charsmax(g_CheckSteam), "\r(Non-Steam)");
            
}
this will give all players are steam lol
__________________
KZ Public Autocup - PrimeKZ

My blog: http://primekz.xyz (in progress...) - not active (dec 2022)

Last edited by JocAnis; 10-17-2020 at 17:42.
JocAnis is offline
zay
BANNED
Join Date: Jul 2020
Old 10-17-2020 , 23:07   Re: /steam show steamers online
#17

Quote:
Originally Posted by Supremache View Post
Error 404 !!!!

And what ?? I think after the plugin get complie, you need to test it on your server ??!!!
I tested it (y) say /steam and no result I found plugin is not working
zay is offline
Supremache
Veteran Member
Join Date: Sep 2019
Location: Egypt
Old 10-18-2020 , 01:07   Re: /steam show steamers online
#18

I didn't tested it yet but I used this way before and worked perfectly but I think I did something wrong, wait until I open my pc and check which wrong I did

@jocanis - In new protocol 48 (steam) all players are using Steam they dosen't have (-1) in their first steamid and you can check it from. Steam community
__________________
Youtube.com/Supremache

Bank System [Nvault - SQL Support]
VIP System
  • If you think it's that simple, then do it yourself.

Last edited by Supremache; 10-18-2020 at 03:01.
Supremache is offline
Supremache
Veteran Member
Join Date: Sep 2019
Location: Egypt
Old 10-18-2020 , 03:16   Re: /steam show steamers online
#19

I tested it, There's no isuse on it, it's working perfectly Oo

This plugin working like:
1. Player Name (Steam) Will show steam If this user using steam client "protocol 48"
2. Player Name (Non-Steam) Will show Non-steam If this user using non-steam client "protocol 47"
3. Player Name etc
4. Player Name etc
5. Player Name etc
6. Player Name etc
7. Player Name etc
8. Back
9. Next
0. Exit

Quote:
Originally Posted by zay View Post
I tested it (y) say /steam and no result I found plugin is not working
Be sure you have this access "ADMIN_KICK"
__________________
Youtube.com/Supremache

Bank System [Nvault - SQL Support]
VIP System
  • If you think it's that simple, then do it yourself.

Last edited by Supremache; 10-18-2020 at 03:18.
Supremache is offline
zay
BANNED
Join Date: Jul 2020
Old 10-18-2020 , 10:50   Re: /steam show steamers online
#20

Quote:
Originally Posted by Supremache View Post
I tested it, There's no isuse on it, it's working perfectly Oo

This plugin working like:
1. Player Name (Steam) Will show steam If this user using steam client "protocol 48"
2. Player Name (Non-Steam) Will show Non-steam If this user using non-steam client "protocol 47"
3. Player Name etc
4. Player Name etc
5. Player Name etc
6. Player Name etc
7. Player Name etc
8. Back
9. Next
0. Exit



Be sure you have this access "ADMIN_KICK"

Yeah i have All access but this is not working in my AMXMODX 1.8.2
zay is offline
Closed Thread


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 02:38.


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