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

#'Show Player InfoV1.3'# (For admins only)


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   ALL        Category:   Admin Commands       
echo_cs
Senior Member
Join Date: Dec 2011
Old 12-06-2011 , 04:22   #'Show Player InfoV1.3'# (For admins only)
Reply With Quote #1

Show Info Menu V1.0



Quote:
AMX Mod plugin

Show info menu, v1.3

(c) Copyright 2011 - echo_cs



PHP Code:
/*
 * Description:
 * This plugin show the info of players (ip, steam)
 * steam: to add the steam player on your steam                                            
 * Command(s):
 * say /sinfo
 * say .sinfo
 * Requirement(s):
 * echo_cs
 * Cvar: show_info 1 = ON || show_info 0 = OFF
 * Setup:
 * showinfo.amxx in ....../addons/amxmodx/plugins 
 * showinfo.sma  in ....../addons/amxmodx/scripting 
 * chatcolor.inc   in ....../addons/amxmodx/scripting/include
/* 


Quote:
Command(s):
say /sinfo
say .sinfo


Quote:
Cvar(s):
show_info 1 = ON
show_info 0 = OFF


PHP Code:
new Name[32], Steam[35], CurrentDate[32], Ip[100];
    
    
get_user_name(tempidName31// Get user name
    
get_user_ip(tempid,Ip,99,1)
    
get_user_authid(tempidSteam31// Get user team
    
get_time("%d.%m.%Y"CurrentDate31// Get Current Date
    
client_print_color(idDontChange,"%s Date: %s  NAME: %s STEAM: %s IP: %s",TAG,CurrentDate,Name,SteamIp); 
Clcmd:
PHP Code:
register_clcmd("say /sinfo""Menu_info");
register_clcmd("say .sinfo""Menu_info"); 
Cvar:
PHP Code:
register_cvar("show_info""1"
Admins Only:
PHP Code:
   if(!is_user_admin(id)) 
    { 
         
         
        new 
menu menu_create("\rSelect the Player:""menu_handler"); 
         
        new 
players[32], pnumtempid
         
        new 
szName[32], szTempid[10]; 
         
        
get_players(playerspnum); 
         
        for( new 
ii<pnumi++ ) 
        { 
            
tempid players[i]; 
             
            
get_user_name(tempidszNamecharsmax(szName)); 
            
num_to_str(tempidszTempidcharsmax(szTempid)); 
             
            
menu_additem(menuszNameszTempid0); 
             
        } 
         
        
menu_display(idmenu0); 
        return 
PLUGIN_CONTINUE 
    

Includes:
PHP Code:
#include <amxmodx>
#include <amxmisc>
#include <chatcolor> 
Attached Files
File Type: inc chatcolor.inc (603 Bytes, 144 views)
File Type: sma Get Plugin or Get Source (showinfo.sma - 817 views - 2.0 KB)
__________________
Pawn (5%)

C (80%)

C++ (20%)

SQL (5%)

Last edited by echo_cs; 12-16-2011 at 10:09.
echo_cs is offline
Devil259
Veteran Member
Join Date: Dec 2009
Location: France (59)
Old 12-06-2011 , 06:08   Re: Show player info
Reply With Quote #2

line 56 : warning 217: loose indentation

Moreover, Steam array len should be 35 instead of 32.

Code:
public menu_handler(id, menu, item) {         if( item == MENU_EXIT )     {         menu_destroy(menu);         return PLUGIN_HANDLED;     }         new data[6], szName[64];     new access, callback;     menu_item_getinfo(menu, item, access, data,charsmax(data), szName,charsmax(szName), callback);         new tempid = str_to_num(data); { // what is this ??     new Name[32], Ip[32], Steam[32], CurrentDate[32], iname[32];         get_user_name(tempid, Name, 31) // Get user name     get_user_authid(tempid, Steam, 31) // Get user team     get_user_ip(tempid, Ip, 31, 1) // Get user ip     get_user_name(id, iname, 31) // Get your name to notify the tempid     get_time("%d.%m.%Y", CurrentDate, 31) // Get Current Date     client_print(id, print_chat, "%s Date: %s  NAME: %s STEAM: %s                %s IP: %s",TAG,CurrentDate,Name,Steam,Name,Ip);     client_print(tempid, print_chat, "%s %s viewed your info", TAG, iname); } // and this ?? menu_destroy(menu); return PLUGIN_HANDLED; }

Code:
#define Website "http://eac.example.com/"

You never use it.
__________________
You can do anything you set your mind to, man.


Last edited by Devil259; 12-06-2011 at 06:09.
Devil259 is offline
jackas
Senior Member
Join Date: Feb 2011
Old 12-06-2011 , 06:17   Re: Show player info
Reply With Quote #3

Add screenshots also !!!
__________________
For our new family member's in alliedmods
Quote:
Originally Posted by bo0m View Post
Ok, there are a couple ways to find this, here are about 5:
1. Search
2. Search again
3. If you don't find it, then search again.
4. After searching the 3rd time, search again
5. Then when you are tired of searching, just search some more!!!!
jackas is offline
echo_cs
Senior Member
Join Date: Dec 2011
Old 12-06-2011 , 06:34   Re: Show player info
Reply With Quote #4

the plugin work correctly test it
__________________
Pawn (5%)

C (80%)

C++ (20%)

SQL (5%)
echo_cs is offline
Devil259
Veteran Member
Join Date: Dec 2009
Location: France (59)
Old 12-06-2011 , 06:40   Re: Show player info
Reply With Quote #5

Write "status" in console.

It gives SteamID, IP, Name

Useless for me.
__________________
You can do anything you set your mind to, man.

Devil259 is offline
MyPc
Senior Member
Join Date: Sep 2011
Old 12-06-2011 , 07:21   Re: Show player info
Reply With Quote #6

its redundant because you can write status and get all information.
MyPc is offline
Devil259
Veteran Member
Join Date: Dec 2009
Location: France (59)
Old 12-06-2011 , 07:27   Re: Show player info
Reply With Quote #7

Quote:
Originally Posted by Devil259 View Post
Write "status" in console.

It gives SteamID, IP, Name

Useless for me.
I already said that
__________________
You can do anything you set your mind to, man.

Devil259 is offline
tuty
Veteran Member
Join Date: Jul 2008
Location: UK
Old 12-06-2011 , 09:16   Re: Show player info
Reply With Quote #8

and i think already exists such plugins
__________________
tuty is offline
Send a message via ICQ to tuty Send a message via AIM to tuty
kramesa
Veteran Member
Join Date: Feb 2011
Location: Brazil
Old 12-06-2011 , 10:08   Re: Show player info
Reply With Quote #9

Quote:
Originally Posted by Devil259 View Post
Write "status" in console.

It gives SteamID, IP, Name

Useless for me.
Show ip only status for HLDS.
__________________
kramesa is offline
Napoleon_be
Veteran Member
Join Date: Jul 2011
Location: Belgium
Old 12-06-2011 , 11:17   Re: Show player info
Reply With Quote #10

Getting an IP of a player without getting permissions from the player should be forbidden... It's too dangerous imo
__________________
Napoleon_be is offline
Send a message via Skype™ to Napoleon_be
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 10:01.


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