User
Pass
2FA
 
 

Plugin ShowIp

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Freakz Forum Index -> Trash Bin -> CS 2006-2019 (Archived) -> Resources
Author Message1742
---eXe---

[Mentally Stable]



Status: Offline
(since 08-09-2010 18:46)
Joined: 21 Jul 2010
Posts: 2, Topics: 1
Location: Spain

Reputation: 48.1
Votes: 2

Post Posted: 02-09-2010, 10:18:39 | Translate post to: ... (Click for more languages)

r3
As dori si eu un plugin pe nume ShowIP care se acceseaza prin comanda amx_showip

Multumesc - - -

0 0
  
Back to top
View user's profile Send private message
CarmeK

[Mentally Stable]



Status: Offline
(since 20-09-2013 22:09)
Joined: 15 Jan 2011
Posts: 31, Topics: 1
Location: pestera lu' batman

Reputation: 46.9
Votes: 5

   
Post Posted: 16-01-2011, 19:26:03 | Translate post to: ... (Click for more languages)

Code:

#include <amxmodx>
#include <amxmisc>

public plugin_init()
{
    register_plugin("ShowIP", "0.00", "teame06 - CarmeK")
    register_cvar("showip", "0.00", FCVAR_SERVER|FCVAR_SPONLY) /* For GameSpy/HLSW and such */
    register_concmd("amx_showip", "who_ip", ADMIN_BAN, "- Show players ip")
}

public who_ip(id,level,cid)
{
    if (!cmd_access(id,level,cid,1))
        return PLUGIN_HANDLED
    // Variables
    new user_ip[32], name[32], user_ping, user_loss, text[64], bot_ping[32]
    // get max players
    new maxplayers = get_maxplayers()
    // Console Print
    console_print(id, "Client IP:^n#  NICK             IP                   PING")
    // Loop command till it goes threw all users
    for(new j=1; j <= maxplayers; j++)
    {
        if(is_user_connected(j))
        {
            get_user_ip(j, user_ip, 31, 1)
            get_user_name(j, name, 31)
            get_user_ping(j, user_ping, user_loss)
            if(is_user_bot(j))
            {           
                user_ip = "BOT"
                bot_ping = "BOT_ARE_ON_SERVER"
                format(text, 63, "%2d %-16.15s %-20s %-8s", j, name, user_ip, bot_ping)
            }
            else
            {
                format(text, 63, "%2d %-16.15s %-20s %-8d", j, name, user_ip, user_ping)
            }
            console_print(id, text)
        }
    }
    return PLUGIN_CONTINUE
}


l-am modificat pentru a arata doar la comanda nu si cind se conecteaza cineva

0 0
  
Back to top
View user's profile Send private message Yahoo! Messenger ID
xsider

[its x,nevermore]



Status: Offline
(since 11-06-2012 09:40)
Joined: 03 Apr 2010
Posts: 19, Topics: 12
Location: Portugal

Reputation: 117.1
Votes: 4

 
Post Posted: 02-02-2011, 12:07:36 | Translate post to: ... (Click for more languages)

De ce te dai drept autor la un plugin cu care n-ai nici o treabã?

Only God can judge me!
0 0
  
Back to top
View user's profile Send private message
_SunSet_

[SaveTheEarth!!]



Status: Offline
(since 14-05-2011 07:27)
Joined: 30 Dec 2010
Posts: 84, Topics: 18
Location: Gzone.Freakz.Ro

Reputation: 39.1
Votes: 5

Post Posted: 22-02-2011, 17:07:07 | Translate post to: ... (Click for more languages)

http://www.girlshare.ro/1952275.6

1. Fisierul plugin_showip.amx il pui in addons\amxmodx\plugins
2. Fisierul plugin_showip.amx il pui in addons\amxmodx\scripts
3. Intri in fisierul addons\amxmodx\config\plugins.ini si adaugi la urma:

Code:
amx_showip.amxx



Dar cred ca asta stiai deja.



0 0
  
Back to top
View user's profile Send private message
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Freakz Forum Index -> Trash Bin -> CS 2006-2019 (Archived) -> Resources  


The time now is 11-01-2025, 12:37:49
Copyright info

Based on phpBB ro/com
B

 
 
 







I forgot my password


This message appears only once, so
like us now until it's too late ! :D
x