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

Bad load, no compiler errors


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
fatal_nl
Member
Join Date: Apr 2017
Old 05-09-2019 , 00:53   Bad load, no compiler errors
Reply With Quote #1

Edit: I got it working, code is updated. Feel free to use it if you like it.

Below is a stripped down version of ShowIP with some added parts ignoring bots.

Does anyone got an idea why this is giving a bad load? It's not functioning at all unfortunately.

PHP Code:
#include <amxmodx>
#include <amxmisc>
#include <geoip>

#define ADMIN ADMIN_LEVEL_G        // Custom admin level

new iPlayers[32]
new 
iPlayerNum
new szName[32]
new 
szIP[20]
new 
szID[32]
new 
szCountry[40]

public 
plugin_init()
{
    
register_plugin("AllinfoIP""0.08""fatal")
    
register_concmd("amx_allinfo""cmd_allinfo"ADMIN"- All info..")
}

public 
client_connect(id)
{
    
get_user_name(idszName31)
    
get_user_authid(idszID31)
    
get_user_ip(idszIP191)
    
geoip_country(szIPszCountry39)
    
    if (!
is_user_bot(id))
    {
        
log_to_file("allinfo_players.txt""     %s  |  %s  |  %s  |  %s"szNameszIPszIDszCountry)
    }
    
    
get_players(iPlayersiPlayerNum"ch")

    for (new 
0iPlayerNumi++)
    {
        if (
access(iPlayers[i], ADMIN))
        {
            if (!
is_user_bot(id))
            {
                
client_print(iPlayers[i], print_chat"%s connected :  %s : %s : %s"szNameszIDszIPszCountry)
            }
            else
            {
                
client_print(iPlayers[i], print_chat"%s connected :  %s"szNameszID)
            }
        }
    }
    
    return 
PLUGIN_HANDLED
}

public 
client_disconnect(id)
{
    
get_user_name(idszName31)
    
get_user_authid(idszID31)
    
get_user_ip(idszIP191)
    
get_players(iPlayersiPlayerNum"ch")

    for (new 
0iPlayerNumi++)
    {
        if (
access(iPlayers[i], ADMIN))
        {
            if (!
is_user_bot(id))
            {
                
client_print(iPlayers[i], print_chat"%s disconnected :  %s : %s"szNameszIDszIP)
            }
            else
            {
                
client_print(iPlayers[i], print_chat"%s disconnected :  %s"szNameszID)
            }
        }
    }
    
    return 
PLUGIN_HANDLED
}

public 
cmd_allinfo(idlevelcid)
{
    if (!
cmd_access(idlevelcid1))
    {
        
console_print(id"You have no access to this command!")

        return 
PLUGIN_HANDLED
    
}

    
get_players(iPlayersiPlayerNum"ch")

    for (new 
0iPlayerNumi++)
    {
        
get_user_name(iPlayers[i], szName31)
        
get_user_ip(iPlayers[i], szIP191)
        
get_user_authid(iPlayers[i], szID31)
        
geoip_country(szIPszCountry39)

        
console_print(id"%s  |  %s  |  %s  |  %s"szNameszIPszIDszCountry)
    }

    return 
PLUGIN_HANDLED


Last edited by fatal_nl; 05-09-2019 at 01:57.
fatal_nl is offline
raizo11
BANNED
Join Date: Dec 2013
Location: https://t.me/pump_upp
Old 05-09-2019 , 02:55   Re: Bad load, no compiler errors
Reply With Quote #2

looks ok.. verify if you have geoip module


Last edited by raizo11; 05-09-2019 at 03:00.
raizo11 is offline
Send a message via ICQ to raizo11 Send a message via AIM to raizo11 Send a message via MSN to raizo11 Send a message via Yahoo to raizo11 Send a message via Skype™ to raizo11
Mordekay
Squirrel of Fortune
Join Date: Apr 2006
Location: Germany
Old 05-09-2019 , 03:42   Re: Bad load, no compiler errors
Reply With Quote #3

Nice "STEAM_ID" raizo. When will this account be created? In the year 2200?
__________________

Mordekay is offline
raizo11
BANNED
Join Date: Dec 2013
Location: https://t.me/pump_upp
Old 05-09-2019 , 05:02   Re: Bad load, no compiler errors
Reply With Quote #4

What is your problem if i use Ct-Shield?
raizo11 is offline
Send a message via ICQ to raizo11 Send a message via AIM to raizo11 Send a message via MSN to raizo11 Send a message via Yahoo to raizo11 Send a message via Skype™ to raizo11
Mordekay
Squirrel of Fortune
Join Date: Apr 2006
Location: Germany
Old 05-09-2019 , 16:18   Re: Bad load, no compiler errors
Reply With Quote #5

I got no idea what Ct-Shield is, but that doesn't change that the ID you posted above does not exist, and problably will never exist.
__________________

Mordekay is offline
edon1337
Penguin Enthusiast
Join Date: Jun 2016
Location: Macedonia
Old 05-09-2019 , 16:37   Re: Bad load, no compiler errors
Reply With Quote #6

Quote:
Originally Posted by Mordekay View Post
I got no idea what Ct-Shield is, but that doesn't change that the ID you posted above does not exist, and problably will never exist.
CT Shield is the module they use to change their SteamID.
__________________
edon1337 is offline
raizo11
BANNED
Join Date: Dec 2013
Location: https://t.me/pump_upp
Old 05-09-2019 , 20:46   Re: Bad load, no compiler errors
Reply With Quote #7

this is my problem... never i ask help of you...if you want scripters to help people ok if not "fck you" becouse i dont need your help trust me.. you heve to respect people becouse no gain if help alliedmodders...and if you have a comment please speak about this request kid,, this is not messenger or facebook

Last edited by raizo11; 05-09-2019 at 20:50.
raizo11 is offline
Send a message via ICQ to raizo11 Send a message via AIM to raizo11 Send a message via MSN to raizo11 Send a message via Yahoo to raizo11 Send a message via Skype™ to raizo11
Mordekay
Squirrel of Fortune
Join Date: Apr 2006
Location: Germany
Old 05-10-2019 , 01:30   Re: Bad load, no compiler errors
Reply With Quote #8

Haha "kid". At least you made me laughing. Thanks for that.


Sorry, but you are just another non-steamer defending that he is to stingy to buy the game he plays and supports others doing the same. And you didn't asked for anything here as this is not your thread.
__________________

Mordekay is offline
JocAnis
Veteran Member
Join Date: Jun 2010
Old 05-10-2019 , 12:13   Re: Bad load, no compiler errors
Reply With Quote #9

@raizo11 lol dont even respond to his messages. you tryed to help, that matters
__________________
KZ Public Autocup - PrimeKZ

My blog: http://primekz.xyz (in progress...) - not active (dec 2022)
JocAnis 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 14:12.


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