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

Connect Info Mod (VERSION 1.7 RELEASED)


Post New Thread Reply   
 
Thread Tools Display Modes
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 09-23-2007 , 14:15   Re: Connect Info Mod (NEW UPDATE)
Reply With Quote #31

Code:
    get_user_name(id, name, 31)     get_user_ip(id, playerip, 31)     get_user_authid(id, authid, 31)     get_user_stats(id, stats, kills)            get_user_name(id, name1, 31)     get_user_ip(id, playerip1, 31)     get_user_authid(id, authid1, 31)     get_user_stats(id, stats1, kills1)

Why on earth do you duplicate all code ?

name is exactly the same as name1
same for playerip and playerip1
etc...
ConnorMcLeod is offline
X-Script
BANNED
Join Date: Jul 2007
Location: (#504434)
Old 09-23-2007 , 14:16   Re: Connect Info Mod (NEW UPDATE)
Reply With Quote #32

I tried it just doing one get_user_name(id, name, 31) and it would only work for client_connect and not disconnect I had to create get_user_name(id, name1, 31) to make it work for client_disconnect.
X-Script is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 09-23-2007 , 14:18   Re: Connect Info Mod (NEW UPDATE)
Reply With Quote #33

You're wrong.

This should work (regardless of the rest of the code):
Code:
public client_connect(id) {     if ( get_pcvar_num(infomod) == 0 )     {         return PLUGIN_HANDLED     }         new playerip[32]     new authid[32]     new name[32]     new stats[8]     new kills[8]     /*    new playerip1[32]     new authid1[32]     new name1[32]     new stats1[8]     new kills1[8]*/         if (!is_user_connected(id))     {         return PLUGIN_HANDLED     }         get_user_name(id, name, 31)     get_user_ip(id, playerip, 31)     get_user_authid(id, authid, 31)     get_user_stats(id, stats, kills)        /*    get_user_name(id, name1, 31)     get_user_ip(id, playerip1, 31)     get_user_authid(id, authid1, 31)     get_user_stats(id, stats1, kills1)*/         if ( get_pcvar_num(infohud) == 1 )     {         set_hudmessage(1, 1, 200, -1.0, 0.30, 0, 6.0, 6.0, 0.5, 0.15, 1)         show_hudmessage(0, "%s has joined the game(IP: %s / ID: %s / KILLS: %i)",name, playerip, authid, kills[0])     }     else     {         if ( get_pcvar_num(infochat) == 1 )         {             new szMessage[164]             format(szMessage, 163, "^xx03%s has joined the game(^x04IP: ^x01%s / ^x04ID: ^x01%s / ^x04KILLS: ^x01%i)",name, playerip, authid, kills[0])                         message_begin(MSG_ONE, g_SayText, {0,0,0}, id)             write_byte  (id)             write_string(szMessage)             message_end ()         }     }     return PLUGIN_HANDLED }

You can also use formatex here instead of format.

Last edited by ConnorMcLeod; 09-23-2007 at 14:21.
ConnorMcLeod is offline
X-Script
BANNED
Join Date: Jul 2007
Location: (#504434)
Old 09-23-2007 , 14:21   Re: Connect Info Mod (NEW UPDATE)
Reply With Quote #34

I just changed it without reading your post because i relized my mistake. I'm going to go ahead and release my new version, without the ability to change what is displayed. I'll add this later.
X-Script is offline
X-Script
BANNED
Join Date: Jul 2007
Location: (#504434)
Old 09-23-2007 , 14:28   Re: Connect Info Mod (VERSION 1.7 RELEASED)
Reply With Quote #35

VERSION 1.7 RELEASED:

-Added a logfile to save everyone's NAME, STEAMID and IPADDRESS

-Added two new commands
/steamid - shows client their steamid
/ipaddress - shows client their ipaddress

-Cleaned up code

-Fixed typo's.
X-Script is offline
vvg125
AMX Mod X Beta Tester
Join Date: Dec 2006
Location: Queens (Douglaston), New
Old 09-23-2007 , 22:51   Re: Connect Info Mod (VERSION 1.7 RELEASED)
Reply With Quote #36

Since X-Script is now banned, shouldn't this be moved to unapproved?

EDIT: Never mind, turns out it's only 3 days...
__________________

Last edited by vvg125; 09-23-2007 at 22:55.
vvg125 is offline
Send a message via AIM to vvg125 Send a message via MSN to vvg125 Send a message via Yahoo to vvg125
hoboman
Senior Member
Join Date: Jul 2007
Old 09-23-2007 , 23:03   Re: Connect Info Mod (VERSION 1.7 RELEASED)
Reply With Quote #37

yo i don't get it...there are so many banned ppl...what does one have to do to get banned from around here?
__________________
hoboman is offline
Zenith77
Veteran Member
Join Date: Aug 2005
Old 09-23-2007 , 23:25   Re: Connect Info Mod (VERSION 1.7 RELEASED)
Reply With Quote #38

Be an idiot. Read the global rules and rules for each sub-forum for more information.
__________________
Quote:
Originally Posted by phorelyph View Post
your retatred
Zenith77 is offline
pikpik
Junior Member
Join Date: Jul 2007
Old 10-02-2007 , 11:57   Re: Connect Info Mod (VERSION 1.7 RELEASED)
Reply With Quote #39

It's this work on CSX module ??

I see this in amx_plugins , /steamid & /ipaddress works properly, but i didn't see on join(part) message .

CVARS :

i try :

amx_infomod 1
amx_infohud 0
amx_infochat 1

OR

amx_infomod 1
amx_infohud 1
amx_infochat 0

Doesn't see any messages.

AMXX 1.76d

Last edited by pikpik; 10-02-2007 at 12:03.
pikpik is offline
X-Script
BANNED
Join Date: Jul 2007
Location: (#504434)
Old 10-02-2007 , 15:56   Re: Connect Info Mod (VERSION 1.7 RELEASED)
Reply With Quote #40

You must have csstats for the connect message to work properly.

But yes if what your asking is what I think, it'll run with CSX.

Last edited by X-Script; 10-02-2007 at 16:55.
X-Script 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 00:35.


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