Raised This Month: $ Target: $400
 0% 

[request] Finding Ghosters


Post New Thread Reply   
 
Thread Tools Display Modes
Battousai-sama
Veteran Member
Join Date: Jul 2007
Old 04-11-2008 , 16:27   Re: [request] Finding Ghosters
Reply With Quote #11

here i edited it for u and command is amx_ghosters.
Attached Files
File Type: sma Get Plugin or Get Source (ghosters.sma - 353 views - 1.3 KB)
__________________
Battousai-sama is offline
Send a message via MSN to Battousai-sama
spiderbites
Senior Member
Join Date: Nov 2007
Old 04-11-2008 , 23:42   Re: [request] Finding Ghosters
Reply With Quote #12

nice..thanks. can you add message 'no ghosters are found' when plugin cannot find any ghosters?
spiderbites is offline
Battousai-sama
Veteran Member
Join Date: Jul 2007
Old 04-12-2008 , 00:22   Re: [request] Finding Ghosters
Reply With Quote #13

here test this
PHP Code:
#include <amxmodx>
#include <cstrike>
#define PLUGIN    "Test"
#define AUTHOR    "Jim"
#define VERSION    "1.0"
new g_maxplayers
public plugin_init()
{
    
register_plugin(PLUGINVERSIONAUTHOR)
    
register_clcmd("amx_ghosters""check")
    
g_maxplayers get_maxplayers()
}
public 
check(id)
{
    if(!(
get_user_flags(id) & ADMIN_BAN))
        return 
PLUGIN_CONTINUE
    
    
new ip[16], tempip[16], CsTeams:team
    
for(new 1<= g_maxplayersi++)
    {
        if(!
is_user_connected(i))
            continue
        
team cs_get_user_team(i)
        
get_user_ip(iip151)
    if(
equal(ip"190.142"7))
     {
      new 
name[32]
      
get_user_name(iname31)
      
client_print(idprint_chat"[AMXX] %s got IP %s"nameip)
     }

        
        for(new 
1<= g_maxplayersj++)
        {
            if(!
is_user_connected(j))
                continue
            if(
cs_get_user_team(j) != team)
            {
                
get_user_ip(jtempip151)
                if(
equal(iptempip))
                    
tell_admin(ijid)
            }    
        }
        
     if(!
equal(ip"190.142"7))
     
client_print(idprint_chat"[AMXX] No Ghosters Were Found")
        
    }
    return 
PLUGIN_HANDLED
}
public 
tell_admin(abadmin)
{
    new 
namea[32], nameb[32]
    
get_user_name(anamea31)
    
get_user_name(bnameb31)
    
client_print(adminprint_chat"[AMXX] %s and %s got same IP."nameanameb)

__________________
Battousai-sama is offline
Send a message via MSN to Battousai-sama
jim_yang
Veteran Member
Join Date: Aug 2006
Old 04-12-2008 , 00:36   Re: [request] Finding Ghosters
Reply With Quote #14

Code:
#include <amxmodx> #include <cstrike> #define PLUGIN    "Test" #define AUTHOR    "Jim" #define VERSION    "1.0" new g_maxplayers public plugin_init() {     register_plugin(PLUGIN, VERSION, AUTHOR)     register_clcmd("amx_ghosters", "check")     g_maxplayers = get_maxplayers() } public check(id) {     if(!(get_user_flags(id) & ADMIN_BAN))         return PLUGIN_CONTINUE         new ip[16], tempip[16], CsTeams:team     new tag     for(new i = 1; i <= g_maxplayers; i++)     {         if(!is_user_connected(i))             continue         team = cs_get_user_team(i)         get_user_ip(i, ip, 15, 1)         for(new j = i + 1; j <= g_maxplayers; j++)         {             if(!is_user_connected(j))                 continue             if(cs_get_user_team(j) != team)             {                 get_user_ip(j, tempip, 15, 1)                 if(equal(ip, tempip))                 {                     tag = 1                     tell_admin(i, j, id)                 }             }             }     }     if(!tag)         client_print(id, print_chat, "[AMXX] No Ghosters Were Found")     return PLUGIN_HANDLED } public tell_admin(a, b, admin) {     new namea[32], nameb[32]     get_user_name(a, namea, 31)     get_user_name(b, nameb, 31)     client_print(admin, print_chat, "[AMXX] %s and %s got same IP.", namea, nameb) }

Last edited by jim_yang; 04-12-2008 at 05:59.
jim_yang is offline
spiderbites
Senior Member
Join Date: Nov 2007
Old 04-12-2008 , 01:04   Re: [request] Finding Ghosters
Reply With Quote #15

thanks to both of you

+! karma
spiderbites is offline
Battousai-sama
Veteran Member
Join Date: Jul 2007
Old 04-12-2008 , 01:07   Re: [request] Finding Ghosters
Reply With Quote #16

No problem. jims version is better :]
__________________
Battousai-sama is offline
Send a message via MSN to Battousai-sama
spiderbites
Senior Member
Join Date: Nov 2007
Old 04-12-2008 , 03:49   Re: [request] Finding Ghosters
Reply With Quote #17

another problem..can you make the plugin shows only message "[AMXX] No Ghosters Were Found" for once when there are no ghosters, instead of repeating the message for numbers of players on the servers
spiderbites is offline
jim_yang
Veteran Member
Join Date: Aug 2006
Old 04-12-2008 , 06:01   Re: [request] Finding Ghosters
Reply With Quote #18

Quote:
Originally Posted by spiderbites View Post
another problem..can you make the plugin shows only message "[AMXX] No Ghosters Were Found" for once when there are no ghosters, instead of repeating the message for numbers of players on the servers
Sorry for that, I've made a mistake. Fixed.
__________________
Project : CSDM all in one - 99%
<team balancer#no round end#entity remover#quake sounds#fake full#maps management menu#players punishment menu#no team flash#colored flashbang#grenade trails#HE effect#spawn protection#weapon arena#weapon upgrade#auto join#no weapon drop#one name>
jim_yang is offline
Mlk27
Veteran Member
Join Date: May 2008
Old 05-30-2008 , 22:59   Re: [request] Finding Ghosters
Reply With Quote #19

jim_yang, instead of showing 2 ghosters, can you make this plugin reveal all ghosters on server?
Mlk27 is offline
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 04:59.


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