AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Unapproved/Old Plugins (https://forums.alliedmods.net/forumdisplay.php?f=27)
-   -   #'Show Player InfoV1.3'# (For admins only) (https://forums.alliedmods.net/showthread.php?t=173493)

echo_cs 12-06-2011 04:22

#'Show Player InfoV1.3'# (For admins only)
 
2 Attachment(s)
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> 


Devil259 12-06-2011 06:08

Re: Show player info
 
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.

jackas 12-06-2011 06:17

Re: Show player info
 
Add screenshots also !!!

echo_cs 12-06-2011 06:34

Re: Show player info
 
the plugin work correctly test it

Devil259 12-06-2011 06:40

Re: Show player info
 
Write "status" in console.

It gives SteamID, IP, Name :)

Useless for me.

MyPc 12-06-2011 07:21

Re: Show player info
 
its redundant because you can write status and get all information.

Devil259 12-06-2011 07:27

Re: Show player info
 
Quote:

Originally Posted by Devil259 (Post 1608556)
Write "status" in console.

It gives SteamID, IP, Name :)

Useless for me.

I already said that

tuty 12-06-2011 09:16

Re: Show player info
 
and i think already exists such plugins

kramesa 12-06-2011 10:08

Re: Show player info
 
Quote:

Originally Posted by Devil259 (Post 1608556)
Write "status" in console.

It gives SteamID, IP, Name :)

Useless for me.

Show ip only status for HLDS.

Napoleon_be 12-06-2011 11:17

Re: Show player info
 
Getting an IP of a player without getting permissions from the player should be forbidden... It's too dangerous imo


All times are GMT -4. The time now is 13:53.

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